Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
    
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
add comment

2 Answers

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.