Linux PHP5.6 compilation parameters

Source: Internet
Author: User
Tags gcov ibm db2 image processing library imap openssl version snmp sybase tidy
There are quite a few options for compiling PHP under Linux, so make up your mind today./configure--help > Help.txt exports a list of compilation options and translates them for later review.

SAPI modules (option for PHP SAPI interface module):

Mostly related to Web services such as Apache, Nginx, etc.

  --with-aolserver=dir aolserver the installation path--with-apxs=file compile the apache1.x version of the shared module stored in the path--with-apache=dir compile the AP ache1.x version of the module, which is set as Apache software root directory--enable-mod-charset enable Apache Mod_charset (Russian Apache)--with-apxs2filter=file Compile the apache2.0 shared filter module, which is set as the path to the Apache APXS tool--with-apxs2=file Compile the module of the shared apache2.0 handler, which is set as the path to the Apache APXS tool--with-apach E-hooks=file shared apache1.0 's Hook module, which is set as the path to the Apache APXS tool--with-apache-hooks-static=dir Here is the path to the Apache APXS tool-- DISABLE-CLI disables command-line mode (PHP-CLI)--with-continuity=dir compiles PHP as a continuous service module. The continuity parameter establishes an embedded SAPI library for the root directory of the installation of the--enable-embed=type server. The parameter is shared, static--ENABLE-FPM open fpm mode (nginx, etc.)--with-fpm-user=user fpm running user, default to nobody--with-fpm-grou P=GRP fpm Run group, default is nobody--with-fpm-systemd activate system integration function, open after fpm can escalate to the system some information--with-fpm-acl use POSIX access control list, 5.6       . version 5 effective--with-isapi=dir Creating an ISAPI module for Zeus Web server--with-litespeed compiling PHP for Litespeed module--with-milter=dir Compiling PHP for Milter applications--with-nsApi=dir compiling PHP for Netscape/iplanet/sun Web server for NSAPI module--enable-phpdbg compile phpdbg Debugger--enable-phpdbg-debug editor        Translate phpdbg Debugger for debug mode--with-phttpd=dir compile PHP for phttpd module--with-pi3web=dir compile php for Pi3web module--with-roxen=dir    Compile PHP for roxen module--enable-roxen-zts compile php for roxen module, thread safety--with-thttpd=srcdir compile PHP for THTTPD module--with-tux=moduledir Compile PHP for Tux module--with-webjames=srcdir compile PHP for webjames module--disable-cgi disable CGI

General settings (comprehensive setting):

--enable-gcov Turn on Gcov Support (test Code coverage feature)--enable-debug Compile with debugging symbols--with-layout=type  Set how installed files is laid out. Type can be either PHP or GNU [PHP]--with-config-file-path=path php.ini file location [Prefix/lib]--with -config-file-scan-dir=path Scan configuration file path--enable-sigchild use PHP's own SIGCHLD processor--ENABLE-LIBGCC enable accurate link to LIBGCC- -disable-short-tags The short form is disabled by default
   

Extensions (Extended):

Extensions:--with-extension=shared[,path] Not all extensions can be compiled into a shared mode note:not all Extensions can be build as ' shared '. For example, how to compile the extension into a shared mode: Example:--with-foobar=shared,/usr/local/foobar/o Builds the foobar extension as shared Extens      Ion. o foobar Package Install prefix is/usr/local/foobar/--disable-all turn off default to all extended features enabled--with-regex=type Regular table The Dashiku type.  Option: system|php (default) Warning: If you don't know what this is, don't move this option! --disable-libxml disabling libxml support--with-libxml-dir=dir libxml install directory--with-openssl=dir enable OpenSSL support (the OpenSSL version number must be large 0.9.6)--with-kerberos=dir OpenSSL: Includes Kerberos support--with-system-ciphers OpenSSL: Use the system's own password list (cipher list) to replace hard-coded ( Hard coded)--with-pcre-regex=dir Reference Pear compatible Regular expression library--without-sqlite3=dir do not turn on Sqlite3 support--with-zlib=dir open zlib Support (zlib version number must be greater than or equal to 1.0.9)--with-zlib-dir=
  
   
   Zlib installation path--enable-bcmath enable bcmatch (BC style precision math)--with-bz2=dir turn on BZIP2--enable-calendar enable calendar The conversion supports--disable-ctype disabling the CType feature--with-curl=dir enable Curl to support the DBA for--ENABLE-DBA Architecture bundle.  The shared module to establish the extension uses the--enable-dba=shared parameter. --with-qdbm=dir DBA:QDBM support--with-gdbm=dir dba:gdbm support--with-ndbm=dir dba:ndbm su  Pport--with-db4=dir dba:oracle Berkeley DB 4.x or 5.x support--with-db3=dir dba:oracle Berkeley DB  3.x support--with-db2=dir dba:oracle Berkeley DB 2.x support--with-db1=dir dba:oracle Berkeley DB 1.x support/emulation--with-dbm=dir dba:dbm support--with-tcadb=dir Dba:tokyo Cabinet abstract DB S   Upport--without-cdb=dir dba:cdb Support (bundled) (bundle mode)--disable-inifile Dba:ini support (bundled) (bundled)   --disable-flatfile Dba:flatfile Support (bundled) (bundled)--disable-dom disable DOM supports--with-libxml-dir=dirDOM: Enable LIBXML2 and specify its installation directory--with-enchant=dir enable enchant support. GNU Aspell version number must be higher than 1.1.3--enable-exif enable EXIF support (get Meta data from picture)--disable-fileinfo Close FileInfo support--disable-fil ter off input filter support--with-pcre-dir filter:pcre install prefix--enable-ftp open FTP support--wit H-openssl-dir=dir ftp:openssl Install prefix--with-gd=dir open GD image processing Library--with-vpx-dir=dir GD: Specify LIBVPX Installation Directory--with-jpeg-dir=dir GD: Specify the installation directory for Libjpeg--with-png-dir=dir GD: Specify the installation directory for libpng--with-zlib-dir=dir GD: Specify L        IBZ installation directory--with-xpm-dir=dir GD: Specifies the installation directory for LIBXPM--with-freetype-dir=dir GD: Specifies the FreeType2 installation directory--with-t1lib=dir GD: Specify T1lib support--enable-gd-native-ttf GD: Enable Turetype character feature--enable-gd-jis-conv GD: Enable jis-mapped Japanese font support--with-gettext          =dir includes GNU GetText support--with-gmp=dir enable GNU MP support--with-mhash=dir specify Mhash directory--disable-hash Disable hash support--without-iconv=dir disable ICONV support--WITH-IMAP=DIR include IMAP support. Specify C-cLient install directory--with-kerberos=dir IMAP: Enable Kerberos support and specify its directory--with-imap-ssl=dir IMAP: Enable SSL support and specify the OpenSSL directory--with-int Erbase=dir enable InterBase support and specify its directory--enable-intl turn on internationalization support (internationalization)--with-icu-dir=dir Specify where ICU libraries and headers can be found--disable-json off JSON support--with-ldap=dir enable LDAP support--with -ldap-sasl=dir LDAP: Turn on Cyrus SASL support--enable-mbstring enable multi-byte string support--disable-mbregex mbstring: Disabling multibyte regular expressions Support--disable-mbregex-backtrack mbstring: Disable multibyte regular expression backtracking--with-libmbfl=dir mbstring: Use external LIBMBFL and develop its directory--with-o Nig=dir mbstring: Use external onig and develop its catalog--with-mcrypt=dir include MCrypt support--with-mssql=dir include mssql-db support, and specify FRE ETDs Software Catalog--with-mysql-sock=sockpath Locate the UNIX socket pointer for MySQL.  If not specified, search by default location. --with-zlib-dir=dir MySQL: Set zlib installation directory--with-mysqli=file contains mysqli support.  The location of the parameter is Mysql_config--enable-embedded-mysqli mysqli: Enable embedded support. --with-oci8=dir includes Oracle support. If you use the Oracle clientThe installation uses--with-oci8=instantclient,/path/to/oic/lib--with-odbcver=hex Force support for the passed ODBC version.                             A Hex number is expected, default 0x0300.  Use the special value of 0 to prevent a explicit odbcver to be defined. --with-adabas=dir include Adabas D support/usr/local--with-sapdb=dir include SAP DB support/usr/local-- With-solid=dir include solid Support/usr/local/solid--with-ibm-db2=dir include IBM DB2 support/home/db2ins T1/sqllib--with-odbcrouter=dir include odbcrouter.com support/usr--with-empress=dir include Empress Support \$                          Empresspath (Empress Version >= 8.60 required)--with-empress-bcs=dir Include Empress Local Access support \ $EMPRESSPATH (Empress Version >= 8.60 required)--wit H-birdstep=dir include Birdstep support/usr/local/birdstep--with-custom-odbc=dir include user defined ODBC support . DIR is ODBC Install base directory/usr/local. Make sure to define CUSTOM_ODBC_LIBS and has some odbc.h in your include dirs. F.E. You should D Efine following for Sybase SQL Anywhere 5.5.00 on QNX, prior to running This configure script:cppflags=\ "-dodbc_qnx-dsqlany_bug\" ldflags= -lunix custom_odbc_libs=\ "-ldblib-lodbc\"--with-iodbc=dir Include iodbc support/usr/ Local--with-esoob=dir Include easysoft OOB support/usr/local/easysoft/oob/client--with-unixodbc=dir Includ E UnixODBC support/usr/local--with-dbmaker=dir Include dbmaker support--enable-opcache enable Zend Opcach E support--enable-pcntl enable PCNTL support (cli/cgi only)--disable-pdo disable PHP Data Objects s  Upport--with-pdo-dblib=dir pdo:dblib-db Support. DIR is the FreeTDS homeDirectory--with-pdo-firebird=dir Pdo:firebird Support. DIR is the Firebird base install Directory/opt/firebird--with-pdo-mysql=dir Pdo:mysql Supp Ort.                          Dir is the MySQL base directory If No value or MYSQLND is passed as DIR, the MySQL native driver'll be used--with-zlib-dir=dir pdo_mysql:set the path to libz install prefix--with-pdo- Oci=dir pdo:oracle OCI Support.                          DIR defaults to \ $ORACLE _home.                          Use the--with-pdo-oci=instantclient,prefix,version for an Oracle Instant Client SDK.                          For example on Linux with 11.2 RPMs use:--with-pdo-oci=instantclient,/usr,11.2 With 10.2 RPMs use:--with-pdo-oci=instantclient,/usr,10.2.0.4--with-pdo              -odbc=flavour,dir pdo:support for ' flavour ' ODBC driver. Include and Lib Dirs is looked for under ' dir '. ' Flavour ' can be one of:ibm-db2, iODBC, UnixODBC, Generic If ', dir ' was omitted, default for the Flavou R you have selected'll be used. e.g.:--with-pdo-odbc=unixodbc would check for UnixODBC under/usr/local.  You could attempt to use an otherwise unsupported driver using the \ "generic\" flavour. The syntax for generic ODBC support is:--with-pdo-odbc=generic,dir,libname,ldflags,cflags Whe  N built as ' shared ' the extension filename is always pdo_odbc.so--with-pdo-pgsql=dir pdo:postgresql support.                          DIR is the PostgreSQL base install directory or the path to Pg_config--without-pdo-sqlite=dir  Pdo:sqlite 3 support. DIR is the SQLite base install directory BUNDLED--with-pgsql=dir Include PostgreSQL Supp  Ort.             DIR is the PostgreSQL             Base install directory or the path to Pg_config--disable-phar disable Phar Support--disable-posi                          x Disable posix-like functions--with-pspell=dir Include Pspell Support.  GNU Aspell version 0.50.0 or higher required--with-libedit=dir Include libedit readline replacement (cli/cgi only) --with-readline=dir include ReadLine support (cli/cgi only)--with-recode=dir Include recode support--DISABL E-session Disable Session Support--with-mm=dir Session:include mm support for session storage--enable -SHMOP Enable shmop Support--disable-simplexml disable simplexml support--with-libxml-dir=dir simplexml : libxml2 install prefix--with-snmp=dir Include SNMP support--with-openssl-dir=dir snmp:openssl install pref        IX--enable-soap Enable SOAP support--with-libxml-dir=dir soap:libxml2 install prefix--enable-sockets Enable Sockets Support--wiTh-sybase-ct=dir Include sybase-ct Support. DIR is the Sybase home directory/home/sybase--enable-sysvmsg enable sysvmsg Support--   Enable-sysvsem Enable System V Semaphore support--ENABLE-SYSVSHM enable the System V shared memory support           --with-tidy=dir Include Tidy Support--disable-tokenizer disable Tokenizer support--ENABLE-WDDX  Enable WDDX Support--with-libxml-dir=dir wddx:libxml2 install prefix--with-libexpat-dir=dir wddx:libexpat dir for   Xmlrpc-epi (deprecated)--disable-xml disable XML support--with-libxml-dir=dir xml:libxml2 install prefix --with-libexpat-dir=dir xml:libexpat Install prefix (deprecated)--disable-xmlreader disable XmlReader Support-- With-libxml-dir=dir xmlreader:libxml2 Install prefix--with-xmlrpc=dir Include XMLRPC-EPI support--with-libxml -dir=dir xmlrpc-epi:libxml2 Install prefix--with-libexpat-dir=dir xmlrpc-epi:libexpat dir foR Xmlrpc-epi (deprecated)--with-iconv-dir=dir xmlrpc-epi:iconv dir for Xmlrpc-epi--disable-xmlwriter disable X  Mlwriter Support--with-libxml-dir=dir xmlwriter:libxml2 the install prefix--with-xsl=dir Include XSL support.            DIR is the libxslt base install directory (LIBXSLT >= 1.1.0 required)--enable-zip         Include Zip read/write Support--with-zlib-dir=dir zip:set the path to libz install prefix--with-pcre-dir Zip:pcre Install prefix--with-libzip=dir zip:use libzip--enable-mysqlnd enable Mysqlnd explicitly, WI                          ll be do implicitly when required by other extensions--disable-mysqlnd-compression-support Disable support for the MySQL compressed protocol in MYSQLND--with-zlib-dir=dir Mysqlnd:set The path to libz install prefix
  
  • 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.