Is it possible to downgrade PHP from 5.4.17 to 5.3.x

Support/Development for PHP
lfenison
Forum User
Forum User
Posts: 29
Joined: Mon Jun 14, 2010 8:39 pm

Is it possible to downgrade PHP from 5.4.17 to 5.3.x

Unread post by lfenison »

I just accepted a yum update that upgraded PHP to 5.4.17 and it is causing a bunch of problems for me. Is it possible to downgrade back to 5.3.x and if so, how?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Is it possible to downgrade PHP from 5.4.17 to 5.3.x

Unread post by scott »

PHP 5.3 packages are available from the Nucleus repository: https://www.atomicorp.com/products/nucleus.html

PHP 5.3 src.rpms are available on all the mirrors under the /source/ directory (ex: www.atomicorp.com/channels/source/php/)
lfenison
Forum User
Forum User
Posts: 29
Joined: Mon Jun 14, 2010 8:39 pm

Re: Is it possible to downgrade PHP from 5.4.17 to 5.3.x

Unread post by lfenison »

scott wrote:PHP 5.3 packages are available from the Nucleus repository: https://www.atomicorp.com/products/nucleus.html

PHP 5.3 src.rpms are available on all the mirrors under the /source/ directory (ex: http://www.atomicorp.com/channels/source/php/)
Thanks for the info. This may seem like a stupid question but I have always been confused by tangled dependencies and how to get around them. Would it be safe to just simply remove all the packages one by one by forcing and using nodeps then start installing all the new rpms in any order ignoring deps? Or is there a proper way to do this?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: Is it possible to downgrade PHP from 5.4.17 to 5.3.x

Unread post by scott »

sure thats a way to do it. Normally if Im trying to skip a inter-relationship between packages I'll use --nodeps. Like if its a plesk box for example, you'd want to skip that check so it wouldnt remove the psa-* packages. Then you could just re-install with yum like normal
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: Is it possible to downgrade PHP from 5.4.17 to 5.3.x

Unread post by prupert »

scott wrote:sure thats a way to do it. Normally if Im trying to skip a inter-relationship between packages I'll use --nodeps. Like if its a plesk box for example, you'd want to skip that check so it wouldnt remove the psa-* packages. Then you could just re-install with yum like normal
Protip: download the packages via "yumdownloader" beforehand, so you can quickly install with "yum localinstall", by which you minimize the "PHP downtime".
Lemonbit Internet Dedicated Server Management
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Is it possible to downgrade PHP from 5.4.17 to 5.3.x

Unread post by faris »

See http://www.atomicorp.com/forum/viewtopic.php?f=2&t=7037 for downgrade instructions.

But I strongly recommend using the Neucleus repo for 5.3 if possible instead of stock Centos. Scott's php is better, and you don't lose mcrypt/eaccelerator etc.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
Post Reply