Install LAMP on Ubuntu
Linux, Apache, MariaDB (or MySQL) and PHP
These steps work with both Ubuntu 18.04 LTS and Ubuntu 20.04 LTS
I’ve included steps for both MariaDB and MySQL.
sudo apt update -y sudo apt upgrade -y sudo apt install apache2 -y # MariaDB sudo apt install mariadb-server -y # MySQL sudo apt install mysql-server -y sudo apt install php libapache2-mod-php php-mysql sudo a2enmod ssl Other useful modules: sudo apt install php-gd -y # Restart Apache sudo systemctl restart apache2