LAMP stack is comprised of Apache, MySQL and PHP installed on a Linux Operating System. Therefore LAMP stands for Linux Apache MySQL and PHP. These are the free Open Source softwares that are commonly used to create a deployment environment.
To install all of these packages (Apache, MySQL, and PHP) on Ubuntu You have to go through a series of CLI commands. Therefore I have created a bash script to save my time.
Here is an easy way to install Apache2, MySQL 5.7, and PHP7.2 on Ubuntu
Use the following two commands to download and run the script.
sudo chmod -x ./lamp_setup.sh && sudo sh ./lamp_setup.sh