I get this error:
Call to undefined function apache_getenv()
I see suggestions to just switch to getenv()
, but I don't see why I should have to since the manual implies it should be available for PHP 8. I have followed these instructions to find that it is not listed in the php.ini disabled functions.
I have tried with SELinux disabled, same problem. What gives?
One thing that I read in a comment is that the server API displayed by phpinfo()
is not Apache, but rather FPM/FastCGI. But the manual doesn't say anything about this requirement so I'd prefer to continue to use FPM/FastCGI unless I need to change it.
Any ideas about what is wrong here?