Install or update PHP 5 on Centos

I tried compiling PHP 5.2 on CentOS but after so many tries I gave up. I was getting struck at compiling PHP with gd. And without gd it was useless. So I decided to yum and install the same.

By default if you use yum install php it will be install only php 4 series and not 5. In order to install version 5 I had to enable repo centosplus.

yum install php –enablerepo=centosplus

or

yum update php –enablerepo=centosplus

I came across another interesting repo for yum by kbsingh and after installing I was able to install a lot more. If you are interested please check out this website

http://centos.karan.org/

Have fun !! 😉

Previous Article

Wordpress Complete book by Hasin Hayder

Next Article

SSH tunneling in mac

View Comments (33)
  1. Muy buen aporte al menos instalo todo pero en el php (5.3.1) em salio una observacion:

    PEAR package PHP_Archive not installed: generated phar will require PHP’s phar extension be enabled.

    ocasionara algun tipo de problema con el PEAR

    Espero sus rptas.

Comments are closed.