- Instant help with your Php coding problems

Start PHP built in webserver

Question:
How to start PHP built in webserver?
Answer:
php -S 127.0.0.1:5555

-- OR --

php -S 127.0.0.1:5555 -t /path/to/document_root
Description:

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?"
Tags:
webserver, php, built in, start, listen, port
Technical term:
Start PHP built in webserver