精品推荐
Zeus+php+Zend Optimizer for Linux安装指南
日期:2008年4月17日 作者: 查看:[大字体
中字体 小字体 ]
提交后出现刚才加入的virtual server,点FastCGI Enabling Support for FastCGI Programs 选 Enabled Restricting FastCGI locations 选 Enable FastCGI programs to be located anywhere Configuring Directories for FastCGI Local Responders 不用写他 因为我们用remote方式连接fastcgi Configuring FastCGI Remote Responders 中填入以下配置 Directory name : /usr/local/php/bin/php Location: Machine name: localhost Port: 8002 Additional methods supported?:None 其他都不用管,点Apply changes 点左边Url Handling下面的Handlers File Extension : php Specify the path and filename of the handler, relative to the document root : /usr/local/php/bin/php 点Apply changes 点左边Url Handling下面的Directory Requests Index Files中加入一个 index.php 和一分隔逗号 Directory Listing选Disabled 点Apply changes 再点上面的 This configuration has been modified. Click here for details or to make it take effect. 出来的页面点Commit 配置php-fastcgi cd /usr/local/zeus/rc.d 建立一个S05php的文件 内容为 Code: [Copy to clipboard] #!/bin/sh # Script to start and stop the persistent PHP runner for FastCGI. # Please check paths before use. # FastCGI PHP binary FPHPBIN=/usr/local/php/bin/php # Location to place semaphore SEMFILE=/tmp/php.pid PHP_FCGI_CHILDREN=200 PHP_FCGI_MAX_REQUESTS=1000 export PHP_FCGI_CHILDREN export PHP_FCGI_MAX_REQUESTS # This is Linux - use /proc to increase the local (ephemeral) port range #echo 1024 65000 > /proc/sys/net/ipv4/ip_local_port_range if [ -z "$ZEUSHOME" ] then cd `dirname $0`/.. ZEUSHOME=`pwd` export ZEUSHOME fi case "$1" in 'start') if [ -e $SEMFILE ] then echo FastCGI PHP error: already running.Restart FastCGI PHP now kill `cat $SEMFILE` sleep 5 fi if [ ! -x $FPHPBIN ] then echo FastCGI PHP error: please check that $FPHPBIN is executable and exists. exit 1 fi echo Starting FastCGI PHP. $ZEUSHOME/web/bin/fcgirunner --user=99 --group=99 --pidfile=$SEMFILE 8002 $FPHPBIN ;; 'stop') if [ -e $SEMFILE ] then echo Stopping FastCGI PHP. kill `cat $SEMFILE` rm $SEMFILE exit 0 fi ;; 'restart') if [ -e $SEMFILE ] then echo Stopping FastCGI PHP. kill `cat $SEMFILE` sleep 5 fi echo Starting FastCGI PHP. $ZEUSHOME/web/bin/fcgirunner --user=99 --group=99 --pidfile=$SEMFILE 8002 $FPHPBIN ;; *) echo "usage: $0 "
复制本页网址和标题,发送给你QQ/Msn的好友一起分享
上一篇:2004年典型木马及反木马软件综述
下一篇:新浪网友:日资背景与愤青
相关文章:
相关软件: