#18772 [Fbk->Csd]: Code won't be executed using index.php as DirectoryIndex file

From: Date: Wed, 11 Sep 2002 16:50:27 +0000
Subject: #18772 [Fbk->Csd]: 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-19166@lists.php.net to get a copy of this message
 ID:               18772
 Updated by:       sniper@php.net
 Reported By:      webmaster@wutallan.net
-Status:           Feedback
+Status:           Closed
 Bug Type:         Apache2 related
 Operating System: Windows NT 4 (SP6)
 PHP Version:      4.2.2
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




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

[2002-08-07 05:53:17] eru@php.net

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.


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

[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



Thread (3 messages)

« previous php.bugs (#19166) next »