Command to find which ini file is loaded for php cli
$ php -i | grep "Loaded Configuration File"
Sample outcome on Ubuntu Linux
Loaded Configuration File => /etc/php5/cli/php.ini
$ php -i | grep "Loaded Configuration File"
Loaded Configuration File => /etc/php5/cli/php.ini