1,855 pts.
 Go Away Apache Welcome Page
I just did a fresh install of CentOS 5.4 i386 last week and so far I have failed to get the Apache welcome page (Apache 2 Test Page)  to go way. Apache version is 2.2.3-31. Trying to access any anther page brings up not found error. I have verified my index.htm file is in the directory specified in the DocumentRoot setting of the httpd.conf. I have also verified that every directory from / to html has r & x permissions for all and that the index.html file has r for all. Any suggestions?

Software/Hardware used:
CentOS 5.4, Apache 2.2.3-31
ASKED: January 24, 2010  5:59 AM
UPDATED: January 25, 2010  7:36 PM

Answer Wiki:
I first start by commenting out the lines in /etc/httpd/conf.d/welcome.conf to disable the default page. It's good to have it in the beginning to know you have Apache working, but after that it can safely be disabled. Make sure the <b>DirectoryIndex</b> directive includes 'index.html' or whatever.whatever you wish to load by default when one is not specified: DirectoryIndex index.html index.html.var You say index.htm in one sentence, but index.html in another. If it's index.htm, then it won't load by default until you add it to the DirectoryIndex. Do the following and copy the output to your next reply if you're still having problems: cat /etc/httpd/conf/httpd.conf |grep -v ^# |grep -v ^$ Look at /var/log/httpd/error.log for more information. At the command line, you can do 'tail -f /var/log/httpd/error.log' and then open the URL and look at the output as it happens to see what errors are being generated.
Last Wiki Answer Submitted:  January 25, 2010  7:23 pm  by  Gent01   1,855 pts.
All Answer Wiki Contributors:  Gent01   1,855 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

BTW, I have done plenty of google searching and haven’t been able to come up with anything close to what I am looking for.

 1,855 pts.

 

Thanks Opnsrc. After checking all those things and a coupple more, I found out selinux was blocking httpd’s access to the dir.

 1,855 pts.