Skip to content

Instantly share code, notes, and snippets.

@ternavsky
Created January 15, 2018 07:46
Show Gist options
  • Save ternavsky/36894cb0babd29c07e30590430c3120a to your computer and use it in GitHub Desktop.
Save ternavsky/36894cb0babd29c07e30590430c3120a to your computer and use it in GitHub Desktop.
OctoberCMS file permissions production setup
#!/bin/bash
sudo chown -R www-data:www-data *
sudo find . -type d -exec chmod 755 {} \;
sudo find . -type f -exec chmod 664 {} \;
sudo chmod -R g+s storage themes
sudo chmod -R ug+rwx storage themes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment