| ![[BACK]](/icons/cvsweb/back.gif) Return to run-php CVS log ![[TXT]](/icons/cvsweb/text.gif) | ![[DIR]](/icons/cvsweb/dir.gif) Up to  [ELWIX - Embedded LightWeight unIX -] / embedaddon / spawn-fcgi / doc | 
1.1       misho       1: #!/bin/sh
                      2: # Use this as a ./run script with daemontools or runit
                      3: # You should replace xxx with the user you want php to run as (and www-data with the user lighty runs as)
                      4: 
                      5: exec 2>&1
                      6: PHP_FCGI_CHILDREN=2 \
                      7: PHP_FCGI_MAX_REQUESTS=1000 \
                      8: exec /usr/bin/spawn-fcgi -n -s /var/run/lighttpd/php-xxx.sock -n -u xxx -U www-data -- /usr/bin/php5-cgi