workshop: addition of peer agreement
[moodle.git] / config-dist.php
CommitLineData
076b2292 1<?PHP // $Id$\r
2///////////////////////////////////////////////////////////////////////////\r
3// //\r
4// Moodle configuration file //\r
5// //\r
6// This file should be renamed "config.php" in the top-level directory //\r
7// //\r
8///////////////////////////////////////////////////////////////////////////\r
9// //\r
10// NOTICE OF COPYRIGHT //\r
11// //\r
12// Moodle - Modular Object-Oriented Dynamic Learning Environment //\r
13// http://moodle.com //\r
14// //\r
4e042a3e 15// Copyright (C) 2001-2003 Martin Dougiamas http://dougiamas.com //\r
076b2292 16// //\r
17// This program is free software; you can redistribute it and/or modify //\r
18// it under the terms of the GNU General Public License as published by //\r
19// the Free Software Foundation; either version 2 of the License, or //\r
20// (at your option) any later version. //\r
21// //\r
22// This program is distributed in the hope that it will be useful, //\r
23// but WITHOUT ANY WARRANTY; without even the implied warranty of //\r
24// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //\r
25// GNU General Public License for more details: //\r
26// //\r
27// http://www.gnu.org/copyleft/gpl.html //\r
28// //\r
29///////////////////////////////////////////////////////////////////////////\r
30\r
31\r
4e042a3e 32//=========================================================================\r
33// 1. DATABASE SETUP\r
34//=========================================================================\r
076b2292 35// First, you need to configure the database where all Moodle data //\r
36// will be stored. This database must already have been created //\r
4e042a3e 37// and a username/password created to access it. //\r
38// //\r
39// mysql - the prefix is optional, but useful when installing //\r
40// into databases that already contain tables. //\r
704ac9fe 41//\r
4e042a3e 42// postgres7 - the prefix is REQUIRED, regardless of whether the //\r
704ac9fe 43// database already contains tables. //\r
076b2292 44\r
4e042a3e 45$CFG->dbtype = "mysql"; // mysql or postgres7 (for now)\r
46$CFG->dbhost = "localhost"; // eg localhost or db.isp.com \r
47$CFG->dbname = "moodle"; // database name, eg moodle\r
48$CFG->dbuser = "username"; // your database username\r
49$CFG->dbpass = "password"; // your database password\r
076b2292 50\r
4e042a3e 51$CFG->prefix = "mdl_"; // Prefix to use for all table names\r
9fa49e22 52\r
076b2292 53\r
4e042a3e 54//=========================================================================\r
55// 2. WEB SITE LOCATION\r
56//=========================================================================\r
076b2292 57// Now you need to tell Moodle where it is located. Specify the full\r
704ac9fe 58// web address to where moodle has been installed. If your web site \r
59// is accessible via multiple URLs then choose the most natural one \r
60// that your students would use. Do not include a trailing slash.\r
076b2292 61\r
62$CFG->wwwroot = "http://example.com/moodle";\r
63\r
64\r
4e042a3e 65//=========================================================================\r
66// 3. SERVER FILES LOCATION\r
67//=========================================================================\r
076b2292 68// Next, specify the full OS directory path to this same location\r
704ac9fe 69// For Windows this might be something like this:\r
70//\r
71// $CFG->dirroot = "C:\Program Files\Easyphp\www\moodle"\r
72//\r
1685298e 73// NOTE: Make sure all the upper/lower case is EXACTLY the same as it is \r
74// on your computer otherwise you may experience some problems (bug in PHP)\r
076b2292 75\r
76$CFG->dirroot = "/web/moodle";\r
77\r
78\r
4e042a3e 79//=========================================================================\r
80// 4. DATA FILES LOCATION\r
81//=========================================================================\r
076b2292 82// Now you need a place where Moodle can save uploaded files. This\r
704ac9fe 83// directory should be readable AND WRITEABLE by the web server user \r
84// (usually 'nobody' or 'apache'), but it should not be accessible \r
85// directly via the web.\r
86//\r
4e042a3e 87// - On hosting systems you might need to make sure that your "group" has\r
88// no permissions at all, but that "others" have full permissions.\r
704ac9fe 89//\r
4e042a3e 90// - On Windows systems you might specify something like "C:\moodledata"\r
076b2292 91\r
92$CFG->dataroot = "/home/moodledata";\r
93\r
94\r
4e042a3e 95//=========================================================================\r
be09831a 96// 5. DATA FILES PERMISSIONS\r
97//=========================================================================\r
98// The following parameter sets the permissions of new directories\r
99// created by Moodle within the data directory. The format is in \r
100// octal format (as used by the Unix utility chmod, for example).\r
101// The default is usually OK, but you may want to change it to 0750 \r
102// if you are concerned about world-access to the files (you will need\r
103// to make sure the web server process (eg Apache) can access the files.\r
104\r
105$CFG->directorypermissions = 0777;\r
106\r
107\r
108\r
109//=========================================================================\r
110// 6. ADMIN LOCATION (most people can just ignore this setting)\r
111//=========================================================================\r
112// A very few webhosts use /admin as a special URL for you to access a \r
113// control panel or something. Unfortunately this conflicts with the \r
114// standard location for the Moodle admin pages. You can fix this by \r
115// renaming the admin directory in your installation, and putting that \r
116// new name here. eg "moodleadmin". This will fix admin links in Moodle.\r
117\r
118$CFG->admin = "admin";\r
119\r
120\r
121//=========================================================================\r
122// 7. TROUBLESHOOTING (most people can just ignore this setting)\r
4e042a3e 123//=========================================================================\r
076b2292 124// A very small percentage of servers have a bug which causes HTTP_REFERER\r
125// not to work. The symptoms of this are that you fill out the configure\r
126// form during Moodle setup but when hit save you find yourself on the \r
127// same form, unable to progress. If this happens to you, come back here\r
128// and set the following to true. Otherwise this should always be false.\r
129\r
130$CFG->buggy_referer = false;\r
131\r
132\r
4e042a3e 133//=========================================================================\r
be09831a 134// ALL DONE! To continue your setup, visit your Moodle web page.\r
4e042a3e 135//=========================================================================\r
136\r
1685298e 137require_once("$CFG->dirroot/lib/setup.php"); // Do not change this\r
076b2292 138\r
4e042a3e 139// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES, \r
140// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.\r
076b2292 141?>\r