I have a web server running CentOS 5 and it was running php 5.1.6 so I downloaded and compiled the source for 5.2.10 and restarted the server and phpinfo() still returns 5.1.6.
But when i do the version switch on this PHP i get
$ /usr/local/bin/php -v PHP 5.2.9 (cli) (built: May 26 2009 10:17:42) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
There was the almost exact question here. Almost every answer points to addressing this by doing the following in the httpd.conf file:
LoadModule php5_module /usr/lib64/httpd/modules/libphp5.so
I did that and when I restart apache I get the following:
Stopping httpd: [ OK ] Starting httpd: [Fri Sep 11 14:59:28 2009] [warn] module php5_module is already loaded, skipping [ OK ]
This obviously means that the php module is being called twice, but a search of the httpd.conf file does not reveal a second call to the module. Could php module be called from some place else? Where? Anyone have an idea what I can try next? It will be greatly appreciated.