diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2015-09-18 15:15:18 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2015-09-18 15:15:18 +0000 |
commit | 8b2630a82fbecfd57fa38aebb397a755936690e5 (patch) | |
tree | a9cfcd7bb5bea87d63fc8ef81c8456a130a249bc /doc/spawn-php.sh | |
parent | e57c8295ebe92b58ca3e68fa8ea8f70d4b0b4cee (diff) | |
download | lighttpd-master.tar.gz |
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@3041 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'doc/spawn-php.sh')
-rwxr-xr-x | doc/spawn-php.sh | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/doc/spawn-php.sh b/doc/spawn-php.sh deleted file mode 100755 index 83b7b167..00000000 --- a/doc/spawn-php.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/bash - -## ABSOLUTE path to the spawn-fcgi binary -SPAWNFCGI="/home/weigon/projects/spawn-fcgi/src/spawn-fcgi" - -## ABSOLUTE path to the PHP binary -FCGIPROGRAM="/usr/local/bin/php" - -## TCP port to which to bind on localhost -FCGIPORT="1026" - -## number of PHP children to spawn -PHP_FCGI_CHILDREN=10 - -## maximum number of requests a single PHP process can serve before it is restarted -PHP_FCGI_MAX_REQUESTS=1000 - -## IP addresses from which PHP should access server connections -FCGI_WEB_SERVER_ADDRS="127.0.0.1,192.168.2.10" - -# allowed environment variables, separated by spaces -ALLOWED_ENV="ORACLE_HOME PATH USER" - -## if this script is run as root, switch to the following user -USERID=wwwrun -GROUPID=wwwrun - - -################## no config below this line - -if test x$PHP_FCGI_CHILDREN = x; then - PHP_FCGI_CHILDREN=5 -fi - -export PHP_FCGI_MAX_REQUESTS -export FCGI_WEB_SERVER_ADDRS - -ALLOWED_ENV="$ALLOWED_ENV PHP_FCGI_MAX_REQUESTS FCGI_WEB_SERVER_ADDRS" - -if test x$UID = x0; then - EX="$SPAWNFCGI -p $FCGIPORT -f $FCGIPROGRAM -u $USERID -g $GROUPID -C $PHP_FCGI_CHILDREN" -else - EX="$SPAWNFCGI -p $FCGIPORT -f $FCGIPROGRAM -C $PHP_FCGI_CHILDREN" -fi - -# copy the allowed environment variables -E= - -for i in $ALLOWED_ENV; do - E="$E $i=${!i}" -done - -# clean the environment and set up a new one -env - $E $EX |