Created
October 15, 2016 19:39
-
-
Save nishinoshake/210c75fa35f358586ce83c4c7e7a51e3 to your computer and use it in GitHub Desktop.
nginxでphp-fpm
This file contains hidden or 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
# /var/etc/nginx/nginx.conf | |
location ~ \.php$ { | |
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param PATH_INFO $fastcgi_script_name; | |
include fastcgi_params; | |
} |
This file contains hidden or 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
# /etc/php-fpm.d/www.conf | |
# ソケットを使う場合 | |
user = nginx | |
group = nginx | |
listen = /var/run/php-fpm/php-fpm.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment