Skip to content

Instantly share code, notes, and snippets.

@nailor
Created December 3, 2009 16:05
Show Gist options
  • Save nailor/248268 to your computer and use it in GitHub Desktop.
Save nailor/248268 to your computer and use it in GitHub Desktop.
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5
stop on shutdown
exec /usr/bin/sudo -u www-data \
PHP_FCGI_CHILDREN=5 \
PHP_FCGI_MAX_REQUESTS=125 \
/usr/bin/php-cgi -q -b 127.0.0.1:9000
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment