How to Install LAMP using Tasksel in Linux

LinuxserverApache Web Server

LAMP stack is a bunch of open source software that uses Linux as an operating system. LAMP is an abbreviation for Linux, Apache, MySQL and PHP. It is used to setup web development environment. Here, we will learn about – How you can install LAMP stack using tasksel on Ubuntu. For this article, we expect that you have a just right figuring out of Linux working method and its terminal. Installation of LAMP requires root privileges on the host machine.

Installing Process

To install Tasksel, use the following command –

$ sudo apt-get install tasksel

The sample output should be like this –

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
The following NEW packages will be installed:
   tasksel tasksel-data
0 upgraded, 2 newly installed, 0 to remove and 245 not upgraded.
Need to get 40.6 kB of archives.
After this operation, 369 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 xenial/main amd64 tasksel-data all 3.34ubuntu3 [8,082 B]
Get:2 xenial/main amd64 tasksel all 3.34ubuntu3 [32.5 kB]
Fetched 40.6 kB in 0s (72.3 kB/s)

To get more information about taskel, use the following command – Movie Rings (2017)

$ tasksel --help

The sample output should be like this –

tasksel install ...
tasksel remove ...
tasksel [options]
      -t, --test test mode; don't really do anything
         --new-install automatically install some tasks
         --list-tasks list tasks that would be displayed and exit
         --task-packages list available packages in a task
         --task-desc returns the description of a task

To install LAMP, use the following command –

$ sudo tasksel --new-install

The sample output should be like this –

Select LAMP Server and click on Ok Button.

While installing LAMP, it will ask for SQL password. Enter the required password and click on Ok button. After completion of installation, it will close the task and come back to Linux terminal.

To verify the installation of LAMP, open your favorite browser and enter the following URL.


The sample output should be like this –

In this article, we have learnt about – How to Install LAMP using tasksel, we will come up with more Linux based tricks and tips. Keep reading!

Published on 23-Jan-2020 15:47:48