<p>This just launches PHP's built in web server, documentation for it can be found here: <a href="https://www.php.net/manual/en/features.commandline.webserver.php" rel="nofollow noreferrer">https://www.php.net/manual/en/features.commandline.webserver.php</a></p>

<p>You can use <code>php -s localhost:8000</code> instead</p>

<p>You can see available settings by running <code>php -s</code></p>

<p>Yes you can run multiple versions on different ports</p>

<p>Hope this helps!</p>

CC BY-SA 4.0
2019-12-06T11:42:58.543Z
2019-12-06T11:42:58.543Z
dmatthams
<p>I just found this while using <code>./craft help</code> in the Craft CMS command line utilities:</p>

<pre><code>- serve                                      Runs the PHP built-in web server.
    serve/index (default)                    Runs PHP built-in web server.
</code></pre>

<ul>
<li>How to use this built-in web server?</li>
<li>How can I edit these web server
settings?</li>
<li>Can i use multiple of these web server at once?</li>
</ul>

<p>At this time of writing, I didn't find any documentation about that.</p>

<p>I'm using the latest version of Craft CMS (Craft Pro 3.3.17) under Mac OS (10.14.6).</p>

<php><server><cli>
How does the Craft CMS built-in web server works?
# How does the Craft CMS built-in web server works?

(Asked by: username_0 on 2019-12-06)

I just found this while using ./craft help in the Craft CMS command line utilities:
- serve                                      Runs the PHP built-in web server.
    serve/index (default)                    Runs PHP built-in web server.


How to use this built-in web server?
How can I edit these web server
settings?
Can i use multiple of these web server at once?

At this time of writing, I didn't find any documentation about that.
I'm using the latest version of Craft CMS (Craft Pro 3.3.17) under Mac OS (10.14.6).

**Tags:** php, server, cli

---

## 1 answers

### Answer by username_1 on 2019-12-06. Score: 3

This just launches PHP's built in web server, documentation for it can be found here: <https://www.php.net/manual/en/features.commandline.webserver.php>

You can use `php -s localhost:8000` instead

You can see available settings by running `php -s`

Yes you can run multiple versions on different ports

Hope this helps!


---

