This shell script will install (and uninstall) the LAMP Stack automatically on Ubuntu server
Download the following shell script on your Ubuntu server or clone it with the following command.
git clone https://github.com/arbabnazar/Automated-LAMP-Installation.git
chmod +x install.sh
sudo ./install.sh
chmod +x uninstall.sh
sudo ./uninstall.sh