#18772 [Opn->Fbk]: Code won't be executed using index.php as DirectoryIndex file
| From: | eru@php.net | Date: | Wed, 07 Aug 2002 09:53:17 +0000 |
| Subject: | #18772 [Opn->Fbk]: Code won't be executed using index.php as DirectoryIndex file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16135@lists.php.net to get a copy of this message | ||
ID: 18772
Updated by: eru@php.net
Reported By: webmaster@wutallan.net
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: Windows NT 4 (SP6)
PHP Version: 4.2.2
New Comment:
Could you please download
http://snaps.php.net/win32/php4-win32-latest.zip
and try again?
Apache2 should be used with the CVS only, atm.
Please reopen, if the problem persists.
Previous Comments:
------------------------------------------------------------------------
[2002-08-07 04:40:12] webmaster@wutallan.net
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 this bug report at http://bugs.php.net/?id=18772&edit=1