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=”” 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.

Enter the descired MySQL password.

Repeat the MySQL password.

Installation underprocessing.

Check Web Server (Apache) default page.

Cross check, whether MySQL get installed or not.

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



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 *