mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-06 14:06:34 +02:00
20 lines
540 B
Markdown
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
|