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.

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