I am using the following command to check for configuration file for PHP installation.
$ php --ini
That should work - it works on my PHP 5.2.19/win32 installation - and I don't know why it isn't working for you, but you can get the same info by either:
<?php phpinfo(); ?>- and loading it in a browser. This will show you a lot of information about your PHP installation, including information about the INI file(s) in use.
php -ifrom the command line - this will give you the same information as
phpinfo()through the terminal. This may not work, if
php --iniis not working. You could
grepthe output for instances of
php --i | grep ini
Something else that might be worth a try is redirecting the output of
php --ini to a file, e.g.
php --ini > phpini.txt.
Which PHP version are you running?