diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-apps/moodle/files/config.php |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-apps/moodle/files/config.php')
-rw-r--r-- | www-apps/moodle/files/config.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www-apps/moodle/files/config.php b/www-apps/moodle/files/config.php new file mode 100644 index 000000000000..c959b4aa457e --- /dev/null +++ b/www-apps/moodle/files/config.php @@ -0,0 +1,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; +} +?> |