0

I'm running Centos 6.2, and Apache. I'm running into an error to do with access rights/permissions when trying to navigate to a webpage. I'm trying to go to the URL http://localhost/repos, but I get the error:

You don't have permission to access /repos on this server

Am I missing something essential? I've tried running chmod 775, which I believe should have given me the correct access rights, but to no avail.

2
  • First figure out what physical directory is related to http://localhost/repos. Then check all parent directories of proper privileges for the user your webserver is running under.
    – jippie
    Jan 2, 2013 at 20:53
  • What error appears in the logs? Jan 2, 2013 at 23:32

2 Answers 2

1

Run restorcon -Rv on the directory in question. If it's permissions, and chmod doesn't fix it, it's probably selinux.

1

Are you sure your permission directives (allow/deny) in your httpd.conf (or includes) are correct?

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