• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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