Skip to content

Instantly share code, notes, and snippets.

@mwillerich
Created August 9, 2012 13:18
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 mwillerich/3304139 to your computer and use it in GitHub Desktop.
Save mwillerich/3304139 to your computer and use it in GitHub Desktop.
sudo apt-get install nginx
sudo apt-get install php5-fpm
sudo apt-get install php5-suhosin
sudo apt-get install php5-cli
sudo vim /etc/php5/fpm/php.ini #changed error reporting
sudo vim /etc/nginx/sites-enabled/default #enabled commented out recipe for PHP-FPM
sudo mkdir /opt/web
sudo chown ubuntu:ubuntu /opt/web
mkdir /opt/web/public
vim web/public/index.php
sudo /etc/init.d/nginx stop
sudo /etc/init.d/php5-fpm stop
sudo vim /etc/php5/fpm/pool.d/www.conf #listen to socket /var/run/php5-fpm.sock instead of port 9000
sudo /etc/init.d/php5-fpm start
sudo /etc/init.d/nginx start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment