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

After default CentOs 5.5 install - Document_Root directory (/var/www/html) is owned by root. In my httpd.conf file I have:

user apache group apache

mmm. Should I change ownership of /var/www/html to apache:apache?


Never mind. I was trying to figure out why I can't access a directory that i've created inside of the Document_Root. Then I've stoped SELinux and was able to access that directory.

share|improve this question
up vote 1 down vote accepted

No, you need not to change the ownership of /var/ww/html from root:root. But it should be in 755 permission.

What error you are getting while accessing the folder inside /var/www/html

share|improve this answer
TThe problem was in selinux as I finally figured:) thanks for ur answer anyway. – Stann Mar 29 '11 at 23:35

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.