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
Try one of this solution
In your terminal type find / -name "php.ini"
In your terminal type php -i | grep php.ini
. It should show the
file path as Configuration File (php.ini) Path => /etc
in a new line phpinfo();
This
will tell you the php.ini location
php -a
in
the terminal and type phpinfo(); after php initiated.