- Get the Script form Github
wget https://raw.githubusercontent.com/stefanpolzer/lamp-installer/master/ubuntu/install.sh
- Change the file permission
chmod +x install.sh
- Run the shell script
sudo ./install.sh
You have now access to all commands
sudo install-amp
You have the option between php-fpm , apache2-mod or both.
You can also choose if you want to enable Apache2 RewriteEngin and/or SSL
At the end you can optional install vim, git, composer, phpmyadmin and certbot used for Let's Encrypt.
Maybe some of this additionals Programs are already installed on your Server
Run the shell script
sudo new-apache2-vhost
Run the shell script
sudo new-mysql-db dbname username