Last active
January 1, 2020 01:10
-
-
Save khalwat/e518fea8438a426a6049 to your computer and use it in GitHub Desktop.
Properly set permissions for a Craft CMS install, including ensuring that files are all g-x. Set CHOWN_USER, CHOWN_GROUP, and BASE_DIR to whatever is appropriate, add directories that need to be writeable by the web server to DIRS[], then execute: sudo ./set-project-perms.sh PROJECT_NAME
This file contains 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
This is now part of craft-scripts: | |
https://github.com/nystudio107/craft-scripts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
craft/app
needs only be writeable if you are using auto-update. This is important because making that writeable can be a vulnerability.