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
Please sign in to leave a comment.
Hello,
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:
https://www.jetbrains.com/help/img/idea/webphpcreateNewProject.png
Here is the XAMPP Documentation for mapping the working directory to the localhost domain:
https://delanomaloney.com/2013/07/10/how-to-set-up-virtual-hosts-using-xampp/
Hope that helps! ;-)