Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to upgrade PHP 5.1.6 to 5.2. I am using:

yum update

However, when I restart apache and run phpinfo(); or rpm -qa |grep php is still has version 5.1.6.

I am running Apcache2(CentOS 5.5).

Any ideas?

Thank you.

share|improve this question

migrated from Feb 24 '11 at 20:00

This question came from our site for professional and enthusiast programmers.

@prodigitalson - There are quite a few other questions here about upgrading PHP so I thought this would be OK. – Kit Feb 24 '11 at 15:45
So in essence rpm -qa says that you still have 5.1.6 installed? Then restarting Apache will have no effect. Download a real PHP 5.2 package, and install it by hand instead of using yum. – mario Feb 24 '11 at 15:48
Its not that it isnt ok per se. But since its not an issue with compiling/building errors or something like that, IMO its more related to the repository configuration of your install which is more appropriately placed on ServerFault. – prodigitalson Feb 24 '11 at 15:49
@mario. Thank you for your response. I was wary of doing this as I have read it can mess with your current setup. Would i just manually download using 'wget'; and then unpack and ./configure etc? – Kit Feb 24 '11 at 15:49
@mario: personally i would consider that a last resort. Cent is just more conservative about its mainline packages so there is probably another stable package source he needs to add that is less conservative or from a respected third party. – prodigitalson Feb 24 '11 at 15:51
up vote 0 down vote accepted

You probably have to specify a newer package source.

share|improve this answer
@PMV. Right OK. Something like 'wget'; and then unpack and install? – Kit Feb 24 '11 at 15:48
I'm more familiar with apt-get, but if you point to a 3rd party repo, you should be able use yum (update, install). Take a look here: I think there's a 5.2 source on his site. – PMV Feb 24 '11 at 16:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.