How to Use PHP’s built-in Web Server

PHP (>= 5.4) comes with a built-in web server. This server can be used to run your Sulu application during development. This way, you don’t have to bother configuring a full-featured web server such as Apache or Nginx.


The built-in web server is meant to be run in a controlled environment. It is not designed to be used on public networks.

The server can be started with the server:start command.

bin/console server:start

These commands will start a server listening on

You can change the IP and port of the web servers by passing them as argument:

bin/console server:start

The server can be stopped again with the server:stop command:

bin/console server:stop

Read the Symfony documentation on the built-in web server to learn more about the different server:* commands and options.