View Single Post
  #6  
Old 18th March 2011, 13:21
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 152
Thanks: 13
Thanked 9 Times in 6 Posts
Default

Code:
# cat /var/www/php-fcgi-scripts/web32/.php-fcgi-starter
#!/bin/sh
umask 0022
PHPRC="/etc/php5/cgi/"
export PHPRC
PHP_DOCUMENT_ROOT="/var/clients/client3/web32"
export PHP_DOCUMENT_ROOT
# The variable PHP_FCGI_CHILDREN is onyl useful for lighty or nginx as apache 
# mod_fcgi will control the number of childs themself and never use the additional processes.
# PHP_FCGI_CHILDREN=8
# export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi \
 $1
Reply With Quote