How to find where php.ini is being from the command line.

$ php -i | grep 'grep 'Configuration File'
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini