1

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.

  • @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 uk.php.net/distributions/php-5.2.17.tar.bz2' 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
0

You probably have to specify a newer package source.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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