Back to search
LAMP stack setup
wizard webInstall and configure Apache + MySQL/MariaDB + PHP
Required Packages
sudo apt install -y apache2 mariadb-server php libapache2-mod-php php-mysql Steps
Step 1 of 4 25%
Ubuntu/Debian = apt, Rocky/Alma/Amazon = dnf
Show all steps
Ubuntu/Debian = apt, Rocky/Alma/Amazon = dnf
Space-separated, e.g. php-mbstring php-xml php-curl
Generated Output
sudo apt update && sudo apt install -y apache2 mariadb-server php libapache2-mod-php php-mysql && sudo systemctl enable --now apache2 && sudo systemctl enable --now mariadb && sudo ufw allow 'Apache Full'