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

I just finished installing apache to my server. If I access the website, the apache 2 test page will appear informing that the installation is success.

Then I put my websites under public_html. But the apache still don't access the public_html folder.

This is my first experience using linux as my OS server.

share|improve this question

The apache default root under centos is usually the path /var/www/. If you want to change it to public_html, you need to edit your server config and possibly use virtual hosts.

share|improve this answer
How to change the path ? Is it in httpd.conf ? – C.S.Putra Jan 18 '12 at 9:31
You can look for DocumentRoot in your httpd.conf file. I recommend you to read about this more before unless you don't mind to break your server. – Khaled Jan 18 '12 at 9:38
Ok. I'll read more about that. Thanks – C.S.Putra Jan 18 '12 at 10:07

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.