PHP source code when installing the parameters
Install PHP under Linux, source code mode installation, always need to configure a lot of parameters. The common configuration parameters are listed here and explained in detail in Chinese.
Give us some references./configure
–prefix=/usr/local/php?????????????????????????????????? PHP installation directory
–with-apxs2=/usr/local/apache/bin/apxs
–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 file directory, optimization support
–enable-safe-mode????????????????????????????? Turn on Safe mode
–enable-ftp???????????????????????????????? Turn on FTP support
–enable-zip???????????????????????????????? Open support for Zip
–WITH-BZ2??????????????????????????????????? Open support for the bz2 file????????????????????????
–with-jpeg-dir???????????????????????????????? Turn on support for JPEG pictures
–with-png-dir???????????????????????????????? Turn on support for PNG images
–with-freetype-dir????????????????????????????? Open support for the FreeType font library
–without-iconv???????????????????????????????? Turn off Iconv function, conversion between kinds of character sets
–with-libxml-dir???????????????????????????????? Open support for the LIBXML2 library
–with-xmlrpc???????????????????????????????? Open XML-RPC's C language
–with-zlib-dir???????????????????????????????? Open support for the zlib library
–WITH-GD??????????????????????????????????? Open the GD library support
–enable-gd-native-ttf?????????????????????????? Support for TrueType string function libraries
–with-curl??????????????????????????????????? Turn on support for the Curl browsing tool
–with-curlwrappers????????????????????????????? Use the Curl tool to open the URL stream
–with-ttf??????????????????????????????????? Open the freetype1.* support, can not add
–with-xsl???????????????????????????????????? Open XSLT file support, expand the LibXML2 Library, need libxslt software
–with-gettext???????????????????????????????? Open GNU GetText Support, the code library used to
–with-pear????????????????????? Open the support for the Pear command, PHP extension
–enable-calendar????????????????? Turn on the Calendar extensions feature
–enable-mbstring????????????????? Multi-byte, string support
–enable-bcmath????????????????? Turn on picture resizing, use this module when using Zabbix monitoring
–enable-sockets????????????????? Open Sockets support
–enable-exif????????????????????? Meta-data support for images
–enable-magic-quotes?????????????? Support for Magic Quotes
–disable-rpath???????????????????? Close additional run-Library files
–disable-debug????????????????? To turn off debug mode
–with-mime-magic=/usr/share/file/magic.mime????? Magic Header File Location