How to Install LAMP Quickly using tasksel on Ubuntu and LinuxMint:
Tasksel is a command line utility for Debian based systems for installing a group of packages used for specific tasks. Tasksel provides a number of group packages to configure your server quickly like “LAMP Server”, “DNS Server”, “Mail Server” and “Tomcat Java server” etc. This article will help you to install tasksel and then install LAMP quickly using tasksel on Debian, Ubuntu and LinuxMint operating systems.
tasksel package is available under default repositories on most of Ubuntu, Debian and LinuxMint operating systems. Use the following command to install it.
$ sudo apt-get install tasksel
Install LAMP using Tasksel
After installing tasksel, let’s install LAMP setup on your Ubuntu or LinuxMint system. Execute tasksel command in terminal with sudo access.
$ sudo tasksel
Now select the LAMP server when installer will prompt like below and press OK.
During installation of MySQL Server by tasksel, It will prompt for MySQL root account password twice. Please input password.
and your setup will be completed within few minutes.
Test LAMP Stack
Congratulation’s your LAMP setup has completed. To verify open your web browser and access localhost. You will get screen like below. It showing that Apache is working fine.
Now create a phpinfo file
/var/www/html/phpinfo.php using following code.
<?php phpinfo(); ?>
and access this file in browser, You will get something like below screen.
Note: This article has been tested with Ubuntu 14.04.2 operating system.
Was this Tutorial helpful? Help others share on Facebook, Twitter, and Google Plus!