ujaqka
Last Updated: February 25, 2016
·
440
· originell
B7aaf37de0dd4c9384d15a61995f6b27

PHP Development Server

php

PHP 5.4+ has an integrated web server. Basically in the same vain as python's SimpleHTTPServer.

php -S localhost:8000

This should allow you a pretty quick start.

Note that I'm frequently running into problems with it binding to localhost. Replacing it with the typical 127.0.0.1 works better for me (OSX 10.8).

Also, if you want it to serve on all interfaces (-> your LAN/WAN IP) just use 0.0.0.0:8000.

Say Thanks
Respond