Skip to content

Instantly share code, notes, and snippets.

@h3nr1ke
Created May 2, 2018 00:48
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 h3nr1ke/6ecb6065ff8aff89782e4a605c9a8cf4 to your computer and use it in GitHub Desktop.
Save h3nr1ke/6ecb6065ff8aff89782e4a605c9a8cf4 to your computer and use it in GitHub Desktop.
Useful tips for nginx configuration
# -- 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