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.

6
  • @prodigitalson - There are quite a few other questions here about upgrading PHP so I thought this would be OK.
    – Kit
    Feb 24, 2011 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, 2011 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. Feb 24, 2011 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, 2011 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. Feb 24, 2011 at 15:51

1 Answer 1

0

You probably have to specify a newer package source.

2
  • @PMV. Right OK. Something like 'wget uk.php.net/distributions/php-5.2.17.tar.bz2r' and then unpack and install?
    – Kit
    Feb 24, 2011 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, 2011 at 16:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .