Home | Upgrade PHP 5.1 to PHP 5.2 on CentOS

Upgrade PHP 5.1 to PHP 5.2 on CentOS

On CentOS as of this post, there are no simple 'yum' upgrades to update your PHP 5.1.6 to PHP 5.2.6

The instructions here will show you one possible way you can do this.

First checkout this site
http://www.jasonlitka.com
http://www.jasonlitka.com/yum-repository/

This site has the repositories that will upgrade your PHP 5.1 to 5.2 

nano -w /etc/yum.repos.d/utterramblings.repo
... and then paste the following into the editor: 
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
NOTE: If the above URL returns a 404 then try hard-coding $releasever to your EL version ('EL4' or 'EL5') and the $basearch to whatever is appropriate ('i386' or 'x86_64').
 
For those new to linux, the nano command is for a linux editor, and once you type the 6 lines, press ctrl O to write the file and press enter to save to the file name given.
 
Once you've taken care of the above, you'll be able to easily upgrade with a simple 'up2date -u' or 'yum update'.
 
If you get dependency errors, if you do 'yum update', you might want to try just the php update by trying 'yum - y php update'.
 
Updating:
 php                     x86_64     5.2.6-jason.1    utterramblings    3.9 M
 php-cli                 x86_64     5.2.6-jason.1    utterramblings    2.7 M
 php-common              x86_64     5.2.6-jason.1    utterramblings    494 k
Updating for dependencies:
 php-devel               x86_64     5.2.6-jason.1    utterramblings    568 k
 php-gd                  x86_64     5.2.6-jason.1    utterramblings    342 k
 php-imap                x86_64     5.2.6-jason.1    utterramblings    112 k
 php-ldap                x86_64     5.2.6-jason.1    utterramblings     61 k
 php-mbstring            x86_64     5.2.6-jason.1    utterramblings    1.3 M
 php-mysql               x86_64     5.2.6-jason.1    utterramblings    275 k
 php-odbc                x86_64     5.2.6-jason.1    utterramblings    120 k
 php-pdo                 x86_64     5.2.6-jason.1    utterramblings    166 k
 php-xml                 x86_64     5.2.6-jason.1    utterramblings    336 k
 php-xmlrpc              x86_64     5.2.6-jason.1    utterramblings    135 k
 
after the initial php and its dependencies are updated you can update the rest.
 
#yum –y update –gets errors to install the list below…so just yum install each separately.
eg: #yum -y apr apr-util update
 
Updating:
 apr                     x86_64     1.2.12-2.jason.1  utterramblings    266 k
 apr-util                x86_64     1.2.12-5.jason.1  utterramblings    166 k
 ed                      x86_64     0.2-39.el5_2     updates            49 k
 httpd                   x86_64     2.2.8-jason.3    utterramblings    2.6 M
 mod_perl                x86_64     2.0.3-14.jason.1  utterramblings    5.5 M
 mysql                   x86_64     5.0.58-jason.2   utterramblings    6.5 M
 mysql-devel             x86_64     5.0.58-jason.2   utterramblings    2.9 M
 mysql-server            x86_64     5.0.58-jason.2   utterramblings     11 M
 pcre                    x86_64     7.6-jason.1      utterramblings    592 k
 php-pear                noarch     1:1.6.2-1.jason.1  utterramblings    418 k

 

Ok, just found this new option to upgrade to php 5.2

Virtualmin repositories

That repository URLs are:

i386: http://software.virtualmin.com/bleed/centos/5/i386/

x86_64: http://software.virtualmin.com/bleed/centos/5/x86_64/

There is also a release package to automatically configure yum to use these repositories, which can be installed with the following command:

rpm -ivh http://software.virtualmin.com/bleed/centos/5/i386/virtualmin-bleed-release-1.0-1.rhel.noarch.rpm

rpm -ivh http://software.virtualmin.com/bleed/centos/5/x86_64/virtualmin-bleed-release-1.0-1.rhel.noarch.rpm

you will need to install the virtualmin key first. Just type in the code below at command line.

#rpm --import http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin

 

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Gator extract and retouch
Party hats extract from background
Toy dog extract from background
Toy duck extract from background
Moose extract from background
Toy mouse in plastic bag extract
Krinkle ball reshape and extract
WaterCenterPlaza.com
Vision Equity Partners
Vision Equity Partners
Enviro Safe Solutions
How To Girl
Europe Rail Ticket
Primus Global
Unitel Technologies
Honeyz Beauty Parlour
Sterling Capital
Dr Parisi
SK Realty
IkeeperOnline

Search