Skip to content

Instantly share code, notes, and snippets.

@opencoca
Created March 18, 2020 13:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save opencoca/f2148d7306c401a8167c08f8e4e487de to your computer and use it in GitHub Desktop.
Save opencoca/f2148d7306c401a8167c08f8e4e487de to your computer and use it in GitHub Desktop.
Mautic Perms and Cache warm up
cd /var/www/mautic
mkdir app/spool/
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod -R g+w app/cache/
chmod -R g+w app/logs/
chmod -R g+w app/config/
chmod -R g+w media/files/
chmod -R g+w media/images/
chmod -R g+w translations/
chmod -R g+w app/spool/
chmod -R g+w themes
chown -R $USER:www-data .
chmod +x app/app/console
app/console cache:warmup --env=prod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment