[https://rbgeek.wordpress.com/2014/08/07/automated-installation-of-lamp-stack-on-ubuntu-server/] (https://rbgeek.wordpress.com/2014/08/07/automated-installation-of-lamp-stack-on-ubuntu-server/)
In this tutorial, I’ll show you that how we can install the LAMP stack on Ubuntu Server interactively.
First create the script :
vi lamp.sh
Then set the execute permission for your shell script:
chmod +x lamp.sh
Now, execute the shell script as sudo user:
sudo ./lamp.sh