下面是 PHP 的 configure 脚本使用的部分选项的列表,用于类 Unix 环境的编译。大部分配置选项在扩展模块参考页面适当的位置列出,而不是在这里。要查看所有可用配置选项的列表,在运行 autoconf 命令后在 PHP 的源代码目录运行 ./configure --help (参见安装章节)。您也可以阅读 GNU configure 文档以获得有关 configure 命令的更详细信息,例如 --prefix=PREFIX。
注: 这些选项只用在编译的时候。如果您想要修改 PHP 的运行时配置,请阅读运行时配置。
注: 这些选项仅适用于 PHP 4.1.0 以上版本。尽管某些选项可以用在较旧版本的 PHP 4,甚至 PHP 3,如果您想编译旧版本的 PHP,请注意有些选项不可用。
编译时加入调试符号。
设置被安装文件的布局。TYPE 是 PHP (默认) 或 GNU。
在 DIR (默认为 PREFIX/lib/php) 中安装 PEAR。
不安装 PEAR。
使用 PHP 自带的 SIGCHLD 处理器。
进用在搜索路径中传递其他运行库。
启用 libgcc 的精确链接。
包含试验性的 PHP 流。不要使用这个选项,除非您要测试代码!
定义 zlib 的安装目录。
启用透明 session id 传输。仅适用于 PHP 4.1.2 或更低版本。PHP 4.2.0 以后,透明 sid 功能默认被编译其中。
使用 POSIX 线程 (默认)。
编译共享库 [默认=是]。
编译静态库 [默认=是]。
为快速安装优化 [默认=是]。
假设 C 编译器使用 GNU ld [默认=否]。
阻止锁 (可能破坏平行编译)。
尝试仅使用 PIC/非 PIC 对象 [默认=都使用]。
编译内存限制支持功能。
进用 URL 形式的 fopen 包裹器。该包裹器允许通过 HTTP 或者 FTP 访问文件。
仅导出必须的符号。查看 INSTALL 文件以获得更多信息。
包含 IMSP 支持 (DIR 是 IMSP 的 include 目录和 libimsp.a 所在目录)。此选项仅在 PHP 3 中有效!
包含 Cybercash MCK 支持。DIR 是 cybercash mck 的编译目录,默认为 /usr/src/mck-3.2.0.3-linux。更多帮助情查看 extra/cyberlib 内的文件。此选项仅在 PHP 3 中有效!
通过 Apache 的 mod_dav 实现对 DAV 的支持。DIR 是 mod_dav 的安装目录 (仅对以 Apache 模块方式安装的 PHP 有效)。此选项仅在 PHP 3 中有效!
编译远程调试功能。此选项仅在 PHP 3 中有效!
利用 Solaris 2.x 和 Linux 提供的版本 (versioning) 和范围 (scoping)。此选项仅在 PHP 3 中有效!
The following list contains the available SAPI&s (Server Application Programming Interface) for PHP.
Specify path to the installed AOLserver.
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.
Build a static Apache module. DIR is the top-level Apache build directory, defaults to /usr/local/apache.
Enable transfer tables for mod_charset (Russian Apache).
Build shared Apache 2.0 module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs.
Build PHP as a Pike module for use with Caudium. DIR is the Caudium server dir, with the default value /usr/local/caudium/server.
Available with PHP 4.3.0. Disable building the CLI version of PHP (this forces --without-pear). More information is available in the section about Using PHP from the command line.
Enable building of the embedded SAPI library. TYPE is either shared or static, which defaults to shared. Available with PHP 4.3.0.
Build fhttpd module. DIR is the fhttpd sources directory, defaults to /usr/local/src/fhttpd. No longer available as of PHP 4.3.0.
Build PHP as an ISAPI module for use with Zeus.
Specify path to the installed Netscape/iPlanet/SunONE Webserver.
No information yet.
Build PHP as a module for use with Pi3Web.
Build PHP as a Pike module. DIR is the base Roxen directory, normally /usr/local/roxen/server.
Build the Roxen module using Zend Thread Safety.
Include servlet support. DIR is the base install directory for the JSDK. This SAPI requires the java extension must be built as a shared dl.
Build PHP as thttpd module.
Build PHP as a TUX module (Linux only).
Build PHP as a WebJames module (RISC OS only)
Disable building CGI version of PHP. Available with PHP 4.3.0.
Enable the security check for internal server redirects. You should use this if you are running the CGI version with Apache.
If this is enabled, the PHP CGI binary can safely be placed outside of the web tree and people will not be able to circumvent .htaccess security.
Build PHP as FastCGI application. No longer available as of PHP 4.3.0, instead you should use --enable-fastcgi.
If this is enabled, the CGI module will be built with support for FastCGI also. Available since PHP 4.3.0
If this is disabled, paths such as /info.php/test?a=b will fail to work. Available since PHP 4.3.0. For more information see the Apache Manual.