Wondering why PHP doesn’t see your environment variables? Why getenv('var')
won’t return a value while it does on the commandline?
You’re probably using PHP-FPM.
Cause: The environment, with all its variables, is cleared for FPM. This is default behavior.