Upgrade php 5.1 to higher

Update CentOS 5 PHP 5.1 to PHP 5.3


In this little guide you will see how to update the CentOS 5 PHP 5 version (Which is 5.1.6) to the latest PHP version (Which now is 5.3) . I had to do this for a particular project that we have done in Elance.com which objective was to install a Linode server from scratch for LAMP services and a Control Panel (We installed Virtualmin which is great and is free). So let’s get some action:

# wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
# rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

With the above command we have downloaded and installed the EPEL and REMI repositories, you might ask your self what does EPEL and REMI stand for? Let me clarify you that:


Extra Packages for Enterprise Linux (EPEL) is a volunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages for Red Hat Enterprise (RHEL) and its compatible spin-offs such as CentOS or Scientific Linux. Fedora is the upstream of RHEL and add-on packages for EPEL are sourced from the Fedora repository primarily and built against RHEL.


This is a repository created by Remi Collet with the aim to give support for old Fedora releases to allow them to install recent software, also it gives you the ability to have your CentOS/RHEL systems with the latest software available in the net.

Now it’s time to update our PHP to the latest one (Which is PHP 5.3.0 (cli) (built: Jul 19 2009 18:22:52) in this moment)

# yum –enablerepo=remi update php php-*

# /etc/init.d/httpd restart

And that’s it!

You can check your installed PHP version executing:

Leave a comment

Leave your opinion

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: