A few years ago I installed Apache 2.2x and PHP 5.3.1 on a Linux server I maintain. I used .tar.gz\'s and built them as instructed (instead of rpms and what-have-you). And
PHP comes with two native functions to show which config file is loaded :
Depending on your setup, Apache and CLI might use different ini files. Here are the two solutions :
Just add the following in a php file and open it in your browser
print php_ini_loaded_file();
print_r(php_ini_scanned_files());
Copy-paste in your terminal :
php -r 'print php_ini_loaded_file(); print_r(php_ini_scanned_files());'