PhpStorm Localhost 404 Not Found

Answered

I try to run my files, like /path/to/htdocs/weather.php, on localhost, and it says 404 Not Found, with the PhpStorm logo on the tab.

Here's a screenshot:if y'all need more info, just ask!

2 comments

Hi there,

The URL (and favicon) suggests that you are using PhpStorm's built-in simple web server.

It requires URLs to be in this form: http://localhost:PORT/PROJECT_NAME/path/to/file.php. PROJECT_NAME part is required (it acts like a domain name in proper web server -- to identify what project/files to serve).

Questions:

  • "forMe" in your URL - is it a project name or part of the file path?
  • I'm not sure if it handles nice URLs ("fun/games/naval") -- maybe only real paths to files can be used (like "path/to/weather.php"; sorry, not using it myself -- using proper web server).
0

Oh my god, it worked when I added htdocs before the path! Thanks!

0

Please sign in to leave a comment.