I am running a Windows Server 2012 and facing an issue with setting up environment variables for PHP. I have already set the necessary variables in the system environment variables, but they don't seem to be working as expected. I have restarted the server after making the changes, but the PHP script still cannot access the variables.
I double-checked the variable names for any typos and ensured that the values are correctly assigned. However, even after trying different variables and values, the problem persists. I have also verified that the PHP installation directory is added to the system PATH variable.
I am using PHP 7 and Apache as my web server. Other PHP functionalities, such as file handling and database connections, are working correctly. It's just the environment variables that are not being recognized.
Could anyone please guide me on how to troubleshoot this issue? Are there any specific configurations or settings that I need to check? Any pointers or suggestions would be highly appreciated.
Thank you in advance for your help!