中国青基会
RSS
热门关键字:  None  linux+moodle安装  mac  rhel5  199
当前位置 : Nixsky>服务器>Web>列表

CentOS下Zeus 4.3r3的安装及基本配置

来源: 作者: 时间:2007-03-09 点击:

提交后,现在将进入虚拟主机的具体配置:

点击左边的“FastCGI”
Enabling Support for FastCGI Programs:选择“Enabled"
跟着往下找到“Adding a FastCGI Remote Responder”
Directory name:填/usr/local/php/bin/php
Location: Machine name: 填localhost
Port:填8002
其他的全部不用填,点击“apply change”

进入 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 按钮。

左边的菜单中找到“Directory Requests”
Index Files:索引文件,按自己的需要设置
Directory Listing:一定要Disabled
点击“apply change”

再在左边菜单找到“htaccess Support”
Enabling .htaccess File Processing:选择Enabled
点击“apply change”

点击上面的“This configuration has been modified. Click here for details or to make it take effect. ”,再点击“commit”,完成了一个虚拟主机的设置。

Zeus 的安全设置
more /etc/passwd
查看nfsnobody的uid和gid号(我的uid和gid号都是65534)
然后进入Zeus的后台,找到FastCGI --> Security Configurables --> Specified uid / gid:
在uid和gid选项下填入65534,然后点击底部的Apply Changes即可。

----------------------------------------------------------------------------------------------
新建一个自启动文件
----------------------------------------------------------------------------------------------
cd /home/zeus/rc.d
kate S05php

加入以下内容

#!/bin/sh

# Script to start and stop the persistent PHP runner for FastCGI.
# Please check paths before use.

# FastCGI PHP binary
FPHPBIN=/usr/local/bin/php

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册