Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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
1  
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
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.