Apologies in advance - I'm not a good Linux user by any stretch of the imagination.
I have a CentOS 5.7 dedicated server on which I host a few websites.
I currently have php 5.2.10 installed, but I'd like to update to 5.3.9.
I tried to update manually, and php -v displays 5.3.9. However, when I phpinfo(), it displays 5.2.10.
First problem
I followed these instructions for updating PHP manually:
- Logged in as root
- wgetthe latest PHP installation
- tar zxvf php-.....gz
- cd php-....
- ./configure
- make
- apachectl stop
- make install
- apachectl start
I also tried restarting httpd by /usr/sbin/httpd restart.
php -v shows the latest version of PHP but phpinfo() on a php page shows the old version.
Any idea what the problem there might be?
Second Problem
If I try to yum update php, it says this:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel: mir01.syntis.net
rpmforge: ftp-stud.fht-esslingen.de
Excluding Packages in global exclude list
Finished
Setting up Update Process
No Match for argument: php
No package
phpavailable.No Packages marked for Update
I've tried yum clean all and adding rpmforge repositories - same outcome!
So, secondly, does anyone have any idea why I can't update php from yum? I'd like to be able to do that in future so that I can quickly and easily keep php and mySQL up to date.
Thanks in advance,



grep exclude /etc/yum.confandyum search php? As for the different versions, it sounds like you also need to updatehttpd's PHP module.