📄 configure.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Configure options</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="debugger.html">Debugging in PHP</a></div> <div class="next" style="text-align: right; float: right;"><a href="ini.html">php.ini directives</a></div> <div class="up"><a href="appendices.html">Appendices</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Configure options</h1> <div id="configure.about" class="sect1"> <h2 class="title">List of core configure options</h2> <p class="para"> Below is a partial list of configure options used by the PHP <var class="filename">configure</var> 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 <strong class="command">./configure --help</strong> in your PHP source directory after running <strong class="command">autoconf</strong> (see also the <a href="install.html" class="link">Installation chapter</a>). You may also be interested in reading the <a href="http://www.airs.com/ian/configure/" class="link external">» GNU configure</a> documentation for information on additional <strong class="command">configure</strong> options such as <i>--prefix=PREFIX</i>. </p> <blockquote><p><b class="note">Note</b>: These are only used at compile time. If you want to alter PHP's runtime configuration, please see the chapter on <a href="configuration.html" class="link">Runtime Configuration</a>. <br /> </p></blockquote> <ul class="itemizedlist"> <li class="listitem"> <p class="para"> <a href="configure.html#configure.options.misc" class="link">Miscellaneous</a> </p> </li> <li class="listitem"> <p class="para"> <a href="configure.html#configure.options.php" class="link">PHP Behaviour</a> </p> </li> <li class="listitem"> <p class="para"> <a href="configure.html#configure.options.servers" class="link">Server</a> </p> </li> </ul> <div id="configure.options" class="sect2"> <h3 class="title">Configure Options in PHP</h3> <blockquote><p><b class="note">Note</b>: These options are only used in PHP as of PHP 4.1.0, although some are available in older versions too. If you want to compile an older version, some options will probably not be available. <br /> </p></blockquote> <div id="configure.options.misc" class="sect3"> <h4 class="title">Misc options</h4> <dl> <dt id="configure.enable-debug"> <span class="term"> <span class="option">--enable-debug</span> </span> <dd> <p class="para"> Compile with debugging symbols. </p> </dd> </dt> <dt id="configure.with-layout"> <span class="term"> <span class="option">--with-layout=TYPE</span> </span> <dd> <p class="para"> Sets how installed files will be laid out. Type is one of PHP (default) or GNU. </p> </dd> </dt> <dt id="configure.with-pear"> <span class="term"> <span class="option">--with-pear=DIR</span> </span> <dd> <p class="para"> Install PEAR in DIR (default PREFIX/lib/php). </p> </dd> </dt> <dt id="configure.without-pear"> <span class="term"> <span class="option">--without-pear</span> </span> <dd> <p class="para"> Do not install PEAR. </p> </dd> </dt> <dt id="configure.enable-sigchild"> <span class="term"> <span class="option">--enable-sigchild</span> </span> <dd> <p class="para"> Enable PHP's own SIGCHLD handler. </p> </dd> </dt> <dt id="configure.disable-rpath"> <span class="term"> <span class="option">--disable-rpath</span> </span> <dd> <p class="para"> Disable passing additional runtime library search paths. </p> </dd> </dt> <dt id="configure.enable-libgcc"> <span class="term"> <span class="option">--enable-libgcc</span> </span> <dd> <p class="para"> Enable explicitly linking against libgcc. </p> </dd> </dt> <dt id="configure.enable-php-streams"> <span class="term"> <span class="option">--enable-php-streams</span> </span> <dd> <p class="para"> Include experimental PHP streams. Do not use unless you are testing the code! </p> </dd> </dt> <dt id="configure.with-zlib-dir"> <span class="term"> <span class="option">--with-zlib-dir[=DIR]</span> </span> <dd> <p class="para"> Define the location of zlib install directory. </p> </dd> </dt> <dt id="configure.enable-trans-sid"> <span class="term"> <span class="option">--enable-trans-sid</span> </span> <dd> <p class="para"> Enable transparent session id propagation. Only valid for PHP 4.1.2 or less. From PHP 4.2.0, trans-sid feature is always compiled. </p> </dd> </dt> <dt id="configure.with-tsrm-pthreads"> <span class="term"> <span class="option">--with-tsrm-pthreads</span> </span> <dd> <p class="para"> Use POSIX threads (default). </p> </dd> </dt> <dt id="configure.enable-shared"> <span class="term"> <span class="option">--enable-shared[=PKGS]</span> </span> <dd> <p class="para"> Build shared libraries [default=yes]. </p> </dd> </dt> <dt id="configure.enable-static"> <span class="term"> <span class="option">--enable-static[=PKGS]</span> </span> <dd> <p class="para"> Build static libraries [default=yes]. </p> </dd> </dt> <dt id="configure.enable-fast-install"> <span class="term"> <span class="option">--enable-fast-install[=PKGS]</span> </span> <dd> <p class="para"> Optimize for fast installation [default=yes]. </p> </dd> </dt> <dt id="configure.with-gnu-ld"> <span class="term"> <span class="option">--with-gnu-ld</span> </span> <dd> <p class="para"> Assume the C compiler uses GNU ld [default=no]. </p> </dd> </dt> <dt id="configure.disable-libtool-lock"> <span class="term"> <span class="option">--disable-libtool-lock</span> </span> <dd> <p class="para"> Avoid locking (might break parallel builds). </p> </dd> </dt> <dt id="configure.with-pic"> <span class="term"> <span class="option">--with-pic</span> </span> <dd> <p class="para"> Try to use only PIC/non-PIC objects [default=use both]. </p> </dd> </dt> <dt id="configure.enable-memory-limit"> <span class="term"> <span class="option">--enable-memory-limit</span> </span> <dd> <p class="para"> Compile with memory limit support. (not available since PHP 5.2.1 - always enabled) </p> </dd> </dt> <dt id="configure.disable-url-fopen-wrapper"> <span class="term"> <span class="option">--disable-url-fopen-wrapper</span> </span> <dd> <p class="para"> Disable the URL-aware fopen wrapper that allows accessing files via HTTP or FTP. (not available since PHP 5.2.5) </p> </dd> </dt> <dt id="configure.enable-versioning.php4"> <span class="term"> <span class="option">--enable-versioning</span> </span> <dd> <p class="para"> Export only required symbols. See INSTALL for more information. </p> </dd> </dt> </dl> </div> <div id="configure.options.php" class="sect3"> <h4 class="title">PHP options</h4> <dl> <dt id="configure.enable-maintainer-mode"> <span class="term"> <span class="option">--enable-maintainer-mode</span> </span> <dd> <p class="para"> Enable make rules and dependencies not useful (and sometimes confusing) to the casual installer. </p> </dd> </dt> <dt id="configure.with-config-file-path"> <span class="term"> <span class="option">--with-config-file-path=PATH</span> </span> <dd> <p class="para"> Sets the path in which to look for <var class="filename">php.ini</var>, defaults to PREFIX/lib. </p> </dd> </dt> <dt id="configure.enable-safe-mode"> <span class="term"> <span class="option">--enable-safe-mode</span> </span> <dd> <p class="para"> Enable safe mode by default. </p> </dd> </dt> <dt id="configure.with-exec-dir"> <span class="term"> <span class="option">--with-exec-dir[=DIR]</span> </span> <dd> <p class="para"> Only allow executables in DIR when in safe mode defaults to /usr/local/php/bin. </p> </dd> </dt> <dt id="configure.enable-magic-quotes"> <span class="term"> <span class="option">--enable-magic-quotes</span> </span> <dd>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -