Skip to content

How to run examples with build in PHP server (without Apache httpd)

Viktor Gamov edited this page Aug 28, 2013 · 2 revisions

php1

  1. Check version, if PHP version 5.4.0 or hi you can use a built-in web server php2

  2. You mast set address and port in -S option ,the -t option is used to specify an explicit document root

php5 3) afte start the terminal will show

php6

php7

  1. terminal will show all request form web browser

This web server is designed for developmental purposes only, and should not be used in production.

Contributed by https://github.com/bonm