Linux PHP compilation and installation parameters detailed
./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--with-mysql=/usr/local/mysql-- With-mysqli=/usr/bin/mysql_config--with-iconv-dir=/usr/local--with-freetype-dir--with-jpeg-dir--with-png-dir-- With-zlib--with-libxml-dir=/usr--enable-xml--disable-rpath--enable-discard-path--enable-safe-mode-- Enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization--with-curl--with-curlwrappers-- Enable-mbregex--enable-fastcgi--enable-fpm--enable-force-cgi-redirect--enable-mbstring--with-mcrypt--WITH-GD-- Enable-gd-native-ttf--with-openssl--with-mhash--enable-pcntl--enable-sockets--with-ldap--WITH-LDAP-SASL-- With-xmlrpc--enable-zip--enable-soap--without-pear--with-zlib--enable-pdo--with-pdo-mysql--with-mysql--prefix= /usr/local/php//Specify PHP installation directory
--WITH-APXS2=/USR/LOCAL/APACHE/BIN/APXS//Integrated APACHE,APXS function is to use the loadmodule instruction in Mod_so, load the specified module to Apache, require Apache to open so module
--WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP/ETC//Specify php.ini location
--with-mysql=/usr/local/mysql//mysql installation directory, support for MySQL
--with-mysqli=/usr/local/mysql/bin/mysql_config//mysqli Extension technology can not only invoke MySQL's stored procedures, handle MySQL transactions, but also make access to the database work more stable.
--enable-safe-mode Turn on Safe mode
--ENABLE-FTP Support for Open FTP
--enable-zip opening support for zip
--WITH-BZ2 opening support for bz2 files
--with-jpeg-dir opening support for JPEG images
--with-png-dir opening support for PNG images
--with-freetype-dir opening support for the FreeType font library
--without-iconv Close Iconv function, conversion between various character sets
--with-libxml-dir opening support for LIBXML2 libraries
--WITH-XMLRPC Open the C language of XML-RPC
--with-zlib-dir opening support for zlib libraries
--WITH-GD opening the GD library support
--enable-gd-native-ttf supports TrueType string function libraries
--with-curl opening the Curl browsing tool support
--with-curlwrappers using the Curl tool to open the URL stream
--with-ttf Open freetype1.* Support, can not add
--with-xsl opens XSLT file support, expands the LibXML2 library, requires LIBXSLT software
--with-gettext opens the GNU gettext Support, the code library uses the
--with-pear Open the support for Pear command, PHP extension with
--enable-calendar opening the Calendar extension feature
--enable-mbstring Multi-byte, string support
--enable-bcmath Open picture resizing, use this module for Zabbix monitoring
--enable-sockets Open Sockets support
Meta-data support for--ENABLE-EXIF images
--enable-magic-quotes Support for Magic quotes
--disable-rpath to close additional runtime files
--disable-debug turning off debug mode
--with-mime-magic=/usr/share/file/magic.mime Magic Head File location CGI mode installation only parameters:--ENABLE-FPM//PHP-FPM patch after this parameter, CGI installation of the startup program
--ENABLE-FASTCGI//Support FastCGI way to start PHP
--enable-force-cgi-redirect//redirect Start PHP
--with-ncurses//Support for ncurses screen drawing and dynamic library of graphical interactive functions based on text terminal
--enable-pcntl//freetds need to use, may be linked to MSSQL to use
Extension of--with-mcrypt//mcrypt algorithm
Extension of--with-mhash//mhash algorithm
The above function libraries need to be installed
--WITH-GMP should be supportive of a specification
--enable-inline-optimization Optimizing Threads
--with-openssl//OPENSSL Support, encrypted transmission of the use of
--enable-dbase//Establishing DBA as a shared module
--with-pcre-dir=/usr/local/bin/pcre-config//perl installation location of the regular library case
--disable-dmalloc
--WITH-GDBM//dba's gdbm support
--enable-sigchild
--enable-sysvsem
--enable-sysvshm
--enable-zend-multibyte//multi-byte support for Zend
--enable-mbregex
--enable-wddx
--enable-shmop
--enable-soap1>After specifying the--WITH-APXS2=/USR/LOCAL/APACHE/BIN/APXS, do not activate--ENABLE-FPM and--ENABLE-FASTCGI,APXS are loaded PHP in PHP module mode.
2>MySQL after compiling the MySQL development library, you can not specify the path of MySQL.
3>PHP compiler has a basic dependency relationship, compiling PHP first needs to install the XML extension, because the PHP5 core opens XML support by default, the other base libraries, the corresponding need:
4>GD--Zlib, Png, JPG, if you need to support other, still need to compile the extension library according to the actual situation, TTF library needs FreeType library support.
5>--enable-magic-quotes, is an extremely deprecated parameter, of course, if you need PHP to do the work for you underneath, in fact he does not solve the problem very thoroughly.
6>-With-openssl, the OpenSSL library is required.
Linux PHP compilation and installation parameters detailed