Apache2 + PHP-FPM - undefined function apache_getenv()

37
March 16, 2019, at 01:10 AM

I have a big problem because for several hours I am trying to run a project that uses SetENV in PHP. When he even tries to use a simple function apache_getenv();

<?php
$ret = apache_getenv("SERVER_ADDR");
echo $ret;
?>

I receive a feedback error message

Fatal error: Uncaught Error: Call to undefined function apache_getenv() in /var/www/html/env.php:2 Stack trace: #0 {main} thrown in /var/www/html/env.php on line 2

Using php-cli the same error. My configuration below.

Apache/2.4.34 (Fedora)
PHP 7.2.15 (cli)
# apachectl -M | grep env
env_module (shared)
setenvif_module (shared)
READ ALSO
How to definte variables for fields without data in them?

How to definte variables for fields without data in them?

I've got a number of calls to data in a WordPress site using a number of custom fieldsThe fields aren't required to fill out on the back end

15
laravel join 4 tables

laravel join 4 tables

I started to learn the Laravel 58 framework and got a problem

36
Multiple search from the database [duplicate]

Multiple search from the database [duplicate]

This question already has an answer here:

44
in laravel 5.8 is its possible to spoof the url bar whit out reloading the page

in laravel 5.8 is its possible to spoof the url bar whit out reloading the page

Is it possible in laravel to spoof an url whit out reloading the page, for example when you have an url like this webpage/post/1 and 1 standing for the id, that you then can make it webpage/post/{Post-Name} whit out using webpage/post/#{Post-Name} whitout...

18