Complete list of PHP configure options for version 5.5.14.
In the terminal, change to the source directory and execute the below command.
# ./configure --help
`configure' configures this package to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print `checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or `..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local' using `--prefix', for instance `--prefix=$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] --target=TARGET configure for building compilers for TARGET [HOST] Optional Features and Packages: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-libdir=NAME Look for libraries in .../NAME rather than .../lib --disable-rpath Disable passing additional runtime library search paths --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc extension SAPI modules: --with-aolserver=DIRSpecify path to the installed AOLserver--with-apxs=FILEBuild shared Apache 1.x module. FILE is the optional pathname to the Apache apxs tool apxs--with-apache=DIRBuild Apache 1.x module. DIR is the top-level Apache build directory /usr/local/apache--enable-mod-charsetAPACHE: Enable transfer tables for mod_charset (Rus Apache)--with-apxs2filter=FILEEXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional pathname to the Apache apxs tool apxs--with-apxs2=FILEBuild shared Apache 2.0 Handler module. FILE is the optional pathname to the Apache apxs tool apxs--with-apache-hooks=FILEEXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional pathname to the Apache apxs tool apxs--with-apache-hooks-static=DIREXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache build directory /usr/local/apache--enable-mod-charsetAPACHE (hooks): Enable transfer tables for mod_charset (Rus Apache)--with-caudium=DIRBuild PHP as a Pike module for use with Caudium. DIR is the Caudium server dir /usr/local/caudium/server--disable-cliDisable building CLI version of PHP (this forces --without-pear)--with-continuity=DIRBuild PHP as Continuity Server module. DIR is path to the installed Continuity Server root--enable-embed=TYPEEXPERIMENTAL: Enable building of embedded SAPI library TYPE is either 'shared' or 'static'. TYPE=shared--enable-fpmEnable building of the fpm SAPI executable--with-fpm-user=USERSet the user for php-fpm to run as. (default: nobody)--with-fpm-group=GRPSet the group for php-fpm to run as. For a system user, this should usually be set to match the fpm username (default: nobody)--with-fpm-systemdActivate systemd integration--with-isapi=DIRBuild PHP as an ISAPI module for use with Zeus--with-litespeedBuild PHP as litespeed module--with-milter=DIRBuild PHP as Milter application--with-nsapi=DIRBuild PHP as NSAPI module for Netscape/iPlanet/Sun Webserver--with-phttpd=DIRBuild PHP as phttpd module--with-pi3web=DIRBuild PHP as Pi3Web module--with-roxen=DIRBuild PHP as a Pike module. DIR is the base Roxen directory, normally /usr/local/roxen/server--enable-roxen-ztsROXEN: Build the Roxen module using Zend Thread Safety--with-thttpd=SRCDIRBuild PHP as thttpd module--with-tux=MODULEDIRBuild PHP as a TUX module (Linux only)--with-webjames=SRCDIRBuild PHP as a WebJames module (RISC OS only)--disable-cgiDisable building CGI version of PHPGeneral settings: --enable-gcovEnable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!--enable-debugCompile with debugging symbols--with-layout=TYPESet how installed files will be laid out. Type can be either PHP or GNU [PHP]--with-config-file-path=PATHSet the path in which to look for php.ini [PREFIX/lib]--with-config-file-scan-dir=PATHSet the path where to scan for configuration files--enable-sigchildEnable PHP's own SIGCHLD handler--enable-libgccEnable explicitly linking against libgcc--disable-short-tagsDisable the short-form <? start tag by default--enable-dmallocEnable dmalloc--disable-ipv6Disable IPv6 support--enable-dtraceEnable DTrace support--enable-fd-setsizeSet size of descriptor setsExtensions: --with-EXTENSION=shared[,PATH] NOTE: Not all extensions can be build as 'shared'. Example: --with-foobar=shared,/usr/local/foobar/ o Builds the foobar extension as shared extension. o foobar package install prefix is /usr/local/foobar/ --disable-allDisable all extensions which are enabled by default--with-regex=TYPERegex library type: system, php. TYPE=php WARNING: Do NOT use unless you know what you are doing!--disable-libxmlDisable LIBXML support--with-libxml-dir=DIRLIBXML: libxml2 install prefix--with-openssl=DIRInclude OpenSSL support (requires OpenSSL >= 0.9.6)--with-kerberos=DIROPENSSL: Include Kerberos support--with-pcre-regex=DIRInclude Perl Compatible Regular Expressions support. DIR is the PCRE install prefix BUNDLED--without-sqlite3=DIRDo not include SQLite3 support. DIR is the prefix to SQLite3 installation directory.--with-zlib=DIRInclude ZLIB support (requires zlib >= 1.0.9)--with-zlib-dir=<DIR>Define the location of zlib install directory--enable-bcmathEnable bc style precision math functions--with-bz2=DIRInclude BZip2 support--enable-calendarEnable support for calendar conversion--disable-ctypeDisable ctype functions--with-curl=DIRInclude cURL support--enable-dbaBuild DBA with bundled modules. To build shared DBA extension use --enable-dba=shared--with-qdbm=DIRDBA: QDBM support--with-gdbm=DIRDBA: GDBM support--with-ndbm=DIRDBA: NDBM support--with-db4=DIRDBA: Oracle Berkeley DB 4.x or 5.x support--with-db3=DIRDBA: Oracle Berkeley DB 3.x support--with-db2=DIRDBA: Oracle Berkeley DB 2.x support--with-db1=DIRDBA: Oracle Berkeley DB 1.x support/emulation--with-dbm=DIRDBA: DBM support--with-tcadb=DIRDBA: Tokyo Cabinet abstract DB support--without-cdb=DIRDBA: CDB support (bundled)--disable-inifileDBA: INI support (bundled)--disable-flatfileDBA: FlatFile support (bundled)--disable-domDisable DOM support--with-libxml-dir=DIRDOM: libxml2 install prefix--with-enchant=DIRInclude enchant support. GNU Aspell version 1.1.3 or higher required.--enable-exifEnable EXIF (metadata from images) support--disable-fileinfoDisable fileinfo support--disable-filterDisable input filter support--with-pcre-dirFILTER: pcre install prefix--enable-ftpEnable FTP support--with-openssl-dir=DIRFTP: openssl install prefix--with-gd=DIRInclude GD support. DIR is the GD library base install directory BUNDLED--with-vpx-dir=DIRGD: Set the path to libvpx install prefix--with-jpeg-dir=DIRGD: Set the path to libjpeg install prefix--with-png-dir=DIRGD: Set the path to libpng install prefix--with-zlib-dir=DIRGD: Set the path to libz install prefix--with-xpm-dir=DIRGD: Set the path to libXpm install prefix--with-freetype-dir=DIRGD: Set the path to FreeType 2 install prefix--with-t1lib=DIRGD: Include T1lib support. T1lib version >= 5.0.0 required--enable-gd-native-ttfGD: Enable TrueType string function--enable-gd-jis-convGD: Enable JIS-mapped Japanese font support--with-gettext=DIRInclude GNU gettext support--with-gmp=DIRInclude GNU MP support--with-mhash=DIRInclude mhash support--disable-hashDisable hash support--without-iconv=DIRExclude iconv support--with-imap=DIRInclude IMAP support. DIR is the c-client install prefix--with-kerberos=DIRIMAP: Include Kerberos support. DIR is the Kerberos install prefix--with-imap-ssl=DIRIMAP: Include SSL support. DIR is the OpenSSL install prefix--with-interbase=DIRInclude InterBase support. DIR is the InterBase base install directory /usr/interbase--enable-intlEnable internationalization support--with-icu-dir=DIRSpecify where ICU libraries and headers can be found--disable-jsonDisable JavaScript Object Serialization support--with-ldap=DIRInclude LDAP support--with-ldap-sasl=DIRLDAP: Include Cyrus SASL support--enable-mbstringEnable multibyte string support--disable-mbregexMBSTRING: Disable multibyte regex support--disable-mbregex-backtrackMBSTRING: Disable multibyte regex backtrack check--with-libmbfl=DIRMBSTRING: Use external libmbfl. DIR is the libmbfl base install directory BUNDLED--with-onig=DIRMBSTRING: Use external oniguruma. DIR is the oniguruma install prefix. If DIR is not set, the bundled oniguruma will be used--with-mcrypt=DIRInclude mcrypt support--with-mssql=DIRInclude MSSQL-DB support. DIR is the FreeTDS home directory /usr/local/freetds--with-mysql=DIRInclude MySQL support. DIR is the MySQL base directory, if no DIR is passed or the value is mysqlnd the MySQL native driver will be used--with-mysql-sock=SOCKPATHMySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer. If unspecified, the default locations are searched--with-zlib-dir=DIRMySQL: Set the path to libz install prefix--with-mysqli=FILEInclude MySQLi support. FILE is the path to mysql_config. If no value or mysqlnd is passed as FILE, the MySQL native driver will be used--enable-embedded-mysqliMYSQLi: Enable embedded support. Note: Does not work with MySQL native driver!--with-oci8=DIRInclude Oracle Database OCI8 support. DIR defaults to $ORACLE_HOME. Use --with-oci8=instantclient,/path/to/instant/client/lib to use an Oracle Instant Client installation--with-adabas=DIRInclude Adabas D support /usr/local--with-sapdb=DIRInclude SAP DB support /usr/local--with-solid=DIRInclude Solid support /usr/local/solid--with-ibm-db2=DIRInclude IBM DB2 support /home/db2inst1/sqllib--with-ODBCRouter=DIRInclude ODBCRouter.com support /usr--with-empress=DIRInclude Empress support $EMPRESSPATH (Empress Version >= 8.60 required)--with-empress-bcs=DIRInclude Empress Local Access support $EMPRESSPATH (Empress Version >= 8.60 required)--with-birdstep=DIRInclude Birdstep support /usr/local/birdstep--with-custom-odbc=DIRInclude user defined ODBC support. DIR is ODBC install base directory /usr/local. Make sure to define CUSTOM_ODBC_LIBS and have some odbc.h in your include dirs. f.e. you should define 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=DIRInclude iODBC support /usr/local--with-esoob=DIRInclude Easysoft OOB support /usr/local/easysoft/oob/client--with-unixODBC=DIRInclude unixODBC support /usr/local--with-dbmaker=DIRInclude DBMaker support--enable-opcacheEnable Zend OPcache support--enable-pcntlEnable pcntl support (CLI/CGI only)--disable-pdoDisable PHP Data Objects support--with-pdo-dblib=DIRPDO: DBLIB-DB support. DIR is the FreeTDS home directory--with-pdo-firebird=DIRPDO: Firebird support. DIR is the Firebird base install directory /opt/firebird--with-pdo-mysql=DIRPDO: MySQL support. DIR is the MySQL base directory. If no value or mysqlnd is passed as DIR, the MySQL native driver will be used--with-zlib-dir=DIRPDO_MySQL: Set the path to libz install prefix--with-pdo-oci=DIRPDO: Oracle OCI support. DIR defaults to $ORACLE_HOME. Use --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,dirPDO: Support for 'flavour' ODBC driver. include and lib dirs are looked for under 'dir'. 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic. If ',dir' part is omitted, default for the flavour you have selected will be used. e.g.: --with-pdo-odbc=unixODBC will check for unixODBC under /usr/local. You may 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. When built as 'shared' the extension filename is always pdo_odbc.so--with-pdo-pgsql=DIRPDO: PostgreSQL support. DIR is the PostgreSQL base install directory or the path to pg_config--without-pdo-sqlite=DIRPDO: sqlite 3 support. DIR is the sqlite base install directory BUNDLED--with-pgsql=DIRInclude PostgreSQL support. DIR is the PostgreSQL base install directory or the path to pg_config--disable-pharDisable phar support--disable-posixDisable POSIX-like functions--with-pspell=DIRInclude PSPELL support. GNU Aspell version 0.50.0 or higher required--with-libedit=DIRInclude libedit readline replacement (CLI/CGI only)--with-readline=DIRInclude readline support (CLI/CGI only)--with-recode=DIRInclude recode support--disable-sessionDisable session support--with-mm=DIRSESSION: Include mm support for session storage--enable-shmopEnable shmop support--disable-simplexmlDisable SimpleXML support--with-libxml-dir=DIRSimpleXML: libxml2 install prefix--with-snmp=DIRInclude SNMP support--with-openssl-dir=DIRSNMP: openssl install prefix--enable-soapEnable SOAP support--with-libxml-dir=DIRSOAP: libxml2 install prefix--enable-socketsEnable sockets support--with-sybase-ct=DIRInclude Sybase-CT support. DIR is the Sybase home directory /home/sybase--enable-sysvmsgEnable sysvmsg support--enable-sysvsemEnable System V semaphore support--enable-sysvshmEnable the System V shared memory support--with-tidy=DIRInclude TIDY support--disable-tokenizerDisable tokenizer support--enable-wddxEnable WDDX support--with-libxml-dir=DIRWDDX: libxml2 install prefix--with-libexpat-dir=DIRWDDX: libexpat dir for XMLRPC-EPI (deprecated)--disable-xmlDisable XML support--with-libxml-dir=DIRXML: libxml2 install prefix--with-libexpat-dir=DIRXML: libexpat install prefix (deprecated)--disable-xmlreaderDisable XMLReader support--with-libxml-dir=DIRXMLReader: libxml2 install prefix--with-xmlrpc=DIRInclude XMLRPC-EPI support--with-libxml-dir=DIRXMLRPC-EPI: libxml2 install prefix--with-libexpat-dir=DIRXMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)--with-iconv-dir=DIRXMLRPC-EPI: iconv dir for XMLRPC-EPI--disable-xmlwriterDisable XMLWriter support--with-libxml-dir=DIRXMLWriter: libxml2 install prefix--with-xsl=DIRInclude XSL support. DIR is the libxslt base install directory (libxslt >= 1.1.0 required)--enable-zipInclude Zip read/write support--with-zlib-dir=DIRZIP: Set the path to libz install prefix--with-pcre-dirZIP: pcre install prefix--enable-mysqlndEnable mysqlnd explicitly, will be done implicitly when required by other extensions--disable-mysqlnd-compression-supportDisable support for the MySQL compressed protocol in mysqlnd--with-zlib-dir=DIRmysqlnd: Set the path to libz install prefixPEAR: --with-pear=DIR Install PEAR in DIR [PREFIX/lib/php] --without-pear Do not install PEAR Zend: --with-zend-vm=TYPESet virtual machine dispatch method. Type is one of "CALL", "SWITCH" or "GOTO" TYPE=CALL--enable-maintainer-ztsEnable thread safety - for code maintainers only!!--disable-inline-optimizationIf building zend_execute.lo fails, try this switch--enable-zend-signalsUse zend signal handlingTSRM: --with-tsrm-pth=pth-config Use GNU Pth --with-tsrm-st Use SGI's State Threads --with-tsrm-pthreads Use POSIX threads (default) Libtool: --enable-shared=PKGS Build shared libraries default=yes --enable-static=PKGS Build static libraries default=yes --enable-fast-install=PKGS Optimize for fast installation default=yes --with-gnu-ld Assume the C compiler uses GNU ld default=no --disable-libtool-lock Avoid locking (might break parallel builds) --with-pic Try to use only PIC/non-PIC objects default=use both --with-tags=TAGS Include additional configurations automatic Some influential environment variables: CCC compiler commandCFLAGSC compiler flagsLDFLAGSlinker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir>LIBSlibraries to pass to the linker, e.g. -l<library>CPPFLAGS(Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir>CPPC preprocessorYACCThe `Yet Another Compiler Compiler' implementation to use. Defaults to the first program found out of: `bison -y', `byacc', `yacc'.YFLAGSThe list of arguments that will be passed by default to $YACC. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications.CXXC++ compiler commandCXXFLAGSC++ compiler flagsCXXCPPC++ preprocessorUse these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider.
You may go back to the following section.
Installing PHP