0

I installed Eclipse with PDT. I installed PHP 8.3 with chocolatery. I setup a built in server inside eclipse to run PHP. I added my PHP project folder as a COnfigured resource in the server. I try to run my PHP project. But i get 404 not found. It seems like it just cant get the source files and i dont know why. I add images of my configuration. If something is missing, tell me and ill add.

I also tested PHPStorm free trial. And there its just press run and it works. THe way i would like things to be in eclipse, since phpstorm is expencive. enter image description hereenter image description hereenter image description hereenter image description hereenter image description here

[Wed Sep  4 08:41:21 2024] PHP 8.3.11 Development Server (http://127.0.0.1:8080) started
[Wed Sep  4 08:41:22 2024] 127.0.0.1:49236 Accepted
[Wed Sep  4 08:41:22 2024] 127.0.0.1:49236 [404]: GET / - No such file or directory
[Wed Sep  4 08:41:22 2024] 127.0.0.1:49236 Closing
[Wed Sep  4 08:41:23 2024] 127.0.0.1:49252 Accepted
[Wed Sep  4 08:41:23 2024] 127.0.0.1:49252 [404]: GET /Learning/hello.php - No such file or directory
[Wed Sep  4 08:41:23 2024] 127.0.0.1:49252 Closing
[Wed Sep  4 08:41:23 2024] 127.0.0.1:49253 Accepted
[Wed Sep  4 08:41:23 2024] 127.0.0.1:49253 [404]: GET /favicon.ico - No such file or directory
[Wed Sep  4 08:41:23 2024] 127.0.0.1:49253 Closing

Also added server config inside the eclipse. maybe that helps. Maybe document root is wrong, but i dont know what sohuld be right one.

14
  • 6
    Can people please stop voting to close this kind of stuff as "not about programming" - I see there's one such vote here already. It's absolutely about programming. If anyone needs a reminder, What topics can I ask about here? says: "if your question generally covers…software tools commonly used by programmers...then you’re in the right place" . I think closing questions which are clearly about getting a programming IDE set up correctly is enforcing an excessively narrow view of a "programming question", and isn't in the spirit of the site rules. Commented Sep 3, 2024 at 12:26
  • Are you letting the Project "build"? Commented Sep 3, 2024 at 12:43
  • define build? I press run. And then thats that. I get 404 and nothing more will happen. Commented Sep 3, 2024 at 12:51
  • @nitind As much as i can see. it seems like when i press run, the build process is instantly terminated. And i dont know why. Commented Sep 3, 2024 at 13:25
  • 1
    Except that if the port is already in use, the PHP server you're trying to launch isn't the one responding to your request, whatever was already running is. Commented Sep 6, 2024 at 1:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.