Помощь эта очень пригодиться.
Лучше связаться со мной по аське: 861287 (надо поэкспериментировать с модулями).
Лучше использовать PHP 5.2.4
Код:
--enable-snapshot-build Build a snapshot; turns on everything it can
and ignores build errors
--enable-one-shot Optimize for fast build - best for release
and snapshot builders, not so hot for
edit-and-rebuild hacking
--with-cygwin Path to cygwin utilities on your system
--enable-object-out-dir Alternate location for binary objects during
build
--enable-debug Compile with debugging symbols
--enable-debug-pack Release binaries with external debug symbols
(--enable-debug must not be specified)
--disable-zts Thread safety
--enable-prefix where PHP will be installed
--with-php-build Path to where you extracted
http://www.php.net/extra/win32build.zip.
Assumes that it is a sibling of this source
dir (..\php_build) if not specified
--with-extra-includes Extra include path to use when building
everything
--with-extra-libs Extra library path to use when linking
everything
--disable-ipv6 Disable IPv6 support (default is turn it on
if available)
--enable-fd-setsize Set maximum number of sockets for select(2)
--enable-zend-multibyte Enable Zend multibyte encoding support
--with-snapshot-template Path to snapshot builder template dir
--with-aolserver Build AOLserver support
--enable-apache Build Apache 1.3.x version of PHP
--with-apache-includes Where to find Apache 1.3 headers
--with-apache-libs Where to find Apache 1.3 libraries
--enable-apache2filter Build Apache 2.x filter
--enable-apache2-2filter Build Apache 2.2.x filter
--enable-apache2handler Build Apache 2.x handler
--enable-apache2-2handler Build Apache 2.2.x handler
--with-apache-hooks Build Apache 1.3.x (hooks) version of PHP
--disable-cgi Build CGI version of PHP
--disable-fastcgi Build FastCGI support into CGI binary
--disable-path-info-check If this is disabled, paths such as
/info.php/test?a=b will fail to work
--disable-force-cgi-redirect Enable the security check for internal server
redirects. You should use this if you are
running the CGI version with Apache.
--disable-cli Build CLI version of PHP
--enable-crt-debug Extra CRT debugging
--enable-cli-win32 Build console-less CLI version of PHP
--enable-embed Embedded SAPI library
--enable-isapi Build ISAPI version of PHP
--enable-nsapi Build NSAPI for Netscape/iPlanet/SunONE
webservers
--with-nsapi-includes Where to find NSAPI headers
--with-nsapi-libs Where to find NSAPI libraries
--with-pi3web Pi3Web
--disable-bcmath bc style precision math functions
--with-bz2 BZip2
--disable-calendar calendar conversion support
--disable-com-dotnet COM and .Net support
--disable-ctype ctype
--with-curl cURL support
--with-dba DBA support
--enable-dbase Enable the bundled dbase library
--with-fbsql FrontBase support
--with-fdf Include FDF support.
--disable-filter Filter Support
--disable-ftp ftp support
--without-gd Bundled GD support
--without-t1lib t1lib support
--with-gettext gettext support
--with-gmp Include GNU MP support.
--disable-hash enable hash support
--without-iconv iconv support
--with-imap IMAP Support
--with-interbase InterBase support
--disable-json JavaScript Object Serialization support
--with-ldap LDAP support
--enable-mbstring multibyte string functions
--enable-mbregex multibyte regex support
--disable-mbregex-backtrack check multibyte regex backtrack
--with-mcrypt mcrypt support
--with-mhash mhash support
--with-mime-magic Mime Magic support
--with-ming MING support
--with-msql MSQL support
--with-mssql mssql support
--with-dblib mssql support with freetds
--with-mysql MySQL support
--with-mysqli MySQLi support
--with-oci8 OCI8 support
--disable-odbc ODBC support
--with-openssl OpenSSL support
--with-pgsql PostgreSQL support
--with-pspell pspell/aspell (whatever it's called this
month) support
--disable-reflection disable reflection support
--disable-session session support
--enable-shmop shmop support
--with-snmp SNMP support
--enable-sockets SOCKETS support
--disable-spl SPL (Standard PHP Library) support
--with-sqlite SQLite support
--with-config-file-scan-dir Dir to check for additional php ini files
--with-sybase-ct SYBASE_CT support
--with-tidy TIDY support
--disable-tokenizer tokenizer support
--enable-zip ZIP support
--disable-zlib ZLIB support
--without-libxml LibXML support
--without-dom DOM support
--enable-exif exif
--enable-pdo Enable PHP Data Objects support
--with-pdo-dblib freetds dblib (Sybase, MS-SQL) support for
PDO
--with-pdo-mssql Native MS-SQL support for PDO
--with-pdo-firebird Firebird support for PDO
--with-pdo-mysql MySQL support for PDO
--with-pdo-oci Oracle OCI support for PDO
--with-pdo-oci8 Oracle OCI 8 (only) support for PDO
--with-pdo-odbc ODBC support for PDO
--with-pdo-pgsql PostgreSQL support for PDO
--with-pdo-sqlite for pdo_sqlite support
--with-pdo-sqlite-external for pdo_sqlite support from an external dll
--without-simplexml Simple XML support
--enable-soap SOAP support
--without-wddx WDDX support
--without-xml XML support
--disable-xmlreader XMLReader support
--with-xmlrpc XMLRPC-EPI support
--disable-xmlwriter XMLWriter support
--with-xsl xsl support
след. параметры:
--disable-session
--disable-filter
--disable-cli
--disable-force-cgi-redirect
--disable-path-info-check
--disable-zts
--without-t1lib
--without-wddx
Также думаю стоить сделать несколько сборок, с разными модулями. Лучше свяжитесь со мной, надо экспериментировать.