HOWTOs / Running Bolt using PHP's built-in web server
Note: You are currently reading the documentation for Bolt 3.3. Looking for the documentation for Bolt 3.6 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
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.