PHP 5.3 Version Installs January 8 - 9, 2011 by CW Cyrix Last Updated: 2011/11/20 [0424] Fixed horrible typo on Optional Tags. [0424] Clarified Notes. [0424] Added libraries and optional tags to the list. [0424] Changed php-5.3.5 to php-5.3.x. (insert number here to reflect the release number.) [0425] Removed duplicate -- tags from the list. [0425] Added another example setup. [1120] Detailed My Setups. It basically reflects the default Windows PHP installation. -NOTES- ./configure does NOT seem to work in Ubuntu Desktop (as it works in Server), but bash configure does. You also need to install build-essential to compile these code in Ubuntu. required tools: gcc bison optional tools: pcre libxml2 libmcrypt mcrypt openssl libssl zlib bzip2 libmhash mhash libtidy libxslt zlib expat ...amongst other libraries. For PHP version 5.3.x Symlink first: ln -s php-5.3.x php My Setups ./configure --prefix=/home/ami-sapphire/php-5.3.5 \ --with-config-file-path=/home/ami-sapphire/php \ --with-config-file-path-scan=/home/ami-sapphire/php ./configure --prefix=/home/ami-sapphire/php-5.3.6 \ --with-config-file-path=/home/ami-sapphire/php \ --enable-mbstring \ --enable-zip \ --with-mcrypt \ --with-mysql=mysqlnd \ --with-mysql-sock=/tmp/mysql.sock \ --with-openssl \ --with-zlib \ --with-bz2 \ --enable-bcmath \ --enable-calendar \ --enable-ftp \ --with-mhash \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --enable-exif My Libraries needed to install (Using Ubuntu 11.10 Server): build-essential libxml2-dev libcurl4-openssl-dev libbz2-dev libmcrypt --- Static: ./configure --prefix=/home/ami-sapphire/php-5.3.5 \ --enable-mbstring \ --enable-zip \ --with-mcrypt \ --with-mysql=/usr/local/mysql \ --with-mysql-sock=/tmp/mysql.sock \ --with-openssl \ --with-zlib \ --with-config-file-path=/home/ami-sapphire/php \ --with-config-file-path-scan=/home/ami-sapphire/php Shared: ./configure --prefix=/home/ami-sapphire/php-5.3.5 \ --enable-mbstring=shared \ --enable-zip=shared \ --with-mcrypt=shared \ --with-mysql=/usr/local/mysql \ --with-mysql-sock=/tmp/mysql.sock \ --with-openssl=shared \ --with-zlib=shared \ --with-config-file-path=/home/ami-sapphire/php \ --with-config-file-scan-dir=/home/ami-sapphire/php optional tags: --disable-libxml --disable-xml --with-mysql=[DIR] --with-mysql-sock=[DIR] --with-mysqli=[DIR] --with-mysqli=mysqlnd --enable-bcmath --enable-calendar --enable-ftp --enable-mbstring --with-mcrypt=[DIR] --with-mhash=[DIR] --with-openssl=[DIR] --with-pdo-mysql --with-curl=[DIR] --enable-exif --with-gettext=[DIR] --with-gd=[DIR] --with-jpeg-dir=[DIR] --with-png-dir=[DIR] --with-xpm-dir=[DIR] --enable-gd-native-ttf --with-imap=[DIR] --enable-intl --with-ldap=[DIR] --enable-soap --enable-sockets --with-sybase=[DIR] --with-sybase-ct=[DIR] --with-tidy --with-xmlrpc=[DIR] --with-xsl=[DIR] --enable-wddx --with-libexpat-dir=[DIR] --with-bz2=[DIR] --enable-zip --with-zlib=[DIR] make sudo make install For more tags, type ./configure --help. Reading their manual at http://php.net may help as well. Notes: You may want to add: /home/ami-sapphire/php-5.3.5/lib/php to your php.ini include_path (replace php-5.3.5 with php due to symlink)