php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18772 Code won't be executed using index.php as DirectoryIndex file
Submitted: 2002-08-07 04:40 UTC Modified: 2002-09-11 11:50 UTC
From: webmaster at wutallan dot net Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.2 OS: Windows NT 4 (SP6)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: webmaster at wutallan dot net
New email:
PHP Version: OS:

 

 [2002-08-07 04:40 UTC] webmaster at wutallan dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-07 05:53 UTC] 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-09-11 11:50 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 04:01:29 2024 UTC