Moodle

Moodle is an open source learning platform.

Deploy is at moodle.taltech.ee.

Source code is in github.

Installing moodle

Installing PHP 7.4

Installing MariaDB 10.4

Load users:

CREATE DATABASE moodle CHARACTER SET = 'utf8mb4' COLLATE = 'utf8mb4_general_ci';

CREATE USER 'moodle'@localhost IDENTIFIED BY '<PASSWORD>';
CREATE USER 'moodle'@'%' IDENTIFIED BY '<PASSWORD>';

GRANT ALL privileges ON `moodle`.* TO 'moodle'@localhost;
GRANT ALL privileges ON `moodle`.* TO 'moodle'@'%';

FLUSH PRIVILEGES;

Installing Moodle 3.9.1

After cloning Moodle and following the steps create a config.php file to moodle root directory with contents:

<?php  // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype    = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'moodle';
$CFG->dbuser    = 'moodle';
$CFG->dbpass    = '<PASSWORD>';
$CFG->prefix    = '';
$CFG->dboptions = array (
  'dbpersist' => 0,
  'dbport' => 3306,
  'dbsocket' => '',
  'dbcollation' => 'utf8mb4_general_ci',
);
$CFG->wwwroot   = 'http://<PUBLIC_IP>';
$CFG->dataroot  = '/var/moodledata/';
$CFG->admin     = 'admin';
$CFG->directorypermissions = 02777;
require_once('lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!

Then run

chmod -R 777 /var/moodledata/
sudo systemctl restart apache2

Moodle plugins

Charon plugin connects Arete with Moodle.