CentOS – PHP5.2 Installation

Finally i make the yum work in the virtual linux inside the Cisco AXP 1.5. That virtual linux has a Cisco Built Linux Kernel which only has some basic commands and i need to install many software on it in order to make my application works. One of the pre-requisites is PHP 5.2 but unfortunately, the default CentOS repository – http://mirror.centos.org/ only provides PHP5.1.

Luckily, i find another repository which has the PHP5.2. Here shows the steps.

1. Go to /etc/yum.repos.d

2. Create a new file named as utterramblings.repo

  • vi /etc/yum.repos.d/utterramblings.repo

3. Paste the following content in utterramblings.repo

[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

4. Install/Update PHP

  • yum install php
  • yum update php

Reference: Centos(linux) 简单方法升级php到php5.2.6(Simplified Chinese)

Done =)

4 thoughts on “CentOS – PHP5.2 Installation”

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.