Install LAMP Quickly using tasksel on Debian, Ubuntu & LinuxMint

Tasksel is a handy tool for Debian/Ubuntu systems which will install Group of Software in a single click on your system. Tasks are defined in .desc files and located at /usr/share/tasksel.

Whoever new to Linux, who don’t have much experience on Linux, web developers, who’s very lazy to run morethan one command to install LAMP Server, then you are in the right place to achive your target.

Make sure, your system should have tasksel command installed before proceeding LAMP installation. If no, follow the below article to install it.

Install tasksel on Debian/Ubuntu/LinuxMint

Open terminal and fire below single command to install LAMP, it requires privillegs to initiate installation. While processing installation, it will ask you to set MySQL password, after installation complete, you can directly access the LAMP.

$ sudo tasksel install lamp-server

Installation begin.
tasksel-lamp-1

Enter the descired MySQL password.
tasksel-lamp-2

Repeat the MySQL password.
tasksel-lamp-3

Installation underprocessing.
tasksel-lamp-4

Check Web Server (Apache) default page.
tasksel-lamp-5

Cross check, whether MySQL get installed or not.
tasksel-lamp-6

Create sample php page, to check wheter PHP is working with Apache or not.

[Creating php info file]
$ sudo nano /var/www/html/phpinfo.php
<?php phpinfo(); ?>

[Restart apache2 service on systemd]
$ sudo systemctl restart apache2.service

[Restart apache2 service on SysVinit]
$ sudo service apache2 restart

tasksel-lamp-7

Enjoy…)

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...