Last Updated: February 25, 2016
· originell

PHP Development Server


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 works better for me (OSX 10.8).

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