LAMP Stack permissions
I've found a couple old threads that briefly mention permissions for LAMP stacks, but none have been a great guide (nor on the library). So far, I have built a LAMP server simply using one of the StackScripts (
This is how I have the folders setup:
/var/www
/var/www/example.com
/var/www/example.com/public_html
/var/www/example.org
/var/www/example.org/public_html
I have a user (andrew) that I want to give access to /var/www for SFTP. So that user has full access to all the sites and everything within /var/www. I also want the www-data user or group to have access to those files so that I can do auto-updates through WordPress. What would be the best way to handle this?
I'm currently thinking of adding both the andrew and www-data users to a new group (such as filetransfer, as mentioned in