LAMP stack is contains Apache, MySQL and PHP installed on a Linux Operating System. Therefore LAMP stands for Linux Apache MySQL and PHP.
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.
# wget https://gist.githubusercontent.com/amarjit-singh/d3f72725751adcde3e753b6e13704e36/raw/87feedf65e51c07a6debf8c4a2c71ce4a9b66b24/lamp_setup.sh sudo chmod -x ./lamp_setup.sh && sudo sh ./lamp_setup.sh #