spawns FastCGI processes
https://redmine.lighttpd.net/projects/spawn-fcgi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
338 B
8 lines
338 B
#!/bin/sh |
|
# Use this as a ./run script with daemontools or runit |
|
# You should replace xxx with the user you want php to run as (and www-data with the user lighty runs as) |
|
|
|
exec 2>&1 |
|
PHP_FCGI_CHILDREN=2 \ |
|
PHP_FCGI_MAX_REQUESTS=1000 \ |
|
exec /usr/bin/spawn-fcgi -n -s /var/run/lighttpd/php-xxx.sock -n -u xxx -U www-data -- /usr/bin/php5-cgi
|
|
|