unset($CFG); $CFG->dbtype = 'mysql'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'moodle'; $CFG->dbuser = 'moodle'; $CFG->dbpass = 'moodle'; $CFG->prefix = 'mdl_'; $CFG->dbpersist = "false"; $CFG->wwwroot = 'http://localhost/moodle'; $CFG->dirroot = '/usr/share/moodle'; $CFG->dataroot = '/var/lib/moodle'; $CFG->directorypermissions = 0750; $CFG->admin = 'admin'; $CFG->respectsessionsettings = true; if (file_exists("$CFG->dirroot/lib/setup.php")) { // Do not edit include_once("$CFG->dirroot/lib/setup.php"); } else { if ($CFG->dirroot == dirname(__FILE__)) { echo "
Could not find this file: $CFG->dirroot/lib/setup.php
"; echo "Are you sure all your files have been uploaded?
"; } else { echo "Error detected in config.php
"; echo "Error in: \$CFG->dirroot = '$CFG->dirroot';
"; echo "Try this: \$CFG->dirroot = '".dirname(__FILE__)."';
"; } die; } ?>