I want to allow web access to files without allowing other system users access to the files for the website.
I have owner:group as
bob:bob
Then I did:
usermod -a -G bob httpd
To add http to the user group.
File permissions on root folder are:
drwxr-xr--
But I cannot access the site from the internet anymore. The web server should be able to access the folder with the above permissions.
If I add o+x permission, it works immediately.
error log says:
[Tue May 01 17:25:20 2012] [crit] [client xxx.xx.xxx.xx] (13)Permission denied:
/var/www/bob/.htaccess pcfg_openfile: unable to check htaccess file, ensure it i
s readable
Any help would be greatly appreciated.
httpd.conf
file? They belong under theserver.username
andserver.groupname
settings, respectively. Also, you might need to change the owner of the root directory (as well as all files and subdirectories) tobob:bob
withchown
.