php compiler parameter Options specific parameter meaning can be used./configure--help to view

Source: Internet
Author: User
Tags fpm gettext ldap mcrypt openssl pear php compiler zend

PHP Compile parameter Options  php_install_path=/data/web/phpmysql_install_path=/data/web/mysql./configure--prefix=${PHP_ install_path}--with-config-file-path=${php_install_path}/etc--with-mysql=${mysql_install_path}--with-mysqli=${ mysql_install_path}/bin/mysql_config--with-iconv-dir=/usr/local--with-freetype-dir--with-jpeg-dir-- with-png-dir--with-zlib--with-libxml-dir=/usr/lib64--enable-xml--disable-rpath--enable-bcmath--enable-shmop-- enable-sysvsem--enable-inline-optimization--with-curl--with-curlwrappers--enable-mbregex--enable-fpm-- 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--enable-pdo-- With-pdo-mysql--without-pear

  If the added parameters are not supported, such as: configure:WARNING:unrecognized options:--enable-discard-path,- -enable-safe-mode,--enable-fastcgi,--enable-force-cgi-redirect

Stating that these parameters are obsolete

Specific parameter meanings can be viewed using the./configure--help.

The list is as follows (some parameters have not been explained):

# Specify PHP installation directory

# Specify PHP.ini location

# MySQL installation directory, support for MySQL

--with-mysql=/usr/local/mysql

MYSQLI extension technology can not only invoke Mysql's stored procedures, handle MySQL transactions, but also make access to the database work more Stable.

--with-mysqli=/usr/local/mysql/bin/mysql_config   

The integrated APACHE,APXS function is to use the LoadModule directive in MOD_SO to load the specified module to apache, which requires Apache to open the so module

# option Directive--with-iconv-dir is used to specify the path of Iconv in the system when PHP is compiled, otherwise the default path will be Scanned.

--with-freetype-dir   open support for FreeType font libraries--with-jpeg-dir turn on   support for JPEG Images--with-png-dir   Open support for PNG images- With-zlib-dir   Open support for Zlib Library for HTTP compressed transport--with-libxml-dir   open LIBXML2 Library Support--disable-rpath    close additional runtime files-- Enable-bcmath    Open the image sizing, use the Zabbix monitoring when the Module--enable-shmop--enable-sysvsem this  allows your PHP system to handle the relevant IPC Functions. --enable-inline-optimization  optimize thread--with-curl    Open the Curl Browsing tool support--with-curlwrappers    Use the Curl tool to open the URL stream-- ENABLE-MBREGEX--ENABLE-FPM hit the php-fpm patch only after this parameter, CGI installation of the startup program--enable-mbstring multibyte    , string Support--with-mcrypt                    MCrypt algorithm Extension--with-mhash                     mhash algorithm extension--with-gd    open GD library Support--enable-gd-native-ttf   Supports TrueType string function Library--with-openssl      OpenSSL support, encrypted transmission HTTPS used by The--enable-pcntl   FreeTDS need to use, may be linked MSSQL Just use--enable-sockets     open sockets Support--with-xmlrpc    open XML-RPC C language--enable-zip   open support for ZIP--ENABLE-FTP   

--WITH-BZ2    Open support for bz2 files        --without-iconv   turn off iconv function, conversion between character Sets--with-ttf     open freetype1.* support, can not add-- With-xsl     Open XSLT file support, expanded the libXML2 library, need libxslt software--with-gettext     open GNU gettext support, Encoding library used to--with-pear    Open the support of Pear command, PHP extension with--enable-calendar    open Calendar extension function--enable-exif    picture metadata support--enable-magic-quotes    Magic Reference support-- Disable-debug    Turn off debug mode--with-mime-magic=/usr/share/file/magic.mime      Magic header File location

Parameters for CGI mode installation

--enable-fastcgi            support FastCGI mode start Php--enable-force-cgi-redirect        redirect mode start php--with-ncurses         support ncurses The dynamic Library--with-gmp of screen drawing and graphic interactive function based on text terminal  should be supported by a specification--enable-dbase                     build DBA as a shared module--with-pcre-dir=/usr/local/bin/ Pcre-config      Perl's Regular library installation location--disable-dmalloc--with-gdbm                     Dba's gdbm Supports--enable-sigchild--enable-sysvshm--enable-zend-multibyte         multi-byte--enable-wddx--enable-soap that support Zend

php compiler parameter Options specific parameter meaning can be used./configure--help to view

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.