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.

link|improve this question
feedback

1 Answer

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.

link|improve this answer
How to change the path ? Is it in httpd.conf ? – C.S.Putra Jan 18 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 at 9:38
Ok. I'll read more about that. Thanks – C.S.Putra Jan 18 at 10:07
feedback

Your Answer

 
or
required, but never shown

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