store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Tue May 21, 2013 7:02 am

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies. Share/Bookmark  [ 9 posts ] 
Author Message
 Post subject: Simple way to upgrade PHP to 5.2.x?
Unread postPosted: Sat Apr 09, 2011 7:14 am 
Offline
New Forum User
New Forum User

Joined: Fri Apr 08, 2011 6:52 am
Posts: 3
Location: Australia
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


Top
 Profile  
 
 Post subject: Re: Simple way to upgrade PHP to 5.2.x?
Unread postPosted: Sat Apr 09, 2011 9:38 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7420
Location: earth
Grab them manually and drop them into a local directory, then you could run: yum localinstall <packagename>, or rpm -Uvh <packagename>


Top
 Profile  
 
 Post subject: Re: Simple way to upgrade PHP to 5.2.x?
Unread postPosted: Sun Apr 10, 2011 6:21 pm 
Offline
New Forum User
New Forum User

Joined: Fri Apr 08, 2011 6:52 am
Posts: 3
Location: Australia
Thanks for the confirmation...


Top
 Profile  
 
 Post subject: Re: Simple way to upgrade PHP to 5.2.x?
Unread postPosted: Sun Apr 10, 2011 7:32 pm 
Offline
New Forum User
New Forum User

Joined: Sun Apr 10, 2011 7:26 pm
Posts: 2
Location: 276
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


Top
 Profile  
 
 Post subject: Re: Simple way to upgrade PHP to 5.2.x?
Unread postPosted: Mon Apr 11, 2011 8:53 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7420
Location: earth
You can grab the packages at: http://www.atomicorp.com/channels/atomic/


Top
 Profile  
 
 Post subject: Re: Simple way to upgrade PHP to 5.2.x?
Unread postPosted: Mon Apr 11, 2011 9:23 am 
Offline
New Forum User
New Forum User

Joined: Sun Apr 10, 2011 7:26 pm
Posts: 2
Location: 276
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.


Top
 Profile  
 
 Post subject: Re: Simple way to upgrade PHP to 5.2.x?
Unread postPosted: Mon Apr 11, 2011 12:12 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7420
Location: earth
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.


Top
 Profile  
 
 Post subject: SOLVED - the SIMPLE way! Re: Simple way to upgrade PHP to 5.
Unread postPosted: Mon Apr 11, 2011 7:31 pm 
Offline
New Forum User
New Forum User

Joined: Fri Apr 08, 2011 6:52 am
Posts: 3
Location: Australia
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:
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


Top
 Profile  
 
 Post subject: Re: Simple way to upgrade PHP to 5.2.x?
Unread postPosted: Mon Apr 11, 2011 8:39 pm 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin

Joined: Wed Dec 31, 1969 8:00 pm
Posts: 7420
Location: earth
Great followup, Im going to lock this thread so its easier for everyone to find this in the future. Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies. Share/Bookmark  [ 9 posts ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group