Skip to content

Instantly share code, notes, and snippets.

@ouyangzhiping
Created September 6, 2011 09:23
Show Gist options
  • Save ouyangzhiping/1197090 to your computer and use it in GitHub Desktop.
Save ouyangzhiping/1197090 to your computer and use it in GitHub Desktop.
php-fastcgi
#!/bin/bash
FASTCGI_USER=www-data
FASTCGI_GROUP=www-data
ADDRESS=127.0.0.1
PORT=9000
PIDFILE=/var/run/php-fastcgi/php-fastcgi.pid
CHILDREN=6
PHP5=/usr/bin/php5-cgi
/usr/bin/spawn-fcgi -a $ADDRESS -p $PORT -P $PIDFILE -C $CHILDREN -u $FASTCGI_USER -g $FASTCGI_GROUP -f $PHP5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment