Skip to content

Instantly share code, notes, and snippets.

@guipacheco2
Last active August 29, 2015 14:01
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 guipacheco2/28b7363bc2f01061e412 to your computer and use it in GitHub Desktop.
Save guipacheco2/28b7363bc2f01061e412 to your computer and use it in GitHub Desktop.
Infra

nginx error connect to php5-fpm.sock failed (13: Permission denied)

Instead of change permission to 666, better to change owner of php5-fpm.sock and set permission to 660.

Go to /etc/php5/fpm/pool.d Open www.conf (sudo nano www.conf) Uncomment all permission lines, like:

listen.owner = www-data listen.group = www-data listen.mode = 0660 Restart fpm (sudo service php5-fpm restart)

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