Changed all references of %e to %d to fix strftime on Windows
[moodle.git] / config-dist.php
CommitLineData
ede50d6f 1<?PHP // $Id$
2///////////////////////////////////////////////////////////////////////////
74944b73 3// //
4// Moodle configuration file //
5// //
6// This file should be renamed "config.php" in the top-level directory //
7// //
ede50d6f 8///////////////////////////////////////////////////////////////////////////
74944b73 9// //
10// NOTICE OF COPYRIGHT //
11// //
12// Moodle - Modular Object-Oriented Dynamic Learning Environment //
13// http://moodle.com //
14// //
15// Copyright (C) 2001-2002 Martin Dougiamas http://dougiamas.com //
16// //
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. //
21// //
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: //
26// //
27// http://www.gnu.org/copyleft/gpl.html //
28// //
29///////////////////////////////////////////////////////////////////////////
30
31
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 //
39
40$CFG->dbtype = "mysql"; // eg mysql (postgres7, oracle, access etc)
41$CFG->dbhost = "localhost"; // eg localhost
42$CFG->dbname = "moodle"; // eg moodle
ede50d6f 43$CFG->dbuser = "username";
44$CFG->dbpass = "password";
45
46
74944b73 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)
ede50d6f 50
51$CFG->wwwroot = "http://example.com/moodle";
515b9f30 52
53
74944b73 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"
515b9f30 57
ede50d6f 58$CFG->dirroot = "/web/moodle";
59
60
74944b73 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.
ede50d6f 65
66$CFG->dataroot = "/home/moodledata";
67
68
b9b2750a 69///////////////////////////////////////////////////////////////////////////
70// A very small percentage of servers have a bug which causes HTTP_REFERER
71// not to work. The symptoms of this are that you fill out the configure
72// form during Moodle setup but when hit save you find yourself on the
73// same form, unable to progress. If this happens to you, come back here
74// and set the following to true. Otherwise this should always be false.
75
76$CFG->buggy_referer = false;
77
78
74944b73 79///////////////////////////////////////////////////////////////////////////
80// To continue the setup, use your web browser to go to your Moodle page //
ede50d6f 81///////////////////////////////////////////////////////////////////////////
82
74944b73 83$CFG->libdir = "$CFG->dirroot/lib"; // Do not change this
84require("$CFG->libdir/setup.php"); // Do not change this
ede50d6f 85
86?>