1

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 10.13.137.80] (13)Permission denied: access to / denied
[Tue May 15 15:09:05 2012] [error] [client 10.13.137.80] (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.

2
  • 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, 2012 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, 2012 at 0:25

1 Answer 1

2

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .