If you can run VMs on your machine the easiest way to install a lamp system is to use Ubuntu server. Select the LAMP and ssh server options on install and job done