- Instant help with your Php coding problems

Start PHP built in webserver

How to start PHP built in webserver?
php -S

-- OR --

php -S -t /path/to/document_root

PHP has a basic built-in webserver that can help you in some situations. You can start this webserver using php -S hostname:port syntax.

The web server runs only one single-threaded process, so PHP applications will stall if a request is blocked.

URI requests are served from the current working directory where PHP was started unless the-t option is used to specify an explicit document root. 

Share "How to start PHP built in webserver?"
webserver, php, built in, start, listen, port
Technical term:
Start PHP built in webserver
Interesting things
ChatGPT in a nutshell