This guide follows the official Moodle installation steps.
cd /var/www
wget https://download.moodle.org/latest.tgz
sudo tar -xzf latest.tgz
sudo chown -R www-data:www-data /var/www/moodle
sudo mysql -u root -p
CREATE DATABASE moodle CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER 'moodle'@'localhost' IDENTIFIED BY 'StrongPassword123!';
GRANT ALL PRIVILEGES ON moodle.* TO 'moodle'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Point your virtual host to /var/www/moodle and enable HTTPS.
Open your site URL in a browser and follow the Moodle installer.
Check the Moodle installation guide or reach out via our contact page.