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
Run this in the command line:
php -r "echo php_ini_loaded_file().PHP_EOL;"