dbtype = "mysql"; // eg mysql, postgres, oracle, access etc $CFG->dbhost = "localhost"; // eg localhost $CFG->dbname = "moodle"; // eg moodle $CFG->dbuser = "username"; $CFG->dbpass = "password"; // Next you need to tell Moodle where it is located $CFG->wwwroot = "http://example.com/moodle"; $CFG->dirroot = "/web/moodle"; // And where it can save files. This directory should be writeable // by the web server user (usually 'nobody' or 'apache'), but it should // not be accessible directly via the web. $CFG->dataroot = "/home/moodledata"; // Choose a theme from the "themes" folder. Default theme is "standard". $CFG->theme = "standard"; // Give the full name (eg mail.example.com) of an SMTP server that the // web server machine has access to (to send mail). $CFG->smtphost = "mail.example.com"; // You should not need to change anything else. To continue setting up // Moodle, use your web browser to go to the moodle/admin web page. /////////////////////////////////////////////////////////////////////////// $CFG->libdir = "$CFG->dirroot/lib"; require("$CFG->libdir/setup.php"); // Sets up all libraries, sessions etc ?>