FAST-CGI:
./configure--prefix=/usr/local/php--enable-fastcgi--enable-force-cgi-redirect--with-config-file-path=/etc-- With-zlib--with-mysql--with-xml--with-gd--enable-gd-native-ttf--enable-gd-jis-conv--with-freetype-dir-- With-jpeg-dir--with-png-dir--enable-mbstring
Php4-server:
./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs--with-mysql--with-config-file-path= /etc--with-gd--enable-gd-native-ttf--enable-gd-jis-conv--with-freetype-dir--with-jpeg-dir--with-png-dir-- With-zlib--enable-xml--enable-mbstring
Php4-max:
./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache/bin/apxs--mandir=/usr/share/man--with-mysql=/ Usr/local/mysql--with-config-file-path=/usr/local/php/etc--with-openssl=/usr/local/openssl-0.9.7e--WITH-GD-- Enable-gd-native-ttf--enable-gd-jis-conv--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-bz2- -with-inifile--with-hyperwave--enable-xml--enable-track-vars--enable-dba--enable-dbase--enable-filepro-- Enable-ftp--enable-versioning--enable-memory-limit--enable-calendar--enable-session--enable-sockets-- Enable-sysmsg--enable-sysvsem--enable-sysvshm--enable-tokenizer--enable-overload--enable-ctype-- Enable-sigchild--enable-magic-quotes--enable-roxen-zts--enable-fastcgi--enable-dbx--enable-dio--enable-shmop-- Enable-mbstring
php5-server:
./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs--with-zlib-dir-- with-bz2--with-tiff-dir--with-libxml-dir--with-gd--with-freetype-dir--with-jpeg-dir--with-png-dir--with-ttf-- Enable-mbstring--with-mysql=/usr/lib/mysql--with-config-file-path=/etc--disable-ipv6--enable-gd-native-ttf
php5-standard:
./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache/bin/apxs--mandir=/usr/ Share/man--with-openssl=/usr/local/openssl-0.9.7e--with-zlib--with-bz2--with-tiff-dir--with-libxml-dir-- Enable-dio--enable-ftp--with-gd--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib-dir--with-bz2-dir-- With-ttf--enable-mbstring--with-mysql=/usr/local/mysql--with-config-file-path=/usr/local/php/etc--disable-ipv6 --enable-gd-native-ttf
Php5-max:
./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache/bin/apxs--mandir=/usr/share/man--with-openssl =/usr/local/openssl-0.9.7e--with-zlib--with-bz2--with-tiff-dir--with-libxml-dir--enable-dio--enable-ftp-- WITH-GD--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib-dir--with-bz2-dir--with-ttf--with-inifile-- ENABLE-DBA--enable-dbase--enable-filepro--enable-versioning--enable-memory-limit--enable-calendar-- Enable-sockets--enable-sysvsem--enable-sigchild--enable-magic-quotes--enable-roxen-zts--enable-fastcgi-- Enable-dbx--enable-shmop--enable-mbstring--with-mysql=/usr/local/mysql--with-config-file-path=/usr/local/php/ etc--disable-ipv6--enable-gd-native-ttf
Appendix: The compilation parameters for each version of PHP found online are as follows.