Created
May 2, 2018 00:48
-
-
Save h3nr1ke/6ecb6065ff8aff89782e4a605c9a8cf4 to your computer and use it in GitHub Desktop.
Useful tips for nginx configuration
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
# -- UBUNTU + PHP7 + NGINX | |
# -- must add it to you pgp location | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; #replace if already there... | |
# -- must to check the listen path to php fpm sock is this file | |
nano /etc/php/7.0/fpm/pool.d/www.conf | |
# -- search for "listen = ", this path must be | |
/var/run/php/php7.0-fpm.sock | |
# -- restart to apply | |
service nginx reload | |
service php7.0-fpm restart | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment