Skip to content

Instantly share code, notes, and snippets.

@turbopixel
Last active October 10, 2019 10:58
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 turbopixel/619785bbd6315a1201c543db676afc48 to your computer and use it in GitHub Desktop.
Save turbopixel/619785bbd6315a1201c543db676afc48 to your computer and use it in GitHub Desktop.
Webserver File Permission fix
# Let Apache be owner
chown www-data:www-data -R *
# Change directory permissions rwxr-xr-x
find . -type d -exec chmod 755 {} \;
# Change file permissions rw-r--r--
find . -type f -exec chmod 644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment