Skip to content

Instantly share code, notes, and snippets.

@alobato
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alobato/c7f2701d53806e08d1c2 to your computer and use it in GitHub Desktop.
Save alobato/c7f2701d53806e08d1c2 to your computer and use it in GitHub Desktop.
php_run.sh
#!/bin/bash
FASTCGI_USER=deployer
FASTCGI_GROUP=deployer
ADDRESS=127.0.0.1
PORT=9000
PIDFILE=/home/deployer/.php/appname/php-fastcgi.pid
CHILDREN=3
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