List of core configure options

Below is a partial list of configure options used by the PHP
configure scripts when compiling in Unix-like
environments. Most configure options are listed in their appropriate
locations on the extension reference pages and not here. For a complete
up-to-date list of configure options, run ./configure --help
in your PHP source directory after running autoconf
(see also the Installation chapter).
You may also be interested in reading the
» GNU configure documentation for
information on additional configure options such as
--prefix=PREFIX.

Note:

These are only used at compile time. If you want to alter PHP's
runtime configuration, please see the chapter on Runtime Configuration.

PHP options

Enable make rules and dependencies not useful (and sometimes confusing)
to the casual installer.

--with-config-file-path=PATH

Sets the path in which to look for php.ini, defaults to PREFIX/lib.

--enable-safe-mode

Enable safe mode by default.

Warning

This feature has been
DEPRECATED as of PHP 5.3.0 and REMOVED
as of PHP 5.4.0.

--with-exec-dir[=DIR]

Only allow executables in DIR when in safe mode defaults to /usr/local/php/bin.

Warning

This feature has been
DEPRECATED as of PHP 5.3.0 and REMOVED
as of PHP 5.4.0.

--enable-magic-quotes

Enable magic quotes by default.

Warning

This feature has been
DEPRECATED as of PHP 5.3.0 and REMOVED
as of PHP 5.4.0.

--disable-short-tags

Disable the short-form <? start tag by default.

--enable-zend-multibyte

Enables multibyte code in the language parser and scanner to
be executed. When PHP is compiled with this option, it also
enables the
encoding
directive in the
declare construct.

Warning

This feature has been
DEPRECATED as of PHP 5.3.0 and REMOVED
as of PHP 5.4.0.

--with-libdir

Specifies the directory where the libraries to build PHP exists on a
Unix system. For 64bit systems, its needed to specify this argument
to the lib64 directory like:
--with-libdir=lib64.

SAPI options

The following list contains the available SAPI&s (Server
Application Programming Interface) for PHP.

--with-aolserver=DIR

Specify path to the installed AOLserver.

--with-apxs[=FILE]

Build shared Apache module. FILE is the optional pathname to the Apache
apxs tool; defaults to apxs. Make sure you specify the version of apxs that
is actually installed on your system and NOT the one that is in the apache
source tarball.