Sometimes you need to setup a website to check out something real quick. This is done without much configuration in xamp or wamp in windows. However under a LAMP stack you have to manually set up the website in apache to run locally. This script will help you speed up the process a bit. For what it's worth it is used under ubuntu.
Find the Gist Here
Copy the above bash script in a file e.g. createsite and set the permissions -right click "Properties > Permissions > Check Execute"- and run it by typing ./createsite in the terminal. Note that you will have to change the path to the document root of your system first.