Last active
January 26, 2019 00:13
-
-
Save heathdutton/6067b8c2b3c603482200e0b1af10f320 to your computer and use it in GitHub Desktop.
Permissions for Mautic
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
cd /home/clientsiwanta/public_html/mautic/ | |
find . -type d -exec sudo chmod 755 {} \; | |
find . -type f -exec sudo chmod 644 {} \; | |
sudo chmod -R g+w app/cache/ | |
sudo chmod -R g+w app/logs/ | |
sudo chmod -R g+w app/config/ | |
sudo chmod -R g+w media/files/ | |
sudo chmod -R g+w media/images/ | |
sudo chmod -R g+w translations/ | |
sudo chown -R www-data:www-data . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this. I'd move the final line just below
cd
because all other commands will fail if the file owners are incorrectly set up.