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
Specify the Perl directory (often error-/usr/bin/perl, yum installs Perl by default and needs to be changed
/usr/local/apache2/bin/apxs change the first line to #!/usr/bin/perl-w)
--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 bz2 files
--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
Parameters for CGI mode installation
--enable-fpm
After the PHP-FPM patch has this parameter, CGI installation of the startup program
--enable-fastcgi
Support FastCGI way to start PHP
--enable-force-cgi-redirect
Ditto, there's no explanation in Help.
--with-ncurses
Dynamic library that supports ncurses screen drawing and graphical interactive functions based on text terminal
--enable-pcntl
FreeTDS need to use, may be linked to MSSQL to use
Extension of the Mhash and MCrypt algorithms
--with-mcrypt
Algorithm
--with-mhash
Algorithm
--with-gmp
--enable-inline-optimization
--with-openssl
Support for OpenSSL, used in encrypted transmissions
--enable-dbase
--with-pcre-dir=/usr/local/bin/pcre-config
Perl's regular library installation location
--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-soap
Install PHP compiler parameters under Linux