LAMP stack consist of four layers:
Linux – which you clearly have.
Apache– Its a Free & open source web server software.
MySql – It is a relational Database system.
Php – Most commonly used Server side language
To install Lamp the easiest way we need to Install Tasksel
sudo apt install tasksel
Now install lamp Server
sudo tasksel install lamp-server