Files
php-the-right-way/_posts/01-03-01-Built-in-Web-Server.md
2023-01-17 23:57:25 +01:00

20 lines
540 B
Markdown

---
title: Built-in Web Server
isChild: true
anchor: builtin_web_server
---
## Built-in web server {#builtin_web_server_title}
With PHP 5.4 or newer, you can start learning PHP without installing and configuring a full-fledged web server.
To start the server, run the following command from your terminal in your project's web root:
{% highlight console %}
> php -S localhost:8000
{% endhighlight %}
* [Learn about the built-in, command line web server][cli-server]
[cli-server]: https://www.php.net/features.commandline.webserver