2 ///////////////////////////////////////////////////////////////////////////
4 // Moodle configuration file //
6 // This file should be renamed "config.php" in the top-level directory //
8 ///////////////////////////////////////////////////////////////////////////
10 // NOTICE OF COPYRIGHT //
12 // Moodle - Modular Object-Oriented Dynamic Learning Environment //
13 // http://moodle.com //
15 // Copyright (C) 2001-2002 Martin Dougiamas http://dougiamas.com //
17 // This program is free software; you can redistribute it and/or modify //
18 // it under the terms of the GNU General Public License as published by //
19 // the Free Software Foundation; either version 2 of the License, or //
20 // (at your option) any later version. //
22 // This program is distributed in the hope that it will be useful, //
23 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
24 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
25 // GNU General Public License for more details: //
27 // http://www.gnu.org/copyleft/gpl.html //
29 ///////////////////////////////////////////////////////////////////////////
32 ///////////////////////////////////////////////////////////////////////////
33 // First, you need to configure the database where all Moodle data //
34 // will be stored. This database must already have been created //
35 // and a username/password created to access it. If you specify mysql //
36 // then Moodle can set up all your tables for you. If you try to use //
37 // a different database you will need to set up all your tables by hand //
38 // which could be a big job. See doc/install.html //
40 $CFG->dbtype
= "mysql"; // eg mysql (postgres7, oracle, access etc)
41 $CFG->dbhost
= "localhost"; // eg localhost
42 $CFG->dbname
= "moodle"; // eg moodle
43 $CFG->dbuser
= "username";
44 $CFG->dbpass
= "password";
47 ///////////////////////////////////////////////////////////////////////////
48 // Now you need to tell Moodle where it is located. Specify the full
49 // web address where moodle has been installed (without trailing slash)
51 $CFG->wwwroot
= "http://example.com/moodle";
54 ///////////////////////////////////////////////////////////////////////////
55 // Next, specify the full OS directory path to this same location
56 // For Windows this might be something like "C:\apache\htdocs\moodle"
58 $CFG->dirroot
= "/web/moodle";
61 ///////////////////////////////////////////////////////////////////////////
62 // Now you need a place where Moodle can save uploaded files. This
63 // directory should be writeable by the web server user (usually 'nobody'
64 // or 'apache'), but it should not be accessible directly via the web.
66 $CFG->dataroot
= "/home/moodledata";
69 ///////////////////////////////////////////////////////////////////////////
70 // To continue the setup, use your web browser to go to your Moodle page //
71 ///////////////////////////////////////////////////////////////////////////
73 $CFG->libdir
= "$CFG->dirroot/lib"; // Do not change this
74 require("$CFG->libdir/setup.php"); // Do not change this