Created
October 31, 2016 12:25
-
-
Save full-stack-king/194aaa6680ffb51fc93654bf400cbd07 to your computer and use it in GitHub Desktop.
Linux apache file and directory permission
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
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