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-Kee Miu is currently offline Yen-Kee MiuFriend
Messages: 1
Registered: October 2015
Junior Member
Hello,

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:
<?php
phpinfo()
?>


Only test.php works! Crying or Very Sad

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

Module
IIS Web Core

Notification
MapRequestHandler

Handler
PHP55_via_FastCGI

Error Code
0x80070002

Requested URL
http://localhost:80/LearningPHP/index.php

Physical Path
C:\inetpub\wwwroot\LearningPHP\index.php

Logon Method
Anonymous

Logon User
Anonymous

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: Tue Jan 23 02:19:33 GMT 2018

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

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