2002-05-17 13:38:05 +00:00
|
|
|
<?PHP // $Id$
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Moodle configuration file
|
|
|
|
//
|
|
|
|
// This file should be located in the top-level directory.
|
|
|
|
//
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// NOTICE OF COPYRIGHT
|
|
|
|
//
|
|
|
|
// Moodle - Modular Object-Oriented Dynamic Learning Environment
|
|
|
|
// http://moodle.com
|
|
|
|
//
|
|
|
|
// Copyright (C) 2001 Martin Dougiamas http://dougiamas.com
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details:
|
|
|
|
//
|
|
|
|
// http://www.gnu.org/copyleft/gpl.html
|
|
|
|
//
|
|
|
|
////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Site configuration variables are all stored in the CFG object.
|
|
|
|
|
|
|
|
// First, you 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 doc/INSTALL.
|
|
|
|
|
2002-08-08 02:11:16 +00:00
|
|
|
$CFG->dbtype = "mysql"; // eg mysql (postgres7, oracle, access etc coming soon)
|
2002-05-17 13:38:05 +00:00
|
|
|
$CFG->dbhost = "localhost"; // eg localhost
|
|
|
|
$CFG->dbname = "moodle"; // eg moodle
|
|
|
|
$CFG->dbuser = "username";
|
|
|
|
$CFG->dbpass = "password";
|
|
|
|
|
|
|
|
|
2002-08-06 12:58:21 +00:00
|
|
|
// Next you need to tell Moodle where it is located.
|
2002-09-15 06:09:44 +00:00
|
|
|
// Specify the full URL where moodle has been installed (without a trailing slash):
|
2002-05-17 13:38:05 +00:00
|
|
|
|
|
|
|
$CFG->wwwroot = "http://example.com/moodle";
|
2002-08-06 12:58:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
// and now the full OS directory path to this same location:
|
|
|
|
|
2002-05-17 13:38:05 +00:00
|
|
|
$CFG->dirroot = "/web/moodle";
|
|
|
|
|
|
|
|
|
2002-08-06 12:58:21 +00:00
|
|
|
// Now you need a place where Moodle can save uploaded files. This directory
|
|
|
|
// should be writeable by the web server user (usually 'nobody' or 'apache'),
|
|
|
|
// but it should not be accessible directly via the web.
|
2002-05-17 13:38:05 +00:00
|
|
|
|
|
|
|
$CFG->dataroot = "/home/moodledata";
|
|
|
|
|
|
|
|
|
2002-07-04 07:52:06 +00:00
|
|
|
// Choose a sitewide language - this will affect text, buttons etc
|
2002-07-02 04:19:54 +00:00
|
|
|
// See lib/languages.php for a full list of standard language codes.
|
2002-05-17 13:38:05 +00:00
|
|
|
|
2002-08-06 12:58:21 +00:00
|
|
|
$CFG->lang = "en"; // Currently the only option
|
|
|
|
|
2002-07-04 07:52:06 +00:00
|
|
|
|
|
|
|
// Choose a sitewide locale - this will affect the display of dates
|
|
|
|
// You need to have this locale data installed on your operating
|
|
|
|
// system. If you don't know what to choose try using the same
|
|
|
|
// string as the language.
|
|
|
|
|
|
|
|
$CFG->locale = "en";
|
2002-05-17 13:38:05 +00:00
|
|
|
|
|
|
|
|
2002-06-06 15:25:36 +00:00
|
|
|
// Give the full names of local SMTP servers that Moodle should use to
|
|
|
|
// send mail (eg "mail.a.com" or "mail.a.com;mail.b.com").
|
|
|
|
// If this is left empty (eg "") then Moodle will attempt to use PHP mail.
|
2002-05-17 13:38:05 +00:00
|
|
|
|
2002-06-06 15:25:36 +00:00
|
|
|
$CFG->smtphosts = "";
|
2002-05-27 06:16:38 +00:00
|
|
|
|
2002-05-17 13:38:05 +00:00
|
|
|
|
2002-08-08 02:11:16 +00:00
|
|
|
// There is no way, currently, for PHP to automatically tell whether the
|
|
|
|
// graphic library GD is version 1.* or 2.*. Specify here (either 1 or 2).
|
2002-06-13 11:18:52 +00:00
|
|
|
|
|
|
|
$CFG->gdversion = 1;
|
|
|
|
|
|
|
|
|
2002-08-05 07:59:37 +00:00
|
|
|
// If students haven't logged in for a very long time, then they are
|
|
|
|
// automatically unsubscribed from courses. This parameter specifies
|
2002-08-06 12:58:21 +00:00
|
|
|
// that time limit, in DAYS.
|
2002-08-05 07:59:37 +00:00
|
|
|
|
|
|
|
$CFG->longtimenosee = 100;
|
|
|
|
|
|
|
|
|
2002-08-18 15:26:04 +00:00
|
|
|
// These programs are used by the file management code to zip and unzip
|
|
|
|
// uploaded files. This only works on Unix systems right now.
|
|
|
|
|
|
|
|
$CFG->zip = "/usr/bin/zip";
|
|
|
|
$CFG->unzip = "/usr/bin/unzip";
|
|
|
|
|
|
|
|
|
2002-08-26 09:48:00 +00:00
|
|
|
// Files (images, uploads etc) are provided via a script which
|
|
|
|
// is called like this example: file.php/1/myfiles/mymusic.mp3
|
|
|
|
// Using this form of argument allows files to be more easily
|
|
|
|
// cached in web browsers, proxy servers etc, but they don't
|
|
|
|
// work in all PHP servers. If you have trouble viewing
|
|
|
|
// uploaded files or images, then set the following to false
|
|
|
|
|
|
|
|
$CFG->slasharguments = true;
|
|
|
|
|
2002-09-02 06:34:43 +00:00
|
|
|
// If this server needs to use a proxy computer (eg a firewall)
|
|
|
|
// to access the Internet, then provide the proxy details here.
|
|
|
|
// This will only affect a few minor features such as the ability
|
|
|
|
// to see user locations plotted on a graph.
|
|
|
|
// Otherwise, leave these blank
|
|
|
|
|
|
|
|
$CFG->proxyhost = "";
|
|
|
|
$CFG->proxyport = "";
|
|
|
|
|
2002-08-26 09:48:00 +00:00
|
|
|
|
2002-05-17 13:38:05 +00:00
|
|
|
// You should not need to change anything else. To continue setting up
|
|
|
|
// Moodle, use your web browser to go to the moodle/admin web page.
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
$CFG->libdir = "$CFG->dirroot/lib";
|
|
|
|
|
|
|
|
require("$CFG->libdir/setup.php"); // Sets up all libraries, sessions etc
|
|
|
|
|
|
|
|
?>
|