boo_lolly Posted August 23, 2007 Share Posted August 23, 2007 i recently installed apache2 on my linux(gentoo) box. i didn't get any errors during the build process, but for some reason apache won't process any webpages. all it does is show the html syntax. what could be causing this? when i go to: http://localhost/ i only see syntax in my browser <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test Page for Apache Installation</title> </head> <!-- Background white, links blue (unvisited), navy (visited), red (active) --> <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#000080" alink="#FF0000"> <p>If you can see this, it means that the installation of the <a href="http://www.apache.org/foundation/preFAQ.html">Apache web server</a> software on this system was successful. You may now add content to this directory and replace this page.</p> <hr width="50%" size="8" /> <h2 align="center">Seeing this instead of the website you expected?</h2> <p>This page is here because the site administrator has changed the configuration of this web server. Please <strong>contact the person responsible for maintaining this server with questions.</strong> The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.</p> <hr width="50%" size="8" /> <p>The Apache <a href="manual/">documentation</a> has been included with this distribution.</p> <p>You are free to use the image below on an Apache-powered web server. Thanks for using Apache!</p> <div align="center"><img src="apache_pb.gif" alt="" /></div> </body> </html> has anyone had this problem before? where do i go from here? Link to comment https://forums.phpfreaks.com/topic/66290-apache-wont-process-webpages/ Share on other sites More sharing options...
tomfmason Posted August 23, 2007 Share Posted August 23, 2007 hmm... Try SetHandler default-handler or AddHandler default-handler .html .htm ext. Link to comment https://forums.phpfreaks.com/topic/66290-apache-wont-process-webpages/#findComment-331616 Share on other sites More sharing options...
boo_lolly Posted August 23, 2007 Author Share Posted August 23, 2007 you know what happened? apache was installed correctly... but for some reason it didn't process webpages when i put in http://localhost/. it processed webpages when i put in http://127.0.0.1/. what's weird is that before i installed apache, http://localhost brought me a page that said "SORRY PAGE NOT FOUND" in my browser. now, after i installed it, it just spits out the html syntax of the webpage, but doesn't process it correctly. and http://127.0.0.1 (which i THOUGHT was the same exact thing) processes webpages just fine. does anybody know why that is? where do i configure apache to simulate that IP into a name for this particular server (whatever i want it to be)? Link to comment https://forums.phpfreaks.com/topic/66290-apache-wont-process-webpages/#findComment-331768 Share on other sites More sharing options...
trq Posted August 23, 2007 Share Posted August 23, 2007 What is the output of... cat /etc/hosts ? Link to comment https://forums.phpfreaks.com/topic/66290-apache-wont-process-webpages/#findComment-331954 Share on other sites More sharing options...
Guardian-Mage Posted August 23, 2007 Share Posted August 23, 2007 I had this problem as well, and I believe it is a problem with the httpd.conf file. Have you tried to edit it or modify it in any way? Link to comment https://forums.phpfreaks.com/topic/66290-apache-wont-process-webpages/#findComment-332025 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.