- sunday2010-08-20论坛元老1077
折腾了N天,一直没有让php跑起来
/usr/local/php/bin/php
php的路径/usr/local/zeus/rc.d/S05php
按照教程,我vps上的 S05php的路径下面食 S05php文件的内容:- # FastCGI PHP binary
- FPHPBIN=/usr/local/php/bin/php
- - # Location to place semaphore
- SEMFILE=/tmp/php.pid
- PHP_FCGI_CHILDREN=5
- PHP_FCGI_MAX_REQUESTS=1000
- export PHP_FCGI_CHILDREN
- export PHP_FCGI_MAX_REQUESTS
- - - 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-4.3r3/bin/fcgirunner --addr=127.0.0.1 --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-4.3r3/bin/fcgirunner --addr=127.0.0.1 --user=99 --group=99 --pidfile=$SEMFILE 8002 $FPHPBIN
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
- ;;
- - esac
- exit 1复制代码有在用的朋友帮忙指教一下
[ 本帖最后由 sunday 于 2010-8-20 14:43 编辑 ]