• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

PHP 5.2 upgrade issue

N

Nick Endle

Guest
Hello, I run Parallels 9.5 on CentOS, running a webserver with PHP 5.1.6 and I would like to upgrade to 5.2. I've tried to upgrade through yum, and it says its successful and doing php -v reports that I have 5.2.6 installed, however when I bring up phpinfo() on my webserver it still says 5.1.6. Any ideas?

Thanks.
 
yeah, tried restarting it, still using the old php version.
 
Check your installed packages, you must still have 5.1.6 packages installed. What does 'rpm -qa | grep ^php | sort' say?

What repository did you use to get PHP 5.2.6 from? I recommend Atomic Rocket Turtle's atomic repository, which is currently on 5.2.13.
 
Please click one of the Quick Reply icons in the posts above to activate Quick Reply.
 
# rpm -qa | grep ^php | sort
php-5.1.6-24.el5_4.5
php-cli-5.1.6-24.el5_4.5
php-common-5.1.6-24.el5_4.5
php-gd-5.1.6-24.el5_4.5
php-imap-5.1.6-24.el5_4.5
php-mbstring-5.1.6-24.el5_4.5
php-mysql-5.1.6-24.el5_4.5
php-pdo-5.1.6-24.el5_4.5
php-xml-5.1.6-24.el5_4.5

I used atomic-release-1.0-11.el5.art.noarch.rpm.. this is what it does when I execute it

Atomic Archive installer, version 1.1
Configuring the [atomic] yum archive for this system

Installing the Atomic GPG key: OK
Downloading atomic-release-1.0-11.el5.art.noarch.rpm: OK



The Atomic Rocket Turtle archive has now been installed and configured for your system
The following channels are available:
atomic - [ACTIVATED] - contains the stable tree of ART packages
atomic-testing - [DISABLED] - contains the testing tree of ART packages
atomic-bleeding - [DISABLED] - contains the development tree of ART packages


Then yum upgrade php:

yum upgrade php
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: mirror.nwresd.org
* updates: mirror.chpc.utah.edu
* addons: mirror.nwresd.org
* extras: mirror.web-ster.com
base 100% |=========================| 2.1 kB 00:00
updates 100% |=========================| 1.9 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 2.1 kB 00:00
Setting up Upgrade Process
Could not find update match for php
No Packages marked for Update
 
# rpm -qa | grep ^php | sort
php-5.1.6-24.el5_4.5
php-cli-5.1.6-24.el5_4.5
php-common-5.1.6-24.el5_4.5
php-gd-5.1.6-24.el5_4.5
php-imap-5.1.6-24.el5_4.5
php-mbstring-5.1.6-24.el5_4.5
php-mysql-5.1.6-24.el5_4.5
php-pdo-5.1.6-24.el5_4.5
php-xml-5.1.6-24.el5_4.5

And you say 'php -v' shows 5.2.6? Looks like you still have 5.1.6 installed to me.

I used atomic-release-1.0-11.el5.art.noarch.rpm.. this is what it does when I execute it

Atomic Archive installer, version 1.1
Configuring the [atomic] yum archive for this system

Installing the Atomic GPG key: OK
Downloading atomic-release-1.0-11.el5.art.noarch.rpm: OK



The Atomic Rocket Turtle archive has now been installed and configured for your system
The following channels are available:
atomic - [ACTIVATED] - contains the stable tree of ART packages
atomic-testing - [DISABLED] - contains the testing tree of ART packages
atomic-bleeding - [DISABLED] - contains the development tree of ART packages


Then yum upgrade php:

yum upgrade php
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: mirror.nwresd.org
* updates: mirror.chpc.utah.edu
* addons: mirror.nwresd.org
* extras: mirror.web-ster.com
base 100% |=========================| 2.1 kB 00:00
updates 100% |=========================| 1.9 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 2.1 kB 00:00
Setting up Upgrade Process
Could not find update match for php
No Packages marked for Update

I don't know why, but the atomic channel you added doesn't seem to be used by yum. Do you have any custom excludes in /etc/yum.conf? You do have /etc/yum.repos.d/atomic.repo with an enabled atomic section? Maybe try a 'yum clean all' and try again?

The atomic wiki has instructions here: http://www.atomicorp.com/wiki/index.php/PHP

There's an Atomicorp forum as well: http://www.atomicorp.com/forum/
 
Back
Top