summaryrefslogtreecommitdiff
path: root/www-apps/moodle/files/config.php
blob: c959b4aa457e48b3a96856dfbc2de2971934c925 (plain)
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
<?PHP
unset($CFG);
$CFG = new stdClass();

$CFG->dbtype    = 'mydb';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'moodle_db';
$CFG->dbuser    = 'moodle_user';
$CFG->dbpass    = 'moodle_pass';
$CFG->prefix    = 'mdl_';

$CFG->dbpersist = false;

$CFG->wwwroot   = 'http://localhost/moodle';
$CFG->dirroot   = '/var/www/localhost/htdocs/moodle';
$CFG->dataroot  = '/var/www/localhost/moodle' ;

$CFG->directorypermissions = 02777;

$CFG->admin = 'admin';

if (file_exists("$CFG->dirroot/lib/setup.php"))  {
    include_once("$CFG->dirroot/lib/setup.php");
} else {
    echo "<p>Could not find this file: $CFG->dirroot/lib/setup.php</p>";
    echo "<p>Please supply this file or reinstall moodle</p>";
    die;
}
?>