To install LAMP stack on Ubuntu (+Server) from 10.04 you need first install taskel and then lamp-server for example:
Install taskel, follow terminal guides:
sudo apt-get install tasksel
Install LAMP stack package from Ubuntu repository:
sudo tasksel install lamp-server