Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Eclipse MARS can run any .php but not index.php!(Eclipse MARS PHP PDT can run all other php files but I get 404 on index.php)
icon5.gif  Eclipse MARS can run any .php but not index.php! [message #1711562] Sat, 17 October 2015 10:56
Yen Miu is currently offline Yen MiuFriend
Messages: 1
Registered: October 2015
Junior Member

Hope someone can help? I have windows 10 and just set-up my eclipse for PHP. I have used set-up IIS as my webserver and all looks well when going to localhost (maps to docs in directory 'C:\inetpub\wwwroot').

I then set-up an Eclipse PHP project, when creating this I choose 'Contents' option 'Create project on a local server' with the 'C:\inetpub\wwwroot' directory.

Now, when I create two .php files, test.php and index.php with contents of:

Only test.php works! Crying or Very Sad

index.php comes up with error:
Detailed Error Information:

IIS Web Core



Error Code

Requested URL

Physical Path

Logon Method

Logon User

Using a web browser to view index.php, using localhost/<PROJ_NAME>/ or using localhost/<PROJ_NAME>/index.php gets the phpinfo() function to work.

I have checked IIS manager, this has index.php listed in default documents, also has Directory Browsing enabled. This looks to be purely Eclipse config issue, do I need to do anything specific/differently for 'index' pages? I have tried changing the url on the run generated 'browser' tab in eclipse to try a default page but this still has the same 404.0 error?!

Thanks in advance!
Previous Topic:Can't setup server with bitnami wordpress in Windows 10
Next Topic:class constant parser bug
Goto Forum:

Current Time: Wed Sep 26 09:09:58 GMT 2018

Powered by FUDForum. Page generated in 0.01686 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top