Skip to content

Instantly share code, notes, and snippets.

@heathdutton
Forked from rickhernandezio/permissions.sh
Last active January 26, 2019 00:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save heathdutton/6067b8c2b3c603482200e0b1af10f320 to your computer and use it in GitHub Desktop.
Save heathdutton/6067b8c2b3c603482200e0b1af10f320 to your computer and use it in GitHub Desktop.
Permissions for Mautic
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 .
@yrammos
Copy link

yrammos commented Oct 19, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment