Jul
10
Installing PHP 5.2.6 on CentOS box
Posted by | Posted in CentOS, How to, OpenSource, PHP, Resources, Reviews, Tips and Tricks, Tutorials | Posted on 10-Jul-2009
Tagged Under : CentOS, CentOS 5.3, Command Line, Linux, Nano, PHP, PHP 5, repo, utterramblings, YUM
If you want to install PHP 5.2.x instead of the PHP 1.5.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.




[...] Installing PHP 5.2.6 on CentOS box [...]