View Single Post
  #3  
Old 12th April 2011, 14:23
crypted crypted is offline
Senior Member
 
Join Date: Dec 2006
Location: Oklahoma, USA
Posts: 429
Thanks: 3
Thanked 14 Times in 6 Posts
Default

I'm running Debian Squeeze x64 (happened on Lenny x64 also) Linux 2.6.32-5-amd64 on x86_64.

It's a Intel(R) Pentium(R) D CPU 3.00GHz 2 cores, 4 GB RAM, and 2x 300GB SATA2 hdds.

I've got ISPC 3.0.3.2 installed.

Here are several FCGI starter scripts from almost all of the sites that end up with the crazy spawning of processes and lag crashing.
Code:
cat /var/www/php-fcgi-scripts/web11/.php-fcgi-starter 
#!/bin/sh
PHPRC="/var/www/conf/web11"
export PHPRC
PHP_DOCUMENT_ROOT="/var/www/clients/client1/web11"
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=1
# export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi \
 -d open_basedir="/var/www/clients/client1/web11/web:/var/www/clients/client1/web11/tmp:/var/www/derekgordon.com/web:/srv/www/derekgordon.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin" \
-d upload_tmp_dir=/var/www/clients/client1/web11/tmp \
-d session.save_path=/var/www/clients/client1/web11/tmp \
 $1
Code:
my:/home/dingle# cat /var/www/php-fcgi-scripts/web5/.php-fcgi-starter 
#!/bin/sh
PHPRC="/var/www/conf/web5"
export PHPRC
PHP_DOCUMENT_ROOT="/var/www/clients/client1/web5"
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=1
# export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi \
 -d open_basedir="/var/www/clients/client1/web5/web:/var/www/clients/client1/web5/tmp:/var/www/areyouliberal.com/web:/srv/www/areyouliberal.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin" \
-d upload_tmp_dir=/var/www/clients/client1/web5/tmp \
-d session.save_path=/var/www/clients/client1/web5/tmp \
export LD_PRELOAD = amon.so
 $1
Code:
my:/home/dingle# cat /var/www/php-fcgi-scripts/web8/.php-fcgi-starter 
#!/bin/sh
PHPRC="/var/www/conf/web8"
export PHPRC
PHP_DOCUMENT_ROOT="/var/www/clients/client1/web8"
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=1
# export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi \
 -d open_basedir="/var/www/clients/client1/web8/web:/var/www/clients/client1/web8/tmp:/var/www/inter5.org/web:/srv/www/inter5.org/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin" \
-d upload_tmp_dir=/var/www/clients/client1/web8/tmp \
-d session.save_path=/var/www/clients/client1/web8/tmp \
export LD_PRELOAD = amon.so
 $1
Code:
my:/home/dingle# cat /var/www/php-fcgi-scripts/web35/.php-fcgi-starter 
#!/bin/sh
PHPRC="/var/www/conf/web35"
export PHPRC
PHP_DOCUMENT_ROOT="/var/www/clients/client1/web35"
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=1
# export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi \
 -d open_basedir="/var/www/clients/client1/web35/web:/var/www/clients/client1/web35/tmp:/var/www/masonicleaks.com/web:/srv/www/masonicleaks.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin" \
-d upload_tmp_dir=/var/www/clients/client1/web35/tmp \
-d session.save_path=/var/www/clients/client1/web35/tmp \
 $1my:/home/dingle#
__________________
ISPC3 on Debian! It's great!
Reply With Quote