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)
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