Skip to content

Instantly share code, notes, and snippets.

@collinanderson
Last active August 29, 2015 14:05
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 collinanderson/fda5178e2edbbc38538e to your computer and use it in GitHub Desktop.
Save collinanderson/fda5178e2edbbc38538e to your computer and use it in GitHub Desktop.
nginx php5-fpm
server {
server_name example.com;
root /path/to/php;
location / {
index index.php;
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/run/php5-fpm.sock;
}
}
@collinanderson
Copy link
Author

sudo apt-get install nginx php5-fpm php5-mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment