Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Browser showing HTML code instead of web page
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Off the Wall
View previous topic :: View next topic  
Author Message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Mon May 12, 2003 4:09 pm    Post subject: Browser showing HTML code instead of web page Reply with quote

Hi, the topic says it all, I have some pages (PHP) that show as HTML code in some browsers, actually, it differs from one machine to the other with the "same" browser (don't know about the verisons)

I have tryed IE, Moz and Phoenix.

Can somebody tell me WTF is going on??

Here's an example (pls don't break it!!!) http://www.solsis.com.ar/gstcommsg/index.php

Thanks!
_________________
I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative
Back to top
View user's profile Send private message
sisqbatas
n00b
n00b


Joined: 24 Feb 2003
Posts: 24

PostPosted: Mon May 12, 2003 4:31 pm    Post subject: Reply with quote

Hi,

I'm not sure, but it can be related to the MIME type set for the PHP files in the web server. If the MIME type is set to text/plain maybe mozilla-like browsers will show it as text (it happens to me with phoenix) while IE may show it right (IE believes more on the extension of the file than the mime type, I think)...

I remember apache has a config file where it declares the mime type which sets for each file extension. If you set the php extension for text/html files maybe it works...
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Mon May 12, 2003 4:32 pm    Post subject: Reply with quote

Probably you don't have mod_php properlly installed.

Actually, you don't have mod_php installed at all, from the headers of your server.

Do USE="apache2" emerge mod_php and follow the instructions, or since it looks like a RedHat server, install the proper RPM.

btw that version of apache is kind of old and... uhm... buggy.. :roll:
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Mon May 12, 2003 4:36 pm    Post subject: Reply with quote

thaks guys, yes methinks it's a redhat server (from a frien of course :lol: )

will come back if solved
_________________
I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative
Back to top
View user's profile Send private message
JanErik
Guru
Guru


Joined: 28 Oct 2002
Posts: 447
Location: Finland

PostPosted: Mon May 12, 2003 9:29 pm    Post subject: Reply with quote

Displays correctly with IE under Win2k :evil:
Back to top
View user's profile Send private message
dondajp
n00b
n00b


Joined: 11 Oct 2002
Posts: 7

PostPosted: Tue May 13, 2003 9:57 am    Post subject: Try this Reply with quote

I just fixed on mine.

after installing apache2 and mod_php do the changes that are mention after the emerge. But the bug is in the file the /etc/apache2/conf/modules.d/70_mod_php.conf

change the first line
<IfDefine PHP>
with the
<IfDefine PHP4>

That should work. if not let me know
_________________
Jignesh Donda
Back to top
View user's profile Send private message
darktux
Veteran
Veteran


Joined: 16 Nov 2002
Posts: 1086
Location: Coimbra, Portugal

PostPosted: Tue May 13, 2003 10:25 am    Post subject: Reply with quote

Like, I said.... He is talking about a RedHat server, dondajp...
_________________
Lego my ego, and I'll lego your knowledge

www.tuxslare.org - My reborn website :P
Back to top
View user's profile Send private message
sickalien
n00b
n00b


Joined: 13 Mar 2003
Posts: 53
Location: Rosario/Argentina

PostPosted: Tue May 13, 2003 3:19 pm    Post subject: Reply with quote

Ok...
This is my server...
It is RedHat 8.
I think is a mime problem, but I added the entry to the mime.types and the AddType directive and nothing happens.
AddType application/x-httpd-php .php
As said above, works fine in IE.
The strange thing is that some pages hosted are shown correctly with mozilla, which is the browser that is having the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Off the Wall All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum