Sun Java System Web Server 7.0 管理员指南

使用 PHP

从 PHP 4.3.0 开始,FastCGI 成为 PHP 引擎支持的配置。要编译支持 FastCGI 的 PHP 4.3.x 或更高版本的引擎,请在构建进程中包括配置开关 --enable-fastcgi,例如:


./configure <other-options> --enable-fastcgi
gmake

编译完成后,php 二进制文件将启用 FastCGI。

使用 PHP 版本 5.1.2 或早期版本(包括 PHP 4.x)时,应配置 FastCGI 插件且 bind-path 的格式为“主机:端口”。例如,bind-path = "localhost:3333"。

对于 PHP 版本 5.1.3 和更高版本,bind-path 是可选的。如果指定了此项,其格式应为“主机:端口”。它可以是字符串。例如,bind-path = "myphpbindpath"。