LAMP {Linux, Apache, MySQL and PHP} is open source Web development platform that uses Linux operating systems, Apache as Web server, MySQL database management system and PHP as the object-oriented language.
Open terminal and Type the command :install it first with
sudo apt-get install taskselNow to install LAMP, type the taskel command in terminal :
sudo taskselAnd select LAMP Server: