DISCLAIMER:
do not use the script in a production environment. The script is for development purposes.
Before installing the stack, the script delete all data of apache, mysql, php and phpmyadmin.
Clone this repository
git clone https://github.com/manuelbosi/lamp-installer.git
Make the script executable
cd lamp-installer && chmod +x lamp-installer.sh
Edit .env file with your configuration
# PHP Configuration
PHP_VERSION=8.0
# MYSQL Configuration
ROOT_PASSWORD=root_user_password
REMOVE_ANONYMOUS_USER=yes
REMOVE_REMOTE_ROOT=yes
REMOVE_TEST_DB=yes
# PHPMYADMIN Configuration
PHPMYADMIN_VERSION=5.1.1
BLOWFISH_SECRET=
Run the script
sudo ./lamp-installer.sh
Tested on Ubuntu 20.04
Check the .env file for more details on configuration