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.

link|improve this question

2  
Better suited for ServerFault. – prodigitalson Feb 24 '11 at 15:42
@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
1  
@prodigitalson: actually it would belong on unix.stackexchange.com rather than serverfault in this case – mario Feb 24 '11 at 15:50
show 4 more comments
feedback

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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