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/whatever.com/httpdocs
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:
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.