Skip to content

Instantly share code, notes, and snippets.

@ahwelp
Created January 23, 2023 13:55
Show Gist options
  • Save ahwelp/0ac74eaf3533bcd5fc040770ebf3718f to your computer and use it in GitHub Desktop.
Save ahwelp/0ac74eaf3533bcd5fc040770ebf3718f to your computer and use it in GitHub Desktop.
Moodle default config.php
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'pgsql';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'moodle';
$CFG->dbpass = 'moodle';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '',
'dbsocket' => '',
);
$CFG->wwwroot = 'https://localhost:8080/moodle';
$CFG->dataroot = '/var/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
require_once(__DIR__ . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment