Tasksel is a tool in Ubuntu / Debian, which helps to install multiple related packages as a co-ordinated task. Using Tasksel you can install the following stack / server related.
Basic Ubuntu server, OpenSSH server, DNS server, LAMP server, Mail server, Openstack, PostgreSQL database, ubuntustudio-graphics 2D/3D creation and editing suite, ubuntustudio-recording Audio recording and editing suite, Ubuntu desktop USB, ubuntustudio-video Video creation and editing suite and many more.
To Install Tasksel in Ubuntu 13.10 / 13.04 / 12.10 / 12.04
Open a terminal (Ctrl+alt+t) and run the following command, Issue the password for the user when prompted.
sudo apt-get install tasksel
To Install LAMP Server
Use the below command to install it.
sudo apt-get install lamp-server
just run tasksel using the below command
After executing the tasksel command, you will get a list of available packages that can be installed in your system. Choose LAMP Server using the arrow keys and spacebar to select it. Check the Screen Shots.
Now press enter to install it. After installation starts you will be asked to type password for the MySQL root user.
Repeat the password and press enter.
Hope this will be helpful for you!!!