Imthiaz Blog

me and stupid works….!!!

Install or update PHP 5 on Centos

January 17th, 2007 by Imthiaz

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 install a lot more. If you are interested please check out this website

http://centos.karan.org/

Have fun !! ;-)

6 Responses to “Install or update PHP 5 on Centos”

  1. Arun VIjayan Says:

    thanks. that really worked!

  2. jack Says:

    i keep getting this error: Excluding packages in global exclude list

    any one know why that is?

  3. codesmith Says:

    BTW this as of November 2007 only PHP 5.1.6 is included in the centosplus repository, not PHP 5.2

  4. joe Says:

    i am working with centos5. And I did not get any errors
    this are the steps I used

    # wget ftp://xmlsoft.org/libxml2/libxml2-2.6.11.tar.gz
    # tar xzvf libxml2-2.6.11.tar.gz
    # cd libxml2-2.6.11
    # ./configure
    # make
    # su -c “make install”

    # wget http://uk2.php.net/get/php-5.2.5.tar.gz/from/uk.php.net/mirror
    # tar zxvf php-5.2.5.tar.gz
    # cd php-5.2.5
    # ./configure –enable-soap
    # make
    # su -c “make install”

    I hope it helps u

  5. zahid Says:

    it solved my problem.
    i was configuring php before xml installing and the word enable-soap solved it.

  6. aoddy Says:

    Thanks for your guide. :D

Leave a Reply