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