Last active
August 29, 2015 14:05
-
-
Save collinanderson/fda5178e2edbbc38538e to your computer and use it in GitHub Desktop.
nginx php5-fpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo apt-get install nginx php5-fpm php5-mysql