logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Firefox displays page source
Author
j33pn



Joined: 06 Jul 2007
Posts: 2

PostPosted: Fri 06 Jul '07 20:17    Post subject: Firefox displays page source Reply with quote

Hello, my name is Mike... and I'm a n00b.

A few weeks ago I started teaching myself HTML, PHP, and MySQL with IIS running on a fully patched WinXP machine, also running MySQL 5, and PHP 5.2.3. I've gotten as far as building a usable contact manager. Everything was working fine, but I decided to switch to Apache to make my final project portable to a linux box.

Now I have Apache 2.2.4 on the same WinXP box. IIS and PHP are removed now, MySQL is still installed and running.

IE loads the index.html page fine, but Firefox displays only the page source.

My question is, why?

If I left out any important information, I apologize. The header of this file was put in by my wife, who creates fansites as a hobby. I authored the 'Hello World' sections all by myself. Wink

Here is the index page.

Code:
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Hello World</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
Hello World
</body>

</html>
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 09 Jul '07 16:31    Post subject: Reply with quote

Hello Mike!

How did you call your test page? I guess http://127.0.0.1/index.html or http://localhost/index.html

Are you that you save the index.html not as index.html.txt ? Windows does not show known file extension by default. I guess that that is the issue.
Back to top
j33pn



Joined: 06 Jul 2007
Posts: 2

PostPosted: Mon 16 Jul '07 16:06    Post subject: Reply with quote

Thanks for the reply. Sorry this is so late, but I was out last week.

The page is hosted on another PC in the office. I access it by http://192.168.1.242/, which is set as a static IP for the host computer. The actual index page is index.php, and I do have it set as the DirectoryIndex in the httpd.conf file.

I have the 'hide known extensions' setting turned off. I never figured out why MS thought that would be a good feature.

Just the same, the problem seems to have gone away on its own today, so until it starts again, I'll assume the gnomes came at night and fixed it.

Thanks again for the advice.
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Mon 16 Jul '07 16:49    Post subject: Reply with quote

you said you remove php, how do you accept Apache to process .php files without config?

If you are not going to use php name the file to .htm or .html

if you are going to use php download php and follow the install.txt file from the php package to install it

Bento Fernandes
Webmaster
http://www.goanwap.com
Back to top
iamwyza



Joined: 16 May 2007
Posts: 15

PostPosted: Tue 17 Jul '07 13:52    Post subject: Reply with quote

I had a similar problem with Firefox a while back, it was intermittent and annoying as all get out. Additionally however it would also show the hex values for the chunks of the page. It seems to have gone away since i made sure the header of the page is printed earlier on in the program. Still it seems quite odd. No one was ever able to give a good reason to why it happened.
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Tue 17 Jul '07 15:28    Post subject: Reply with quote

I had that issue with Windows XP SP 1.
It seems it was fixed in a hotfix
I remember reading somewhere.

Bento Fernandes
Webmaster
http://www.goanwap.com
Back to top


Reply to topic   Topic: Firefox displays page source View previous topic :: View next topic
Post new topic   Forum Index -> Apache