To install LAMP, first update the OS and then install Apache, MySQL and PHP in that order. Run the below commands to achieve this.
sudo apt update
sudo apt upgrade
sudo apt install apache2
sudo ufw app list
sudo ufw app info "Apache Full"
sudo ufw allow in "Apache Full"
sudo apt install mysql-server
#follow the instructions to set root password and secure MySQL
sudo apt install php libapache2-mod-php php-mysql
sudo systemctl restart apache2
sudo systemctl status apache2
You can install additional php modules as required using the same
apt install command.
If you still can't find an answer to what you're looking for, or you have a specific question, open a new ticket and we'd be happy to help!Contact Us