PHP Built-In Web Server

LAMP Development just got a little easier with PHP version 5.4 and the in-built PHP web server. To test a PHP application we can now navigate to the directory on the filesytem:

cd ~/websites/

Then run the PHP Web Server:

php -S localhost:8000

In a web browser enter the location http://localhost:8000 to see your web application. The image below shows me running the Quayside Kitchens Dundalk website via the local PHP web server:

PHP Web Server

If your web application relies on a database you will still need that installed and running locally but the PHP Web Server takes the pain out of configuring a local Apache server for development/testing.


Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>