How to find where PHP loads its configuration from
Here's how to find out where does PHP load its configuration.
From the Command Line Interface
Assuming you have access to the command line on the system where you want to check, you can simply use
php --ini
This will display all the loaded configuration files
On a remote server
It's a common situation that you only have access to PHP through your web server. In this case, you should read Obtaining information about your PHP Installation with phpinfo() .
In the phpinfo output, you should then see the configuration file path under "Loaded Configuration File".