Simple way to upgrade PHP to 5.2.x?

Support/Development for PHP
scribbly
New Forum User
New Forum User
Posts: 3
Joined: Fri Apr 08, 2011 6:52 am
Location: Australia

Simple way to upgrade PHP to 5.2.x?

Unread post by scribbly »

Hi,
Is there a SIMPLE way to select PHP 5.2.x packages instead of 5.3.x as the default PHP update now does with your repositories? ie like I did on another VPS in March...

Like many(I suppose), while I now have requirements for PHP 5.2.x compatability, PHP 5.3.x just 'breaks' way too many applications ie older Joomla & vTiger installations that client just do not want/need to update etc.

I have had a good search, but can't really find anything other than using downgrade(which seems problematic) or manually installing packages(which I am not entirely confident doing).
On the later, a yum list php* finds the following installed packages
Installed Packages
php.x86_64 5.1.6-27.el5_5.3 installed
php-cli.x86_64 5.1.6-27.el5_5.3 installed
php-common.x86_64 5.1.6-27.el5_5.3 installed
php-gd.x86_64 5.1.6-27.el5_5.3 installed
php-imap.x86_64 5.1.6-27.el5_5.3 installed
php-mbstring.x86_64 5.1.6-27.el5_5.3 installed
php-mysql.x86_64 5.1.6-27.el5_5.3 installed
php-pdo.x86_64 5.1.6-27.el5_5.3 installed
php-xml.x86_64 5.1.6-27.el5_5.3 installed
Am I reasonably safe downloading the equivalent 5.2.17 packages and installing using rpm -Uvh --oldpackage php*.rpm ?

BTW, running Plesk 9.5.3 with PHP 5.1.6 on Cento 5.5 x86_64.

Many Thanks,
Scribbly
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Simple way to upgrade PHP to 5.2.x?

Unread post by scott »

Grab them manually and drop them into a local directory, then you could run: yum localinstall <packagename>, or rpm -Uvh <packagename>
scribbly
New Forum User
New Forum User
Posts: 3
Joined: Fri Apr 08, 2011 6:52 am
Location: Australia

Re: Simple way to upgrade PHP to 5.2.x?

Unread post by scribbly »

Thanks for the confirmation...
iiimriii
New Forum User
New Forum User
Posts: 2
Joined: Sun Apr 10, 2011 7:26 pm
Location: 276

Re: Simple way to upgrade PHP to 5.2.x?

Unread post by iiimriii »

I am trying to do the same thing I need to download php.x86_64 5.2.17-1.el5.art but I can not seem to figured out downloading exact location.

I would appreciate some help
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Simple way to upgrade PHP to 5.2.x?

Unread post by scott »

You can grab the packages at: http://www.atomicorp.com/channels/atomic/
iiimriii
New Forum User
New Forum User
Posts: 2
Joined: Sun Apr 10, 2011 7:26 pm
Location: 276

Re: Simple way to upgrade PHP to 5.2.x?

Unread post by iiimriii »

Thanks for the fast repyl, I am running centos 5.5, plesk 9.5. I have spent like 8 hours trying to solve my update problem to php 5.6.2. It was working great in january doing yum update php and done. It seems that atomicorp has updated the php version and now it is trying to update to 5.3.6-2.

The thing is that I have tried many combination to make it work, I should not update mysql it creates problem with my backups. I will need 5.2.6, I have tried yum localupdate <rpm packacage> php-5.2.17-1.el5.art.x86_64.rpm. With no success, I need the 5.2.6 version. I tried to solve the dependincies also like with the packages that I found from centos like had to download php-common and php-cli it didnt work, I did yum remove php-common and installed the package It installed php 5.2.6 but than plesk broke down.

What I need is a time machine now. Take me to 2011 January so I can yum update php and everything works like then. Is this possible.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Simple way to upgrade PHP to 5.2.x?

Unread post by scott »

Wow 5.2.6 huh, thats been retired for a few years now. The src.rpms are still available though, you can grab them from the source/ dir off any of the mirrors, and then build it yourself.
scribbly
New Forum User
New Forum User
Posts: 3
Joined: Fri Apr 08, 2011 6:52 am
Location: Australia

SOLVED - the SIMPLE way! Re: Simple way to upgrade PHP to 5.

Unread post by scribbly »

Okay....
A download of all installed PHP 5.2.17 packages and yum localinstall php* brought up libt1.so.5 dependancy problems that I could not fix....

BUT,
A little more googling found this, which resolves all dependecies and works bl00dy perfectly!

Code: Select all

yum update php* --exclude=php*5.3*
...basically, update all the installed php packages to the LATEST, EXCEPT PHP 5.3 packages.
It will give you a full list(scroll back up) of what it found, and intends to update, before you hit Y.
There were also no moans or groans(errors or dependencies etc) from yum.
The older PHP packages are obviously still there, just yum tries to install the latest(5.3.x) by default.

I hope it helps all those who DO NOT WANT PHP 5.3.x!


iiimriii, I am using Plesk 9.5.3 with PHP 5.1.6(now updated to PHP 5.2.17) on CentoS 5.5 x86_64...and everything seems to work including Plesk and all my Joomla and Vtiger installations.


Best Regards,
Scribbly
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Simple way to upgrade PHP to 5.2.x?

Unread post by scott »

Great followup, Im going to lock this thread so its easier for everyone to find this in the future. Thanks!
Locked