From http://stackoverflow.com/questions/2750580/how-to-find-the-php-ini-file-used-by-the-command-line
$ php -i | grep 'Configuration File' Configuration File (php.ini) Path => /etc Loaded Configuration File => /etc/php.ini