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
I tried to update manually, and
php -v displays
5.3.9. However, when I
phpinfo(), it displays 5.2.10.
I followed these instructions for updating PHP manually:
- Logged in as root
wgetthe latest PHP installation
tar zxvf php-.....gz
I also tried restarting httpd by
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?
If I try to
yum update php, it says this:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Excluding Packages in global exclude list
Setting up Update Process
No Match for argument: php
No Packages marked for Update
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,