Browser randomly displays php source instead of supposed output

This is a discussion on Browser randomly displays php source instead of supposed output within the PHP General forums, part of the PHP Programming Forums category; Hello. Randomly the php-source is displayed instead of the output (http://www.engstringen.ch/). Generally, the output is correct !!! ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-23-2003
Stephan Gloor
 
Posts: n/a
Default Browser randomly displays php source instead of supposed output

Hello.

Randomly the php-source is displayed instead of the output
(http://www.engstringen.ch/).
Generally, the output is correct !!! It happens sometimes after 10 minutes
of browsing. Sometimes it comes up with the first clikc on the site.

This was the case when having installed apache 1.3 und php 4.1.

After ugrading to apache 2 and php 4.3.4 the bug still occurs. But the
browser shows now a file download dialog box for downloading the php -script
instead of having executed it !!!
The header of the response contains the php - mime type configured
application/x-httpd-php.

The apache config contains
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
Include conf/confixx_vhost.conf

The confixx_vhost.conf contains lots of virtual host configured on a named
vhost basis.

php is minimally configured with
'./configure' '--with-mysql' '--with-apxs'

Linux version Linux 2.4.20.

Thanks for any hint
Stephan

--------------------------------------------------------------------------
Gloor Informatik Zurlindenstr. 215 a 8003 Zürich
Tel: 01 461 24 11 Fax: 01
461 22 39 info@gli.ch
Reply With Quote
  #2 (permalink)  
Old 12-29-2003
Calico Jack
 
Posts: n/a
Default Re: Browser randomly displays php source instead of supposed output

Stephan Gloor wrote:
> Hello.
>
> Randomly the php-source is displayed instead of the output
> (http://www.engstringen.ch/).
> Generally, the output is correct !!! It happens sometimes after 10 minutes
> of browsing. Sometimes it comes up with the first clikc on the site.
>
> This was the case when having installed apache 1.3 und php 4.1.
>
> After ugrading to apache 2 and php 4.3.4 the bug still occurs. But the
> browser shows now a file download dialog box for downloading the php -script
> instead of having executed it !!!
> The header of the response contains the php - mime type configured
> application/x-httpd-php.
>
> The apache config contains
> AddType application/x-httpd-php .php .php4 .php3 .phtml
> AddType application/x-httpd-php-source .phps
> Include conf/confixx_vhost.conf
>
> The confixx_vhost.conf contains lots of virtual host configured on a named
> vhost basis.
>
> php is minimally configured with
> './configure' '--with-mysql' '--with-apxs'
>
> Linux version Linux 2.4.20.
>
> Thanks for any hint
> Stephan
>
> --------------------------------------------------------------------------
> Gloor Informatik Zurlindenstr. 215 a 8003 Zürich
> Tel: 01 461 24 11 Fax: 01
> 461 22 39 info@gli.ch

Is the server in a load balanced envirionment? The first thing that
came to my mind was that it is load balanced and one of the servers are
misconfigured.

-Calico Jack-

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:25 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0