New install of xamp and phpstorm not loading phpinfo(); on localhost

Hello, I just installed PhpStorm 2016.2. This required XAMP which loads localhost/test.php, which I created in /var/www/html/test.php.

Following the phpstorm tutorial, with the project stored in /home/userName/PhpstormProjects/MyFirstPhpProject, loading the browser http://localhost/MyFirstPhpProject/MyFile.php has error: 

Not Found

The requested URL /MyFirstPhpProject/MyFile.php was not found on this server.

Apache/2.4.18 (Ubuntu) Server at localhost Port 80
Comment actions Permalink



The project should be stored in /var/www/ (if it's your UserDir per httpd-userdir.conf).

So the path should be /var/www/MyFirstPhpProject/MyFile.php

The tutorial advises to store a project in a web server's content root:

Comment actions Permalink

Here is the XAMPP Documentation for mapping the working directory to the localhost domain:


Hope that helps! ;-)


Please sign in to leave a comment.