Home > Uncategorized > Build PHP 5.3.3, on centos 5.5

Build PHP 5.3.3, on centos 5.5

I’m assuming you have a fresh install of centos 5.5.


$> yum groupinstall "Development Tools"

$> wget http://us.php.net/get/php-5.3.3.tar.bz2/from/www.php.net/mirror

$> tar xvf php-5.3.3.tar.bz2
$> yum install mysql-server httpd-devel-* libxml2-devel-* openssl-devel* xmlsec1-openssl-devel-* libpng* libjpeg* curl-devel libmcrypt* mysql-devel* mysql.*

$> cd php-5.3.3
$> ./configure --with-mysql=shared --with-openssl --enable-pdo --with-pdo-mysql=shared --with-mhash=shared --enable-soap=shared --with-config-file-path=/etc/ --with-apxs2 --with-mysqli --enable-zip --enable-shared --with-curl --enable-mbstring=all --enable-maintainer-zts --with-jpeg-dir=/usr/lib/ --with-libdir=lib64 --enable-soap --with-pdo-mysql --with-gd --with-mcrypt

$> make; make install;

$> service httpd restart

and there you go… php 5.3.3 on the box…

Categories: Uncategorized Tags:
  1. Jordan
    January 25th, 2011 at 16:11 | #1

    I’m trying to install php version 5.3.5 but I assume the process is the same. My problem is that when I try to do the “make; make install;” line, I get a message that reads:
    make: *** No targets specified and no makefile found. Stop.
    make: *** No rule to make target `install’. Stop.

    I have no idea what I’m doing wrong. I’m in the php-5.3.5 directory when I try to run the make lines.

    If you could point me in the right direction, I would be very grateful. Thank You.

  1. No trackbacks yet.