Failed to determine PHP installation on server <localhost>

I get the following error when trying to create a new project from and existing source.

"Failed to determine PHP installation on server localhost"

1) I started PHPStorm and from the menu selected File - > New Project from Existing Files.

2) In the dialogbox prompt I selected "Webserver is installed locally, source files are located under its document root" and clicked the next button.

3) In the "Choose Project Directory" screen I selected the path to create the project in and clicked next.

4) In the "Specify the local server" screen, I selected "Add new local server" and clicked next.

5) In the "Add Local Server" screen, I input "localhost" in the "Name:" input field and http://localhost value for "Web server root URL:" field and clicked next.

6) In the "Specify Web Path" screen, I input the project directory name. The "Project URL:" showed the value http://localhost/<projectdirname> . I also enable "Review PHP settings"

7) When I click next, the subesquent screen I get the error  "Failed to determine PHP installation on server localhost".

When I type in the URL http://localhost/<project name> it works.

Any help is appreciated.

Thanks

Ashish Anand

1 comment
Comment actions Permalink

Hi Ashish,

TBH -- no idea as I'm not using New Project wizard myself -- doing everything manually. Any way:

  1. Try without "Review PHP settings"
  2. Maybe (assumption based purelly on your text) it is because you have http://localhost/<projectdirname> in wizard while actual URL is http://localhost/<project name> (or <projectdirname> and <project name> are the same ?)
  3. Since everything is local, you can use "normal/non-wizard" approach: just use "File | Open Directory" (point to the project root folder) and then you can configure everything else manually.
0

Please sign in to leave a comment.