Jump to content

apache won't process webpages


boo_lolly

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.