ubuntu server lamp installation

Shell
sudo tasksel install lamp-server

Source

Also in Shell: