Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Linux apache file and directory permission
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
You can’t perform that action at this time.