My custom optimized build of PHP 5.5 & PHP 5.4
Everyone has their own requirements of what they need enabled or not, this is my setup that I've used over the last couple of years. I have had the option of both PHP 5.4 and 5.5, but my personal preference is to go with the latest 5.5 releases. apt-get install autoconf libxml2-dev libcurl3-dev libmysqlclient-dev libbz2-dev libsnmp9-dev libjpeg-dev libpng-dev libfreetype6-dev libmcrypt-dev libc-client-dev snmp export PHP_VER=5.4.29 export PHP_PREFIX=php5.4 -- for php 5.3 - 5.4 wget "http://nl.php.net/distributions/php-$PHP_VER.tar.gz" -O php-$PHP_VER.tar.gz tar xfz "php-$PHP_VER.tar.gz" cd "php-$PHP_VER" export PHP_VER=5.5.13 export PHP_PREFIX=php5.5 cd /app/sources/ rm php* -fr -- for php 5.5 wget "http://dk1.php.net/get/php-$PHP_VER.tar.bz2/from/www.php.net/mirror" -O php-$PHP_VER.tar.bz2 tar xjf "php-$PHP_VER.tar.bz2" cd "php-$PHP_VER" ### compile touch ac*; ./buildconf --force ./configu