Edit on GitHub
Jump to docs navigation

HOWTOs / Running Bolt using PHP's built-in web server

Note: You are currently reading the documentation for Bolt 3.4. Looking for the documentation for Bolt 3.5 instead?

For development and testing purposes it is ofter useful to use PHP's built-in web server rather than setting up Apache or Nginx.

To run the built-in server, simply change to the site root directory and run:

php ./app/nut server:run

If you wish to specify a host name or different TCP port, simply add these after server:run, e.g.

php ./app/nut server:run example.com --port=8080

Note: Using the method above is preferred over using php -s directly. The latter might seem to work at first glance, but the paths of assets will be wrong, and you will not be able to edit files through the Bolt backend.

Edit this page on GitHub
Couldn't find what you were looking for? We are happy to help you in the forum, on Slack or on IRC.