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

Installing PECL uploadprogress Extension for Drupal

At the command line first install 'make' package if not already installed.

# install make

# pecl install uploadprogress

From Webmin > PHP Configuration

add this line to the php.ini file manually

extension=uploadprogress.so

For more info checkout this tutorial

http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extensi...

 

Installing PECL uploadprogress Extension for Drupal

test

Awsome

Thanks!

3rd party SO

Hi,

I have a query, If I use YUM to upgrade php, will it affect any other SO extensions which I am using? These extensions are not part of standard repos?

Thanks,

Hassan 

GCC May Be Needed

 I wasn't able to get this installed or working until first installing GCC because for some reason it wasn't included in my server configuration right away. Take note of this if you happen to notice that phpize doesn't want to work when trying to install with pecl install uploadprogress. Only then was I able to install PECL uploadprogress on my CentOS server

Excellent Post

Hi,

This is the best post on upgrading php.  I had gone through dozens of instructions.  These are the easiest ones to follow.  The upgrade was seamless.  Appreciate it.

Thanks,
JB

Va perfecto en webmin

Gracias me ha salvado la vida. He seguido los pasos uno a uno, y me web ya tiene el ultimo PHP, y con eso ya funciona mi Vbulletin. Muchas Gracias.

Ok, now I know how to

Ok, now I know how to do.......

Looked for a material I to

Looked for a material I to look for a long time, I liked, thanking your share very much

now I know how to

Ok, now I know how to do....... <a href="http://www.logo-genie.com/logo-design/portfolio.html">Custom Logo Design</a>

Nice work!

Ok, now I know how to do....... <a href="http://www.logo-genie.com/logo-design/portfolio.html">Custom Logo Design</a>

Nice work!

Ok, now I know how to do....... <a href="http://www.logo-genie.com/logo-design/portfolio.html">Custom Logo Design</a>

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.

Portfolio - Websites, Logos & Other

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
Simonlaw.com
Vision Equity Partners
Vision Equity Partners
Enviro Safe Solutions
How To Girl
Europe Rail Ticket
Ourdreamshyd.com
Primus Global
Unitel Technologies
Honeyz Beauty Parlour
Sterling Capital
Dr Parisi
SK Realty
ICCD
IkeeperOnline

Avoid Common Newbie Mistakes.

Affordable Website TutorialIf you're just starting out and want to know how to sell online then our 100% free email course can help.

Over the next few days we'll send you a series of informative emails which will teach you how to sell online regardless of your technical ability.

   First Name: * Your email address:

Search Site With Google