403 Forbidden Access

eigen93 asked:

Yesterday my supervisor mounted one of his directories onto my server. The problem is, I can’t access them and I have no way of contacting him right now. When I type in the URL I get this error:

Forbidden
You don't have permission to access /~<username>/core/ on this server.

I tried to cd into the “core” directory and do the following:

chmod -R 755 *.*

but, even with all the permissions changed, I still can’t get access! The weird thing is, I can access and edit the files.

My answer:


If you’re using SELinux (by default you are) then you need to allow Apache to access user home directories:

setsebool -P httpd_enable_homedirs on

That’s all.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.