Skip to end of metadata
Go to start of metadata
This tutorial describes how to make use of the built-in webserver in PhpStorm.

PhpStorm comes with a built-in webserver that serves up static content like HTML, JavaScript and CSS as well as PHP.

1. Open a project in PhpStorm

To be able to work with the built-in webserver in PhpStorm, a project has to be open. Make sure that the project has a PHP Interpreter configured under Settings | Project Settings | PHP.

2. Open a web browser

Navigate to http://localhost:63342/<projectname>. For example when working in a project called HelloWorld, navigate to http://localhost:63342/HelloWorld/. This will serve our project files using the project root as the webserver's content root.

I'm getting an error: PHP Interpreter is not configured

When opening the browser and navigating to the project, an error may occur:

This error is displayed when you navigate to the built-in webserver and no PHP interpreter has been specified for the project. By clicking the link in the error message or by using Settings | Project Settings | PHP, the PHP interpreter can be specified.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.