Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

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.

share|improve this question

closed as unclear what you're asking by Jeff Schaller, slm Jul 15 at 12:14

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

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 '13 at 20:53
What error appears in the logs? – Gilles Jan 2 '13 at 23:32

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

share|improve this answer

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

share|improve this answer

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