Installing LAMP stack

The easiest way to achieve this (and I'm all for an easy life):
sudo tasksel

Then find the LAMP server option, tick it, and select OK