diff options
Diffstat (limited to 'www-apps/moodle/files/config-r1.php')
-rw-r--r-- | www-apps/moodle/files/config-r1.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/www-apps/moodle/files/config-r1.php b/www-apps/moodle/files/config-r1.php new file mode 100644 index 000000000000..7eef454b7dfc --- /dev/null +++ b/www-apps/moodle/files/config-r1.php @@ -0,0 +1,36 @@ +<?php +unset($CFG); // Ignore this line +global $CFG; // This is necessary here for PHPUnit execution +$CFG = new stdClass(); + +$CFG->dbtype = 'mydb'; // 'pgsql', 'mariadb', 'mysqli', 'mssql', 'sqlsrv' or 'oci' +$CFG->dblibrary = 'native'; // 'native' only at the moment +$CFG->dbhost = 'localhost'; // eg 'localhost' or 'db.isp.com' or IP +$CFG->dbname = 'moodle'; // database name, eg moodle +$CFG->dbuser = 'username'; // your database username +$CFG->dbpass = 'password'; // your database password +$CFG->prefix = 'mdl_'; // prefix to use for all table names +$CFG->dboptions = array( + 'dbpersist' => false, // should persistent database connections be + // used? set to 'false' for the most stable + // setting, 'true' can improve performance + // sometimes + 'dbsocket' => false, // should connection via UNIX socket be used? + // if you set it to 'true' or custom path + // here set dbhost to 'localhost', + // (please note mysql is always using socket + // if dbhost is 'localhost' - if you need + // local port connection use '127.0.0.1') + 'dbport' => '', // the TCP port number to use when connecting + // to the server. keep empty string for the + // default port +); + +$CFG->wwwroot = 'http://example.com/moodle'; +$CFG->dataroot = '/home/example/moodledata'; +$CFG->directorypermissions = 02777; + +$CFG->admin = 'admin'; + +require_once(dirname(__FILE__) . '/lib/setup.php'); // Do not edit +?> |