#18772 [NEW]: Code won't be executed using index.php as DirectoryIndex file

From: Date: Wed, 07 Aug 2002 08:40:12 +0000
Subject: #18772 [NEW]: Code won't be executed using index.php as DirectoryIndex file
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16128@lists.php.net to get a copy of this message
From: webmaster@wutallan.net Operating system: Windows NT 4 (SP6) PHP version: 4.2.2 PHP Bug Type: Apache2 related Bug description: Code won't be executed using index.php as DirectoryIndex file Posted some time ago (Bug #16814) for Apache 2.0.35/PHP 4.2.0, but still seems to be unresolved. Using Apache 2.0.39 with php4apache2.dll (PHP 4.2.2) under Win NT 4 SP6, the PHP code won't be executed if the index.php is used as the directory index file. If http://servername/ is requsted, the PHP code won't be executed, so the plain source shows up as text, which may contain database passwords etc. With index.php appended to the URL, the file is parsed correctly by the PHP module. From my Apache httpd.conf: LoadModule php4_module C:/php-4.2.2-win32/sapi/php4apache2.dll AddType application/x-httpd-php .php .php3 .php4 .phtml AddType application/x-httpd-php-source .phps AddOutputFilter PHP;INCLUDES .php .php3 .php4 .phtml .phps [...] DirectoryIndex index.php index.php3 index.php4 index.phtml index.html index.html.var index.htm As a workaround, I use an index.html with a <META> redirect to index.php. -- Edit bug report at http://bugs.php.net/?id=18772&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18772&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18772&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18772&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18772&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18772&r=support Expected behavior: http://bugs.php.net/fix.php?id=18772&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18772&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18772&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18772&r=globals

« previous php.bugs (#16128) next »