Apache and permissions
Hi,I have a dedicated server with redhat 7.3 and apache.
Let say I have a user with his home directory in "/home/user1" and his website in "/home/user1/www". To host a domain for his user, I create a VirtualHost with the DocumentRoot pointing to "/home/user1/www" and I need to chmod the "www" directory to 755. But Apache needs to have read permission to all the directories before the "www" directory to be able to serve thoses files but if I "chmod -R 755 /home/user1", all other users are able to read from this user's home directory.
What do you guys do to get around this ?
Also, if this user wants to create a PHP script that writes a file to his home directory, it would get a permission denied error since the user "apache" doesn't have write access to his home directory.
Thanks for your help.