Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is an Apache server on Linux RH ES 5.6. I created a new Apache instance on port 443.

When I try to access the website I get a 403 error. I see the following in my error logs:

$ vi controlnetworx-int2_error_log.1336608000
[Tue May 15 15:07:07 2012] [error] [client] (13)Permission denied: access to / denied
[Tue May 15 15:09:05 2012] [error] [client] (13)Permission denied: access to / denied

I gave the user permission with chmod 777 ..server/htdocs, but this didn't get rid of the (13)Permission denied error.

share|improve this question
You certainly don't want 777, that is pretty much never the correct permissions. You probably want that to be 755. Its not going to be the case that accessing the website requires write permission to the document root. – stew May 16 '12 at 0:23
can you include the output of httpd -S which should show us the basics of how your server is configured? – stew May 16 '12 at 0:25

This error is because of SELinux. Run this:

chcon -R -h -t http_sys_content_t /path/to/your/htdocs

After that, you wouldn't get the 403 error.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.