| View previous topic :: View next topic |
| Author |
Message |
krusty_ar Guru


Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
Posted: Mon May 12, 2003 4:09 pm Post subject: Browser showing HTML code instead of web page |
|
|
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 |
|
 |
sisqbatas n00b


Joined: 24 Feb 2003 Posts: 24
|
Posted: Mon May 12, 2003 4:31 pm Post subject: |
|
|
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 |
|
 |
darktux Veteran


Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Mon May 12, 2003 4:32 pm Post subject: |
|
|
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..  _________________ Lego my ego, and I'll lego your knowledge
www.tuxslare.org - My reborn website  |
|
| Back to top |
|
 |
krusty_ar Guru


Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
Posted: Mon May 12, 2003 4:36 pm Post subject: |
|
|
thaks guys, yes methinks it's a redhat server (from a frien of course )
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 |
|
 |
JanErik Guru

Joined: 28 Oct 2002 Posts: 447 Location: Finland
|
Posted: Mon May 12, 2003 9:29 pm Post subject: |
|
|
Displays correctly with IE under Win2k  |
|
| Back to top |
|
 |
dondajp n00b

Joined: 11 Oct 2002 Posts: 7
|
Posted: Tue May 13, 2003 9:57 am Post subject: Try this |
|
|
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 |
|
 |
darktux Veteran


Joined: 16 Nov 2002 Posts: 1086 Location: Coimbra, Portugal
|
Posted: Tue May 13, 2003 10:25 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
sickalien n00b


Joined: 13 Mar 2003 Posts: 53 Location: Rosario/Argentina
|
Posted: Tue May 13, 2003 3:19 pm Post subject: |
|
|
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 |
|
 |
|