|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55134 index.html has greater priority than index.php
Submitted: 2011-07-05 03:42 UTC Modified: 2011-07-23 17:15 UTC
From: frederic dot hardy at mageekbox dot net Assigned: moriyoshi (profile)
Status: Closed Package: Built-in web server
PHP Version: 5.4SVN-2011-07-05 (SVN) OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: frederic dot hardy at mageekbox dot net
New email:
PHP Version: OS:


 [2011-07-05 03:42 UTC] frederic dot hardy at mageekbox dot net
When a directory contains index.html and index.php, built-in web server send to the client index.html, instead of index.php.

Test script:
Pour in the root directory of the built-in web server index.html and index.php.
Launght the built-in web server with php -S localhost:8080.
Go to http://localhost:8080.

Expected result:
Result of execution of index.php.

Actual result:
Contents of index.html.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-05 03:47 UTC]
-Summary: index.html has greater priority than index.html +Summary: index.html has greater priority than index.php
 [2011-07-05 13:30 UTC]
-Status: Open +Status: Bogus
 [2011-07-05 13:30 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

This has to do with your web server config, not PHP.
 [2011-07-05 13:34 UTC]
-Status: Bogus +Status: Open
 [2011-07-05 13:34 UTC]
This is to do with the new built-in Web server, not a standalone one.
 [2011-07-05 14:32 UTC]
-Assigned To: +Assigned To: moriyoshi
 [2011-07-23 17:12 UTC]
Automatic comment from SVN on behalf of sixd
Log: Swap .html & .php order to match Moriyoshi's fix for bug 55134
 [2011-07-23 17:15 UTC]
-Status: Assigned +Status: Closed
 [2011-07-23 17:15 UTC]
Fixed by Moriyoshi in
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 04:01:24 2020 UTC