Created
December 6, 2019 01:47
-
-
Save ezirmusitua/1af138722168f809639c506ce834cd9a to your computer and use it in GitHub Desktop.
[Nginx permission issue] Solve `Nginx: stat() failed (13: permission denied)` issue #nginx
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
# 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