I'm currently working on a CentOS server and I'm facing an issue with PHP not being able to read system environment variables. I have a PHP script that relies on some environment variables, but for some reason, it's not able to access them.
I've tried setting the environment variables in my .bashrc file and even restarted the server to make sure they are properly loaded. However, when I try to access them using `getenv()` or `$_SERVER`, the variables are not available.
I've also done some research and found that there is a `variables_order` directive in the php.ini file that determines the order in which PHP retrieves environment variables. I made sure that `E` (environment variables) is included in the order, but it still doesn't work.
Is there something else I need to configure or check in order to make PHP recognize system environment variables? I would greatly appreciate any help or suggestions to troubleshoot this issue.
Thanks in advance!