-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php.sample
42 lines (34 loc) · 1.05 KB
/
config.php.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'db_host';
$CFG->dbname = 'moodle';
$CFG->dbuser = 'moodle_user';
$CFG->dbpass = 'moodle';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '',
'dbsocket' => '',
// 'dbcollation' => 'utf8mb4_unicode_ci',
);
$CFG->wwwroot = 'http://'.$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'];
$CFG->dataroot = '/var/www/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
// This is for jMeter testing
$CFG->tool_generator_users_password = 'testing';
if(!isset($CFG->mis_host)){
// MIS common configuration
$CFG->mis_host = $CFG->dbhost;
$CFG->mis_dbase = 'qmu_mis';
$CFG->mis_dbtype = 'mysqli';
$CFG->mis_user = 'moodle_user';
$CFG->mis_pass = 'moodle';
}
require_once(__DIR__ . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!