Small tweak to the default template.
[elgg.git] / config-dist.php
bloba32cf3aaadd82d3479c9843bf86a65b367ab003c
1 <?php
2 // ELGG system configuration parameters.
4 // System constants: set values as necessary
5 // Supply your values within the second set of speech marks in the pair
6 // i.e., define("system constant name", "your value");
8 // Name of the site (eg Elgg, Apcala, University of Bogton's Learning Landscape, etc)
9 $CFG->sitename = 'My Elgg site';
10 // External URL to the site (eg http://elgg.bogton.edu/)
11 // NB: **MUST** have a final slash at the end
12 $CFG->wwwroot = 'http://';
13 // Physical path to the files (eg /home/elggserver/httpdocs/)
14 // NB: **MUST** have a final slash at the end
15 $CFG->dirroot = '';
16 // Email address of the system (eg elgg-admin@bogton.edu)
17 $CFG->sysadminemail = '';
18 // Country code to set language to if you have gettext installed
19 // To include new languages, save their compiled .mo gettext
20 // file into languages/country code/LC_MESSAGES/
21 // (the file within this folder must be called elgg.mo)
22 // An Elgg gettext template is included as /elgg.pot
23 $CFG->defaultlocale = 'en_GB';
24 // The following should be set to false if you don't want the
25 // general public to be able to register accounts with your
26 // Elgg site.
27 $CFG->publicreg = true;
28 // The following sets the default access level within the Elgg
29 // site. Possible values include:
30 // PUBLIC :: available to everyone
31 // LOGGED_IN :: available to logged in users only
32 // PRIVATE :: available to the user only
33 $CFG->default_access = "LOGGED_IN";
34 // dataroot. this is where uploaded files will go (and sessions for now)
35 // This should be OUTSIDE your wwwroot.
36 $CFG->dataroot = '';
37 // You may change this value to something else but you must ensure that
38 // the user runs the web server process be able to read and write under
39 // this permission.
40 //$CFG->directorypermissions = 0777;
42 $CFG->dbtype = 'mysql'; // for now
43 $CFG->dbhost = 'localhost';
44 $CFG->dbuser = '';
45 $CFG->dbpass = '';
46 $CFG->dbname = '';
47 $CFG->dbpersist = false;
48 $CFG->prefix = 'elgg';
50 // performance and debugging //
51 // Uncomment this to get sql errors sent to the webserver error log.
52 // $CFG->dblogerror = = true;
53 // put this to 2047 to get adodb error handling.
54 $CFG->debug = 0;
57 // Capture performance profiling data
58 // define('ELGG_PERF' , true);
60 // Capture additional data from DB
61 // define('ELGG_PERFDB' , true);
63 // Print to log (for passive profiling of production servers)
64 // define('ELGG_PERFTOLOG' , true);
66 // Print to footer (works with the default theme)
67 // define('ELGG_PERFTOFOOT', true);
69 // EMAIL HANDLING
70 // $CFG->smtphosts= ''; // empty (sendmail), qmail (qmail) or hosts
71 // $CFG->smtpuser = ''; // if using smtphosts, optional smtpuser & smtppass
72 // $CFG->smtppass = '';
73 // $CFG->noreplyaddress = ''; // this will default to noreply@hostname (from wwwroot)
75 // CLAMAV HANDLING
76 //$CFG->runclamonupload = true;
77 //$CFG->quarantinedir = '/somewhere/the/webserver/can/write/to';
78 //$CFG->clamfailureonupload = 'actlikevirus'; // OR 'donothing';
79 //$CFG->pathtoclam = '/usr/bin/clamscan'; // OR '/usr/bin/clamdscan';
81 // set up some LMS hosts.
82 // --------------------------------------------------
83 // This array is KEYED on installid - the lms clients should identify themselves with this installid
84 // Token is required and should be shared with the lms client.
85 // Baseurl is required and will be used to link back to the lms.
86 // Name is optional and will be used to display a user friendly name. The institution name is a good choice.
87 // If this is not given, installid will be used instead.
88 // Confirmurl is optional (pings back confirmation of requests for signup and authentication.)
89 // Moodle's confirm url is http://yourmoodlehost.com/blocks/eportfolio/confirm.php
90 // But not all lms systems will implement this necessarily.
91 // Network address is optional (performs further checking on requests from the lms) & can be three different formats:
92 // A full exact address like 192.168.0.1
93 // A partial address like 192.168
94 // CIDR notation, such as 231.54.211.0/20
96 // $CFG->lmshosts = array('installid' => array('token' => 'sharedsecret', 'networkaddress' => 'xxx.xxx.xxx.xxx','confirmurl' => 'http://thelms.com/something.php', 'baseurl' => 'http://thelms.com', 'name' => 'Something Friendly'));
98 // Note that if you are going to allow file transfers between your lms and elgg using scp
99 // you will need to obtain the .pub part of an ssh key that the lms has been set up to use,
100 // and add it to the ~/.ssh/authorized_keys file for the user on this machine they need to connect to,
101 // and provide the lms with the username for that user.
102 // This user needs write access to {$CFG->dataroot}lms/incoming/ as that is where the incoming files will end up.