forked from MaharaProject/mahara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-dist.php
91 lines (81 loc) · 2.95 KB
/
config-dist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
/**
*
* @package mahara
* @subpackage core
* @author Catalyst IT Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later
* @copyright For copyright information on Mahara, please see the README file distributed with this software.
*
*/
/**
* MAHARA CONFIGURATION FILE
*
* INSTRUCTIONS:
* 1. Copy this file from config-dist.php to config.php
* 2. Change the values in it to suit your environment.
*
* Information about this file is available on the Mahara wiki:
* https://wiki.mahara.org/wiki/System_Administrator's_Guide/Installing_Mahara#Create_Mahara.27s_config.php
*
* This file includes only the most commonly used Mahara configuration directives. For more options
* that can be placed in this file, see the Mahara lib file:
*
* htdocs/lib/config-defaults.php
*/
$cfg = new stdClass();
/**
* database connection details
* valid values for dbtype are 'postgres' and 'mysql'
*/
$cfg->dbtype = 'postgres';
$cfg->dbhost = 'localhost';
$cfg->dbport = null; // Change if you are using a non-standard port number for your database
$cfg->dbname = '';
$cfg->dbuser = '';
$cfg->dbpass = '';
/**
* dataroot: The server directory where uploaded files are stored
*
* This is an ABSOLUTE FILESYSTEM PATH. This is NOT a URL.
* For example, valid paths are:
* * /home/user/maharadata
* * /var/lib/mahara
* * c:\maharadata
* INVALID paths:
* * http://yoursite/files
* * ~/files
* * ../data
*
* This path must be writable by the webserver and outside the document root (the
* place where the Mahara files like index.php have been installed).
* For security purposes, Mahara will NOT RUN if this is inside your document root.
*/
$cfg->dataroot = '/path/to/uploaddir';
/**
* wwwroot: The base URL of your Mahara installation.
*
* (Normally, this is automatically detected. If it doesn't work for you then try specifying it here.)
*/
// Example:
// $cfg->wwwroot = 'https://myhost.com/mahara/';
/**
* urlsecret A secret you need to add to the lib/cron.php or admin/upgrade.php
* URL to run it through the browser rather than the commandline to prevent unauthorised users triggering
* the cron or an upgrade, eg http://example.com/lib/cron.php?urlsecret=mysupersecret.
*
* You can disable this functionality by setting $cfg->urlsecret = null.
*/
// $cfg->urlsecret = 'mysupersecret';
/**
* passwordsaltmain: A secret token used for one-way encryption of user account passwords.
*/
// $cfg->passwordsaltmain = 'some long random string here with lots of characters';
/**
* Uncomment the following line if this server is not a production system.
* This will display a banner at the top of the site indicating that it is not a
* production site, which can help prevent users confusing it with your production site.
* It will also enable on-screen display of warnings and error messages to aid in testing.
*/
//$cfg->productionmode = false;
// closing php tag intentionally omitted to prevent whitespace issues