Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
    
@prodigitalson - There are quite a few other questions here about upgrading PHP so I thought this would be OK. –  Christopher 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 uk.php.net/distributions/php-5.2.17.tar.bz2'; and then unpack and ./configure etc? –  Christopher 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
show 1 more comment

migrated from stackoverflow.com Feb 24 '11 at 20:00

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

1 Answer

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 uk.php.net/distributions/php-5.2.17.tar.bz2r'; and then unpack and install? –  Christopher 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: jasonlitka.com/yum-repository I think there's a 5.2 source on his site. –  PMV Feb 24 '11 at 16:37
add comment

Your Answer

 
discard

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.