Skip to content

Instantly share code, notes, and snippets.

@ezirmusitua
Created December 6, 2019 01:47
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 ezirmusitua/1af138722168f809639c506ce834cd9a to your computer and use it in GitHub Desktop.
Save ezirmusitua/1af138722168f809639c506ce834cd9a to your computer and use it in GitHub Desktop.
[Nginx permission issue] Solve `Nginx: stat() failed (13: permission denied)` issue #nginx
# check permission
sudo -u www-data stat /username/test/
# add to user group
gpasswd -a www-data username
# give access to username group
chmod g+x /username && chmod g+x /username/test && chmod g+x /username/test/#
# restart nginx
nginx -s reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment