moodle/config.php

49 lines
1.5 KiB
PHP
Raw Normal View History

2001-11-22 06:23:56 +00:00
<?PHP // $Id$
///////////////////////////////////////////////////////////////////////////
//
// Moodle configuration file
2001-11-25 15:52:38 +00:00
//
// This file should be located in the top-level directory.
2001-11-22 06:23:56 +00:00
//
///////////////////////////////////////////////////////////////////////////
// Site configuration variables are all stored in the CFG object.
// First, we need to configure the database where all Moodle data
// will be stored. This database must already have been created
// and a username/password created to access it. See INSTALL doc.
$CFG->dbtype = "mysql"; // eg mysql, postgres, oracle, access etc
$CFG->dbhost = "localhost"; // eg localhost
$CFG->dbname = "moodle"; // eg moodle
2001-11-25 15:50:17 +00:00
$CFG->dbuser = "username";
$CFG->dbpass = "password";
2001-11-22 06:23:56 +00:00
// Next you need to tell Moodle where it is, and where it can save files.
2001-11-25 15:50:17 +00:00
$CFG->wwwroot = "http://example.com/moodle";
$CFG->dirroot = "/web/moodle";
$CFG->dataroot = "/home/moodledata"; // Web-server writeable
2001-11-22 06:23:56 +00:00
// 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). Default: "localhost".
2001-11-25 15:50:17 +00:00
$CFG->smtphost = "mail.example.com";
2001-11-22 06:23:56 +00:00
// You should not need to change anything below this line
///////////////////////////////////////////////////////////////////////////
$CFG->libdir = "$CFG->dirroot/lib";
require("$CFG->libdir/setup.php"); // Sets up all libraries, sessions etc
?>