Installing PHP 5.2.6 on CentOS box

If you want to install PHP 5.2.x instead of the PHP 5.1.6 offered with default CentOSPlus repo. Please consider installing the utterramblings repo. Setting up this repo is a breeze … just follow these steps

nano -w /etc/yum.repos.d/utterramblings.repo

(I prefer nano as I mentioned earlier in my posts but you can use vi or any other editor that you like)

Then paste the following code in 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

Hit Ctrl+X and it will prompt you to save this file, you need to confirm this with punching Y

Now comes the last step, type the following and everything will be updated :)

yum update

Enjoy the latest packages :)

Note: PHP 5.3.0 is still not available in stable repos because the Zend Optimizer is still in Beta for that particular version.

Related posts:

  1. How to Install Apache, PHP and MySQL on CentOS
  2. Installing MySQL 5.1 on Ubuntu
  3. Installing / re-installing and Configuring phpMyAdmin on Ubuntu
  4. How to Install Webmin in CentOS
  5. Creating and Installing crontabs using CodeIgniter

2 thoughts on “Installing PHP 5.2.6 on CentOS box

  1. Pingback: Installing PHP 5.2.6 on CentOS box | CodeWeek

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>