#18582 [Open->]: Default page download, not shown

From: Date: Fri, 26 Jul 2002 20:19:59 +0000
Subject: #18582 [Open->]: Default page download, not shown
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15384@lists.php.net to get a copy of this message
 ID:               18582
 Comment by:       
 Reported By:      ctenedor@yahoo.com
 Status:           Open
 Bug Type:         Apache related
 Operating System: freebsd
 PHP Version:      4.2.2
 New Comment:

I've had the same problem described here. 
The config of my server is:
   OS: Red Hat 7.3
   Arch: Intel 32bit
   PHP: 4.2.2 (DSO)
   Apache: 1.3.26
   PHP Configure line:
   './configure' '--prefix=/usr/local/php' 
   '--with-apxs=/usr/local/apache/bin/apxs' '--with-openssl'
   '--with-pcre-regex' '--with-mysql' '--with-pgsql' 
   '--with-ldap' '--with-zlib' '--enable-calendar' 
   '--with-java=/usr/java/j2sdk1.4.0_01' '--enable-wddx' 
   '--with-bz2' '--enable-ctype' '--with-curl' 
   '--with-cybercash' '--with-db' '--with-dom'
   '--enable-exif' '--with-gd' '--with-gettext' 
   '--with-hyperwave' '--with-iconv' '--with-imap' 
   '--with-yaz' '--with-xmlrpc' 
   '--with-kerberos=/usr/kerberos' 
   '--with-pear=/usr/local/php/pear'
   '--with-imap-ssl'

Interestingly, it happens with Mozilla 1.0 under linux and does not
happen with the version of Konqueror that comes with KDE 3.0.

If I choose to download the URL (e.g. http://www.mydomain.com/stuff/)
with mozilla I get the 
PHP source! This leads me to believe it is bug in PHP.
My apache config does not contain the x-httpd-php-source AddType
directive.


Previous Comments:
------------------------------------------------------------------------

[2002-07-26 10:05:00] ctenedor@yahoo.com

'./configure' '--with-mysql' '--with-imap' '--with-xml'
'--enable-dbase' '--enable-sockets' '--enable-safe-mode'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-gd=/usr/local/'
'--with-jpeg-dir=/usr/local/' '--with-png-dir=/usr/local/'
'--with-zlib-dir=/usr/local/'

Apache/1.3.22

PHP as module

The site was working ok, we were using urls like 'directory/' and no
'directory/index.xxx' (php, htm,html), and it worked ok, including the
connections using the internet providers that now show the error. Now,
when updated 4.2.2, 'directory/ like' links doesn't work and sometimes
show crucial information, as confs path's, and the script code.

Please explain how using .htaccess can fix it, in apache.conf I'm
using

<IfModule mod_dir.c>
    DirectoryIndex index.php index.html default.htm default.php
default.html index.htm
</IfModule>

If I use .htaccess it means that I will have to create a .htaccess for
every directory of my site? Using .htaccess is common for me, but for
tasks as restricting access or hidden some files.

------------------------------------------------------------------------

[2002-07-26 06:19:59] sniper@php.net

Apache version? configure line for PHP ?
PHP as module/cgi? 

------------------------------------------------------------------------

[2002-07-25 23:35:26] rverlander@php.net

Umm well I'd **think**  that thats a problem with thier browsers, have
you tried adding:

DirectoryIndex index.php index.html index.htm

To .htaccess.

------------------------------------------------------------------------

[2002-07-25 22:54:02] ctenedor@yahoo.com

Recently updated cause the vulnerability, I'm using PHP 4.2.2. In
certain conditions (with some internet providers) when someone try to
access the root of a directory (for example, www.myserver.com/pages/)
and the default document is index.php, instead of execute script and
show the result, appears the browser's download dialog, in explorer
5.x,, 6.x, Mozilla 1.x and Netscape 4.x, and part or complete script is
downloaded when clicking "OK". Using another connection of a different
provider, the page shows ok. In both cases (different providers), using
/pages/index.php is ok, and works normal. I don't upgrade or modify
apache, or apache conf. I'm using my old php ini (upgraded from 4.1.?
to 4.2.2), the same configure line, etc. 

The page is www.mimorelia.com/foros/ . If you type instead
www.mimorelia.com/foros/index.php, the page shows normal. I insist,
some internet providers shows ok, others no, maybe using proxys or nat
for provide internet. (cable providers)

Thanks

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=18582&edit=1



Thread (9 messages)

« previous php.bugs (#15384) next »