Install LAMP using TaskSel

An alternative way to install a LAMP server in Ubuntu is to use the Tasksel utility. Make sure Tasksel is installed by installing it first via apt-get. Once tasksel is installed, you can then install the lamp-server.

# install tasksel
sudo apt-get -y install tasksel
# install lamp server
sudo tasksel install lamp-server