Skip to content

Instantly share code, notes, and snippets.

@full-stack-king
Created October 31, 2016 12:25
Show Gist options
  • Save full-stack-king/194aaa6680ffb51fc93654bf400cbd07 to your computer and use it in GitHub Desktop.
Save full-stack-king/194aaa6680ffb51fc93654bf400cbd07 to your computer and use it in GitHub Desktop.
Linux apache file and directory permission
groups
sudo groupadd www
sudo usermod -a -G www ec2-user
sudo usermod -a -G www apache
sudo chown -R root:www castle_invoice/
find ./castle_invoice -type d -exec sudo chmod 2775 {} \;
find ./castle_invoice -type f -exec sudo chmod 0664 {} \;
sudo service httpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment