From ede50d6f6d66f7d4c4607d2afdc7ee487667e23f Mon Sep 17 00:00:00 2001 From: martin Date: Fri, 17 May 2002 13:38:05 +0000 Subject: [PATCH] Added to eliminate problems of config.php being overwritten --- config-dist.php | 81 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 config-dist.php diff --git a/config-dist.php b/config-dist.php new file mode 100644 index 0000000000..66365040c6 --- /dev/null +++ b/config-dist.php @@ -0,0 +1,81 @@ +dbtype = "mysql"; // eg mysql, postgres7, oracle, access etc +$CFG->dbhost = "localhost"; // eg localhost +$CFG->dbname = "moodle"; // eg moodle +$CFG->dbuser = "username"; +$CFG->dbpass = "password"; + + +// Next you need to tell Moodle where it is located + +$CFG->wwwroot = "http://example.com/moodle"; +$CFG->dirroot = "/web/moodle"; + + +// And where it can save 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. + +$CFG->dataroot = "/home/moodledata"; + + +// Choose a theme from the "themes" folder. Default theme is "standard". + +$CFG->theme = "standard"; + + +// Choose a sitewide language - this will affect navigation, help etc + +$CFG->lang = "en"; + + +// Give the full name (eg mail.example.com) of an SMTP server that the +// web server machine has access to (to send mail). + +$CFG->smtphost = "mail.example.com"; + + +// 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 + +?> -- 2.39.5