scripts

shell scripts
git clone git://git.bitsmanent.org/scripts
Log | Files | Refs | README

spawncgi (244B)


      1 export PHP_FCGI_MAX_REQUESTS=1000
      2 export PHP_FCGI_CHILDREN=5
      3 
      4 if [ "$(id -un)" != "www-data" ]; then
      5 	echo "Usage: sudo -Eu www-data $0"
      6 	exit 1
      7 fi
      8 
      9 [ $(pgrep -fl php5 |wc -l) -ne 0 ] && pkill -9f php5-cgi
     10 /usr/bin/php5-cgi -b 127.0.0.1:9000 &