Skip to content

Hoe Moodle LMS te installeren op Ubuntu 24.04 Server

Cloud Infrastructure Expert
Hoe Moodle LMS te installeren op Ubuntu 24.04 Server

 

 

In deze gids leer je hoe je Moodle LMS kunt installeren op een server VPS met Ubuntu 24.04. Volg de onderstaande stappen om Moodle succesvol in te stellen.

Vereisten

  • Een server VPS met Ubuntu 24.04
  • Toegang tot de terminal (SSH)
  • Basiskennis van de commandoregel

Stap 1: Systeemupdates uitvoeren

Voordat je begint met de installatie, zorg ervoor dat je systeem up-to-date is. Voer de volgende commando’s uit:

        sudo apt update
        sudo apt upgrade
    

Stap 2: Benodigde Pakketten Installeren

Installeer de noodzakelijke pakketten voor Moodle:

        sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-xml php-gd php-curl php-zip
    

Stap 3: MySQL Database en Gebruiker Aanmaken

Log in op de MySQL-shell:

        sudo mysql -u root -p
    

Voer de volgende commando’s uit om een database en gebruiker aan te maken:

        CREATE DATABASE moodle;
        CREATE USER 'moodleuser'@'localhost' IDENTIFIED BY 'moodlepassword';
        GRANT ALL PRIVILEGES ON moodle.* TO 'moodleuser'@'localhost';
        FLUSH PRIVILEGES;
        EXIT;
    

Stap 4: Moodle Downloaden

Download de nieuwste versie van Moodle:

        wget https://download.moodle.org/latest.zip
    

Pak het .zip-bestand uit en verplaats de Moodle-bestanden naar de webroot:

        unzip latest.zip
        sudo mv moodle /var/www/html/
    

Stap 5: Configuratiebestand Aanmaken

Maak een configuratiebestand aan voor Moodle:

        sudo cp /var/www/html/moodle/config-dist.php /var/www/html/moodle/config.php
    

Open het bestand en voeg de database-informatie toe:

        sudo nano /var/www/html/moodle/config.php
    

Zoek naar de volgende regels en vul de databasegegevens in:

  • $$CFG->dbtype = ‘mysqli’;
  • $$CFG->dbname = ‘moodle’;
  • $$CFG->dbuser = ‘moodleuser’;
  • $$CFG->dbpass = ‘moodlepassword’;

Stap 6: Bestemmingsmap Permissies Instellen

Stel de juiste permissies in voor de Moodle-map:

        sudo chown -R www-data:www-data /var/www/html/moodle
        sudo chmod -R 755 /var/www/html/moodle
    

Stap 7: Moodle Installeren via de Webbrowser

Ga naar je webbrowser en navigeer naar http:///moodle. Volg de instellingen om Moodle te configureren.

Conclusie

Je hebt met succes Moodle LMS geïnstalleerd op een server VPS met Ubuntu 24.04. Veel succes met je leeromgeving!

Windows VPS Deutschland

Windows VPS España

Windows VPS Nederland

Windows VPS Italia

Windows VPS Portugal

VPS Windows Italia

Windows VPS

Windows VPS

Windows VPS Sverige

Windows VPS Norge

Windows VPS

Windows VPS Türkiye

Windows RDS (Remote Desktop Services)

Windows VPS

Explore more

More on this topic

Netcloud24
Netcloud24
Cloud Infrastructure Expert · NetCloud24

Comments are closed.