This version installs smoothly for me on PostgreSQL
[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
15// Copyright (C) 2001-2002 Martin Dougiamas http://dougiamas.com //\r
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
32///////////////////////////////////////////////////////////////////////////\r
33// First, you need to configure the database where all Moodle data //\r
34// will be stored. This database must already have been created //\r
35// and a username/password created to access it. If you specify mysql //\r
36// then Moodle can set up all your tables for you. If you try to use //\r
37// a different database you will need to set up all your tables by hand //\r
38// which could be a big job. See doc/install.html //\r
39\r
9fa49e22 40$CFG->dbtype = "mysql"; // mysql or postgres7 \r
076b2292 41$CFG->dbhost = "localhost"; // eg localhost \r
9fa49e22 42$CFG->dbname = "moodletest"; // eg moodle\r
076b2292 43$CFG->dbuser = "username";\r
44$CFG->dbpass = "password";\r
45\r
9fa49e22 46$CFG->prefix = "mdl_"; // Prefix value to use for all table names\r
47\r
076b2292 48\r
49///////////////////////////////////////////////////////////////////////////\r
50// Now you need to tell Moodle where it is located. Specify the full\r
51// web address where moodle has been installed (without trailing slash)\r
52\r
53$CFG->wwwroot = "http://example.com/moodle";\r
54\r
55\r
56///////////////////////////////////////////////////////////////////////////\r
57// Next, specify the full OS directory path to this same location\r
58// For Windows this might be something like "C:\apache\htdocs\moodle"\r
59\r
60$CFG->dirroot = "/web/moodle";\r
61\r
62\r
63///////////////////////////////////////////////////////////////////////////\r
64// Now you need a place where Moodle can save uploaded files. This\r
65// directory should be writeable by the web server user (usually 'nobody'\r
66// or 'apache'), but it should not be accessible directly via the web.\r
bb558093 67// On Windows systems you might specify something like "C:\moodledata"\r
076b2292 68\r
69$CFG->dataroot = "/home/moodledata";\r
70\r
71\r
72///////////////////////////////////////////////////////////////////////////\r
73// A very small percentage of servers have a bug which causes HTTP_REFERER\r
74// not to work. The symptoms of this are that you fill out the configure\r
75// form during Moodle setup but when hit save you find yourself on the \r
76// same form, unable to progress. If this happens to you, come back here\r
77// and set the following to true. Otherwise this should always be false.\r
78\r
79$CFG->buggy_referer = false;\r
80\r
81\r
82///////////////////////////////////////////////////////////////////////////\r
83// To continue the setup, use your web browser to go to your Moodle page //\r
84///////////////////////////////////////////////////////////////////////////\r
85\r
86$CFG->libdir = "$CFG->dirroot/lib"; // Do not change this\r
87require("$CFG->libdir/setup.php"); // Do not change this\r
88\r
89?>\r