http://www.ondrejsimek.com/blog/running-multiple-php-versions-is-so-easy-with-fastcgi/
http://hussainweb.me/compile-php-5-source-with-fpm-ubuntu-13-04-debian/
./configure --prefix=/webstack/php-5.4.34 \ | |
--without-t1lib \ | |
--disable-short-tags \ | |
--enable-pcntl \ | |
--with-tsrm-pthreads \ | |
--with-mysqli \ | |
--with-mysql \ | |
--with-pdo-mysql \ | |
--with-zlib \ | |
--enable-sysvmsg \ | |
--enable-sysvsem \ | |
--enable-sysvshm \ | |
--enable-bcmath \ | |
--with-bz2 \ | |
--enable-calendar \ | |
--enable-exif \ | |
--enable-ftp \ | |
--with-gd \ | |
--with-jpeg-dir=/usr/lib \ | |
--with-png-dir=/usr/lib \ | |
--enable-gd-native-ttf \ | |
--enable-gd-jis-conv \ | |
--with-iconv-dir \ | |
--with-gettext \ | |
--with-imap \ | |
--with-imap-ssl \ | |
--with-openssl \ | |
--enable-mbstring \ | |
--with-mcrypt \ | |
--with-mhash \ | |
--with-pspell \ | |
--enable-soap \ | |
--enable-sockets \ | |
--with-sqlite \ | |
--enable-sqlite-utf8 \ | |
--enable-wddx \ | |
--with-xmlrpc \ | |
--with-xsl \ | |
--enable-zip \ | |
--with-kerberos \ | |
--with-tidy \ | |
--with-curl \ | |
--with-curlwrappers \ | |
--enable-fpm \ | |
--enable-fastcgi |