配置FastCGI/PHP 配置FastCGI 进入Zeus管理控制台,打开需要配置的VHost配置。进入 API Support 中的 FastCGI 设置。在其中设置: Enabling Support for FastCGI Programs : Enable 在Configuring FastCGI Remote Responders中设置: Directory name : /usr/local/php/bin/php Location: Machine name: localhost Additional methods supported?:None 如果你的PHP应用不在本机,即使PHP没有安装在本机上,哪么也要设置 Docroot path 参数,它可以不存在于相应的目录下。 都设置完成后,点击 Apply 按钮。 配置PHP解析指向 进入 URL Handling 中的 Handlers 设置。在 Adding a Handler 中设置以下参数:
File Extension : php Specify the path and filename of the handler, relative to the document root : /usr/local/php/bin/php HTTP 404 errors are handled by : The handler 注意,这里的 Specify the path and filename of the handler, relative to the document root 应和你上一步设置的 Directory name 值相同。 都设置完成后,点击 Apply 按钮。 所有的设置完成后使用vhost的commit功能将更 改提交并应用。这样Zeus就设置好了Fastcgi和PHP的相关参数。
配置FastCGI/PHP启动 在Zeus的rc.d目录中新建一个S05php的文件,内容为:
#!/bin/sh
# Script to start and stop the persistent PHP runner for FastCGI. # Please check paths before use.