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.

[ac-button size=”large” color=”orange” style=”flat” icon=”fa-link” url=”https://www.2daygeek.com/tasksel-install-group-of-software-in-a-single-click-or-single-command-on-debian-ubuntu/” target=”_blank”]Install tasksel on Debian/Ubuntu/LinuxMint[/ac-button]

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…)

About Magesh Maruthamuthu

Love to play with all Linux distribution

View all posts by Magesh Maruthamuthu

2 Comments on “Install LAMP Quickly using tasksel on Debian, Ubuntu & LinuxMint”

Leave a Reply

Your email address will not be published. Required fields are marked *