Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 19

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>配置选项</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="Appendices"
HREF="appendices.html"><LINK
REL="PREVIOUS"
TITLE="调试器协议"
HREF="debugger-protocol.html"><LINK
REL="NEXT"
TITLE="php.ini 配置选项"
HREF="ini.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="appendix"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="debugger-protocol.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="ini.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="appendix"
><H1
><A
NAME="configure"
>附录 G. 配置选项</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="configure.html#configure.about"
>核心配置选项列表</A
></DT
></DL
></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="configure.about"
>核心配置选项列表</A
></H1
><P
>&#13;   下面是 PHP 的 <TT
CLASS="filename"
>configure</TT
>
   脚本使用的部分选项的列表,用于类 Unix
   环境的编译。大部分配置选项在扩展模块参考页面适当的位置列出,而不是在这里。要查看所有可用配置选项的列表,在运行
   <B
CLASS="command"
>autoconf</B
> 命令后在 PHP 的源代码目录运行
   <B
CLASS="command"
>./configure --help</B
>(参见<A
HREF="install.html"
>安装与配置</A
>一章)。也可以阅读
   <A
HREF="http://www.airs.com/ian/configure/"
TARGET="_top"
>GNU configure</A
>
   文档以获得有关 <B
CLASS="command"
>configure</B
>
   命令的更详细信息,例如 <TT
CLASS="literal"
>--prefix=PREFIX</TT
>。
  </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
    这些选项只用在编译的时候。如果想要修改 PHP 的运行时配置,请阅读<A
HREF="configuration.html"
>运行时配置</A
>。
   </P
></BLOCKQUOTE
></DIV
><P
></P
><UL
><LI
><P
>&#13;     <A
HREF="configure.html#configure.options.misc"
>杂项</A
>
    </P
></LI
><LI
><P
>&#13;     <A
HREF="configure.html#configure.options.php"
>PHP 行为</A
>
    </P
></LI
><LI
><P
>&#13;     <A
HREF="configure.html#configure.options.servers"
>服务器</A
>
    </P
></LI
></UL
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="configure.options"
>在 PHP 4 中的配置选项</A
></H2
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>
     这些选项仅适用于 PHP 4.1.0 以上版本。尽管某些选项可以用在较旧版本的
     PHP 4,甚至 PHP 3,如果想编译旧版本的 PHP,请注意有些选项不可用。
    </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="configure.options.misc"
>杂项选项</A
></H3
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><A
NAME="configure.enable-debug"
></A
><CODE
CLASS="option"
>--enable-debug</CODE
></DT
><DD
><P
>&#13;      编译时加入调试符号。
     </P
></DD
><DT
><A
NAME="configure.with-layout"
></A
><CODE
CLASS="option"
>--with-layout=TYPE</CODE
></DT
><DD
><P
>&#13;      设置被安装文件的布局。TYPE 是 PHP(默认)或 GNU。
     </P
></DD
><DT
><A
NAME="configure.with-pear"
></A
><CODE
CLASS="option"
>--with-pear=DIR</CODE
></DT
><DD
><P
>&#13;      在 DIR(默认为 PREFIX/lib/php)中安装 PEAR。
     </P
></DD
><DT
><A
NAME="configure.without-pear"
></A
><CODE
CLASS="option"
>--without-pear</CODE
></DT
><DD
><P
>&#13;      不安装 PEAR。
     </P
></DD
><DT
><A
NAME="configure.enable-sigchild"
></A
><CODE
CLASS="option"
>--enable-sigchild</CODE
></DT
><DD
><P
>&#13;      使用 PHP 自带的 SIGCHLD 处理器。
     </P
></DD
><DT
><A
NAME="configure.disable-rpath"
></A
><CODE
CLASS="option"
>--disable-rpath</CODE
></DT
><DD
><P
>&#13;      禁用在搜索路径中传递其他运行库。
     </P
></DD
><DT
><A
NAME="configure.enable-libgcc"
></A
><CODE
CLASS="option"
>--enable-libgcc</CODE
></DT
><DD
><P
>&#13;      启用 libgcc 的精确链接。
     </P
></DD
><DT
><A
NAME="configure.enable-php-streams"
></A
><CODE
CLASS="option"
>--enable-php-streams</CODE
></DT
><DD
><P
>&#13;      包含试验性的 PHP 流。不要使用此选项,除非是要测试代码!
     </P
></DD
><DT
><A
NAME="configure.with-zlib-dir"
></A
><CODE
CLASS="option"
>--with-zlib-dir[=DIR]</CODE
></DT
><DD
><P
>&#13;      定义 zlib 的安装目录。
     </P
></DD
><DT
><A
NAME="configure.enable-trans-sid"
></A
><CODE
CLASS="option"
>--enable-trans-sid</CODE
></DT
><DD
><P
>&#13;      启用透明 session id 传输。仅适用于 PHP 4.1.2 或更低版本。PHP
      4.2.0 以后,透明 sid 功能默认被编译其中。
     </P
></DD
><DT
><A
NAME="configure.with-tsrm-pthreads"
></A
><CODE
CLASS="option"
>--with-tsrm-pthreads</CODE
></DT
><DD
><P
>&#13;      使用 POSIX 线程(默认)。
     </P
></DD
><DT
><A
NAME="configure.enable-shared"
></A
><CODE
CLASS="option"
>--enable-shared[=PKGS]</CODE
></DT
><DD
><P
>&#13;      编译共享库 [default=yes]。
     </P
></DD
><DT
><A
NAME="configure.enable-static"
></A
><CODE
CLASS="option"
>--enable-static[=PKGS]</CODE
></DT
><DD
><P
>&#13;      编译静态库 [default=yes]。
     </P
></DD
><DT
><A
NAME="configure.enable-fast-install"
></A
><CODE
CLASS="option"
>--enable-fast-install[=PKGS]</CODE
></DT
><DD
><P
>&#13;      为快速安装优化 [default=yes]。
     </P
></DD
><DT
><A
NAME="configure.with-gnu-ld"
></A
><CODE
CLASS="option"
>--with-gnu-ld</CODE
></DT
><DD
><P
>&#13;      假设 C 编译器使用 GNU ld [default=no]。
     </P
></DD
><DT
><A
NAME="configure.disable-libtool-lock"
></A
><CODE
CLASS="option"
>--disable-libtool-lock</CODE
></DT
><DD
><P
>&#13;      避免锁死(可能破坏并联的编译)。
     </P
></DD
><DT
><A
NAME="configure.with-pic"
></A
><CODE
CLASS="option"
>--with-pic</CODE
></DT
><DD
><P
>&#13;      尝试仅使用 PIC/非 PIC 对象 [default=use both]。
     </P
></DD
><DT
><A
NAME="configure.enable-memory-limit"
></A
><CODE
CLASS="option"
>--enable-memory-limit</CODE
></DT
><DD
><P
>&#13;      编译内存限制支持功能。
     </P
></DD
><DT
><A
NAME="configure.disable-url-fopen-wrapper"
></A
><CODE
CLASS="option"
>--disable-url-fopen-wrapper</CODE
></DT
><DD
><P
>&#13;      禁用 URL 形式的 fopen 封装协议。该协议允许通过 HTTP 或者 FTP 访问文件。
     </P
></DD
><DT
><A
NAME="configure.enable-versioning.php4"
></A
><CODE
CLASS="option"
>--enable-versioning</CODE
></DT
><DD
><P
>&#13;      仅导出必须的符号。查看 INSTALL 文件以获得更多信息。
     </P
></DD
><DT
><A
NAME="configure.with-ismp"
></A
><CODE
CLASS="option"
>--with-imsp[=DIR]</CODE
></DT
><DD
><P
>&#13;      包含 IMSP 支持(DIR 是 IMSP 的 include 目录和 libimsp.a 所在目录)。此选项仅在
      PHP 3 中有效!
     </P
></DD
><DT
><A
NAME="configure.with-mck"
></A
><CODE
CLASS="option"
>--with-mck[=DIR]</CODE
></DT
><DD
><P
>&#13;      包含 Cybercash MCK 支持。DIR 是 cybercash
      mck 的编译目录,默认为
      /usr/src/mck-3.2.0.3-linux。更多帮助情查看
      extra/cyberlib 内的文件。此选项仅在 PHP 3 中有效!
     </P
></DD
><DT
><A
NAME="configure.with-mod-dav"
></A
><CODE
CLASS="option"
>--with-mod-dav=DIR</CODE
></DT
><DD
><P
>&#13;      通过 Apache 的 mod_dav 实现对 DAV 的支持。DIR 是 mod_dav 的安装目录 (仅对以 Apache
      模块方式安装的 PHP 有效)。此选项仅在 PHP 3 中有效!
     </P
></DD
><DT
><A
NAME="configure.enable-debugger"
></A
><CODE
CLASS="option"
>--enable-debugger</CODE
></DT
><DD
><P
>&#13;      编译远程调试功能。此选项仅在 PHP 3 中有效!
     </P
></DD
><DT
><A
NAME="configure.enable-versioning.php3"
></A
><CODE
CLASS="option"
>--enable-versioning</CODE
></DT
><DD
><P
>&#13;      利用 Solaris 2.x 和 Linux
      提供的版本管理(versioning)和范围(scoping)。此选项仅在 PHP 3 中有效!
     </P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="configure.options.php"
>PHP 选项</A
></H3
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><A
NAME="configure.enable-maintainer-mode"
></A
><CODE
CLASS="option"
>--enable-maintainer-mode</CODE
></DT
><DD
><P
>&#13;      对偶然安装一下的情形启用此选项,使得不检查编译规则和依赖关系。
     </P
></DD
><DT
><A
NAME="configure.with-config-file-path"
></A
><CODE
CLASS="option"
>--with-config-file-path=PATH</CODE
></DT
><DD
><P
>&#13;      设置 <TT
CLASS="filename"
>php.ini</TT
> 的搜索路径。默认为 PREFIX/lib。
     </P
></DD
><DT
><A
NAME="configure.enable-safe-mode"
></A
><CODE
CLASS="option"
>--enable-safe-mode</CODE
></DT
><DD
><P
>&#13;      默认启用安全模式。
     </P
></DD
><DT
><A
NAME="configure.with-exec-dir"
></A
><CODE
CLASS="option"
>--with-exec-dir[=DIR]</CODE
></DT
><DD
><P
>&#13;      在安全模式时仅允许在 DIR 目录中执行。默认目录为 /usr/local/php/bin。
     </P
></DD
><DT
><A
NAME="configure.enable-magic-quotes"
></A
><CODE
CLASS="option"
>--enable-magic-quotes</CODE
></DT
><DD
><P
>&#13;      默认启用 magic quotes。
     </P
></DD
><DT
><A
NAME="configure.disable-short-tags"
></A
><CODE
CLASS="option"
>--disable-short-tags</CODE
></DT
><DD
><P
>&#13;      默认禁用短形式的开始标签 &#60;? 。
     </P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="configure.options.servers"
>SAPI 选项</A
></H3
><P
>&#13;   下面的列表包含 PHP 可用的SAPI(<TT
CLASS="literal"
>服务器应用编程接口</TT
>)。
  </P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><A
NAME="configure.with-aolserver"
></A
><CODE
CLASS="option"
>--with-aolserver=DIR</CODE
></DT
><DD
><P
>&#13;      指定 AOLserver 的安装路径。
     </P
></DD
><DT
><A
NAME="configure.with-apxs"
></A
><CODE
CLASS="option"
>--with-apxs[=FILE]</CODE
></DT
><DD
><P
>&#13;      编译共享的 Apache 模块。FILE 是可选的 Apache apxs
      工具的路径,默认指向 apxs。请确认指定的
      apxs 已经安装在服务器中,并且它不是 Apache 源码包中的那个 apxs。
     </P
></DD
><DT
><A
NAME="configure.with-apache"
></A
><CODE
CLASS="option"
>--with-apache[=DIR]</CODE
></DT
><DD
><P
>&#13;      编译静态 Apache 模块。DIR 是 Apache 编译目录的顶层,默认为
      <TT
CLASS="filename"
>/usr/local/apache</TT
>。
     </P
></DD
><DT
><A
NAME="configure.with-mod_charset"
></A
><CODE
CLASS="option"
>--with-mod_charset</CODE
></DT
><DD
><P
>&#13;      启用 mod_charset 的转换表(俄文的 Apache 使用)。
     </P
></DD
><DT
><A
NAME="configure.with-apxs2"
></A
><CODE
CLASS="option"
>--with-apxs2[=FILE]</CODE
></DT
><DD
><P
>&#13;      编译共享的 Apache 2.0 模块。FILE 是可选的
      Apache apxs 工具的路径,默认指向 apxs。
     </P
></DD
><DT
><A
NAME="configure.with-caudium"
></A
><CODE
CLASS="option"
>--with-caudium=DIR</CODE
></DT
><DD
><P
>&#13;      为使用 Caudium 编译 PHP 为一个 Pike 模块。DIR 是
      Caudium 服务器目录,默认为 <TT
CLASS="filename"
>/usr/local/caudium/server</TT
>。
     </P
></DD
><DT
><A
NAME="configure.disable-cli"
></A
><CODE
CLASS="option"
>--disable-cli</CODE
></DT
><DD
><P
>&#13;      PHP 4.3.0 之后的版本有效。禁止编译 PHP 的 CLI 版本(使用它将同时强制使用
      <A
HREF="configure.html#configure.without-pear"
>--without-pear</A
> 选项)。更多信息请查考
      <A
HREF="features.commandline.html"
>PHP 的命令行模式</A
>。
     </P
></DD
><DT
><A
NAME="configure.enable-embed"
></A
><CODE
CLASS="option"
>--enable-embed[=TYPE]</CODE
></DT
><DD
><P
>&#13;      启用编译嵌入的 SAPI 库。TYPE 或者为 <TT
CLASS="literal"
>shared</TT
>
      或者为 <TT
CLASS="literal"
>static</TT
>,默认为
      <TT
CLASS="literal"
>shared</TT
>。PHP 4.3.0 之后的版本有效。
     </P
></DD
><DT
><A
NAME="configure.with-fhttpd"
></A
><CODE
CLASS="option"
>--with-fhttpd[=DIR]</CODE
></DT
><DD
><P
>&#13;      编译 fhttpd 模块。DIR 是 fhttpd 源代码目录,默认为
      <TT
CLASS="filename"
>/usr/local/src/fhttpd</TT
>。PHP 4.3.0 及以后的版本此选项不再有效。
     </P
></DD
><DT
><A
NAME="configure.with-isapi"
></A
><CODE
CLASS="option"
>--with-isapi=DIR</CODE
></DT
><DD
><P
>&#13;      为 Zeus 服务器以 ISAPI 模块方式编译 PHP。
     </P
></DD
><DT
><A
NAME="configure.with-nsapi"
></A
><CODE
CLASS="option"
>--with-nsapi=DIR</CODE
></DT
><DD
><P
>&#13;      指定 Netscape/iPlanet/SunONE 的安装目录。
     </P
></DD
><DT
><A
NAME="configure.with-phttpd"
></A
><CODE
CLASS="option"
>--with-phttpd=DIR</CODE
></DT
><DD
><P
>&#13;      还没有信息。
     </P
></DD
><DT
><A
NAME="configure.with-pi3web"
></A
><CODE
CLASS="option"
>--with-pi3web=DIR</CODE
></DT
><DD
><P
>&#13;      为 Pi3Web 服务器编译 PHP 模块。
     </P
></DD
><DT
><A
NAME="configure.with-roxen"
></A
><CODE
CLASS="option"
>--with-roxen=DIR</CODE
></DT
><DD
><P
>&#13;      以 Pike 模块方式编译 PHP。DIR 是 Roxen 的根目录,默认为
      <TT
CLASS="filename"
>/usr/local/roxen/server</TT
>。
     </P
></DD
><DT
><A
NAME="configure.enable-roxen-zts"
></A
><CODE
CLASS="option"
>--enable-roxen-zts</CODE
></DT
><DD
><P
>&#13;      使用 Zend 线程安全(ZTS)编译 Roxen 模块。
     </P
></DD
><DT
><A
NAME="configure.with-servlet"
></A
><CODE
CLASS="option"
>--with-servlet[=DIR]</CODE
></DT
><DD
><P
>&#13;      包含 servlet 支持。DIR 是 JSDK 的安装目录。此 SAPI
      要求 java 扩展必须作为共享模块编译到 PHP 中。
     </P
></DD
><DT
><A
NAME="configure.with-thttpd"
></A
><CODE
CLASS="option"
>--with-thttpd=SRCDIR</CODE
></DT
><DD
><P
>&#13;      编译 PHP 为 thttpd 模块。
     </P
></DD
><DT
><A
NAME="configure.with-tux"
></A
><CODE
CLASS="option"
>--with-tux=MODULEDIR</CODE
></DT
><DD
><P
>&#13;      编译 PHP 为 TUX 模块(仅在 Linux 下有效)。
     </P
></DD
><DT
><A
NAME="configure.with-webjames"
></A
><CODE
CLASS="option"
>--with-webjames=SRCDIR</CODE
></DT
><DD
><P
>&#13;      编译 PHP 为 WebJames 模块(仅在 RISC 操作系统中有效)。
     </P
></DD
><DT
><A
NAME="configure.disable-cgi"
></A
><CODE
CLASS="option"
>--disable-cgi</CODE
></DT
><DD
><P
>&#13;      禁止编译 CGI 版本的 PHP。PHP 4.3.0 之后的版本有效。
     </P
></DD
><DT
><A
NAME="configure.enable-force-cgi-redirect"
></A
><CODE
CLASS="option"
>--enable-force-cgi-redirect</CODE
></DT
><DD
><P
>&#13;      启用内部服务器重定向的安全检测。如果在 Apache 下使用
      CGI 版本的 PHP,请启用该选项。
     </P
></DD
><DT
><A
NAME="configure.enable-discard-path"
></A
><CODE
CLASS="option"
>--enable-discard-path</CODE
></DT
><DD
><P
>&#13;      如果启用该选项,PHP CGI 目录可以安全的放在 web 目录树的外面,人们无法避开
      <TT
CLASS="filename"
>.htaccess</TT
> 的安全限制。
     </P
></DD
><DT
><A
NAME="configure.with-fastcgi"
></A
><CODE
CLASS="option"
>--with-fastcgi</CODE
></DT
><DD
><P
>&#13;      编译 PHP 为 FastCGI 应用程序。PHP 4.3.0 及以后的版本此选项不再有效,应该使用
      <CODE
CLASS="option"
>--enable-fastcgi</CODE
> 选项。
     </P
></DD
><DT
><A
NAME="configure.enable-fastcgi"
></A
><CODE
CLASS="option"
>--enable-fastcgi</CODE
></DT
><DD
><P
>&#13;      如果启用,CGI 模块将被编译为支持 FastCGI。PHP 4.3.0 之后的版本有效。
     </P
></DD
><DT
><A
NAME="configure.disable-path-info-check"
></A
><CODE
CLASS="option"
>--disable-path-info-check</CODE
></DT
><DD
><P
>&#13;      如果该选项被禁用,例如 <TT
CLASS="filename"
>/info.php/test?a=b</TT
>
      形式的路径将不能工作。PHP 4.3.0 之后的版本有效。更多信息请参考
      <A
HREF="http://httpd.apache.org/docs/2.0/en/mod/core.html#acceptpathinfo"
TARGET="_top"
>Apache 手册</A
>。
     </P
></DD
></DL
></DIV
></DIV
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="debugger-protocol.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="ini.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>调试器协议</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="appendices.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><TT
CLASS="filename"
>php.ini</TT
> 配置选项</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>