detailed description of PHP parameters
[Root@lnmp01 tools]# Tar XF php-5.3.27.tar.gz decompression Pack [root@lnmp01 tools]# cd php-5.3.27 into the PHP installation directory./configure compilation Parameters –prefix=/ APPLICATION/PHP5.3.27 specifies that the installation path for PHP is/application/php5.3.27–with-mysql=/application/mysql/
You need to specify the installation path for MySQL and install the MySQL-related content required by PHP. Of course, if you do not have a MySQL software package, you can also not install separately, such a situation can use –WITH-MYSQL=MYSQLND instead of –with-mysql=/application/mysql, because the PHP software has its own connection to the MySQL client tool.
–with-iconv-dir=/usr/local/libiconv Libiconv Library, conversion between various character sets –with-freetype-dir open to FreeType font library support –with-jpeg-dir Turn on support for JPEG pictures –with-png-dir Open support for PNG images –with-zlib Open zlib Library support for HTTP compressed transport –WITH-LIBXML-DIR=/USR open LIBXML2 Library Support – Enable-xml–disable-rpath close additional Runtime files –enable-safe-mode turn on Safe mode –enable-bcmath turn on picture resizing and use Zabbix to monitor the module –enable-shmop– Enable-sysvsem use SYSV signaling mechanism, turn this option on –enable-inline-optimization optimize thread –with-curl turn on support for Curl browsing tool –with-curlwrappers The Ops Curl tool opens the URL stream –enable-mbregex–enable-mbstring supports mbstring–with-mcrypt encoding function library –WITH-GD Open GD library support –enable-gd-native-ttf Support for TrueType string function library –with-openssl OpenSSL support, –with-mhash mhash algorithm extension –enable-pcntl FreeTDS required for encrypted transmission, may be link mssql– Enable-sockets Open Sockets support –WITH-XMLRPC open XML-RPC C language –enable-zip open support for zip –enable-soap soap Module extension –enable-short-tags Start and Mark function –enable-zend-multibyte support Zend Multi-byte –enable-static generate static link library –with-xsl open XSLT file support, expand LibXML2 Library, need libxslt software – ENABLE-FTP Open FTP support –ENABLE-FPM means to activate the PHP-FPM mode service, which is the factcgi way to run the PHP service. –WITH-FPM-USER=WWW specifies that the user for PHP-FPM process management is WWW,It is best to unify with Nginx service users here. –WITH-FPM-GROUP=WWW specifies that the PHP-FPM process Management User Group is WWW, where the best and Nginx service user groups are unified. [Root@lnmp01 php]# ln-s/application/mysql/lib/libmysqlclient.so.18/usr/lib64/Soft link [root@lnmp01 php]# touch ext/phar/ Phar.phar Creating a PHP installation requires a file [root@lnmp01 php]# making && make install build installation [Root@lnmp01 php]# ln-s/application/php5.3.27/ /application/php link to version (easy to upgrade and follow-up maintenance) [Root@lnmp01 php]# cp/application/tools/php-5.3.27/php.ini-production/ Application/php/lib/php.ini copy php.ini requires configuration file [Root@lnmp01 php]# Cp/application/php/etc/php-fpm.conf.default/ application/php/etc/php-fpm.conf copy php-fpm configuration file [root@lnmp01 php]#/application/php/sbin/php-fpm start php-fpm