Website Hosting and file/folder ownership
I am hosting several websites, mainly for friends, and friends of friends, etc. Each user has a login, so they can access their website files. I am having difficulties figuring out the best strategy for setting ownerships.
Lets say that Apache runs as the apache user. Is it best to set everything to owner:group apache:apache? I do this because its possible I have multiple users that want access to the same website. I add the users to the apache group, and make sure the files/folders are rwx for group.
I also create a mount point in their home directories to the website root so they can access the website structure without really leaving their chroot environment.
Any issues with this? Am I mucking things up?
Thanks in advance...