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