root/releases/0.6/config-dist.php
| Revision 361, 4.9 kB (checked in by sven, 2 years ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | <?php |
| 2 | // ELGG system configuration parameters. |
| 3 | |
| 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"); |
| 7 | |
| 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 these values to something else but you must ensure that |
| 38 | // the user the web server process runs as is able to read and write under |
| 39 | // these permissions. |
| 40 | //$CFG->directorypermissions = 0777; |
| 41 | //$CFG->filepermissions = 0666; |
| 42 | |
| 43 | $CFG->dbtype = 'mysql'; // for now |
| 44 | $CFG->dbhost = 'localhost'; |
| 45 | $CFG->dbuser = ''; |
| 46 | $CFG->dbpass = ''; |
| 47 | $CFG->dbname = ''; |
| 48 | $CFG->dbpersist = false; |
| 49 | $CFG->prefix = 'elgg'; |
| 50 | |
| 51 | // performance and debugging // |
| 52 | // Uncomment this to get sql errors sent to the webserver error log. |
| 53 | // $CFG->dblogerror = = true; |
| 54 | // put this to 2047 to get adodb error handling. |
| 55 | $CFG->debug = 0; |
| 56 | |
| 57 | // |
| 58 | // Capture performance profiling data |
| 59 | // define('ELGG_PERF' , true); |
| 60 | // |
| 61 | // Capture additional data from DB |
| 62 | // define('ELGG_PERFDB' , true); |
| 63 | // |
| 64 | // Print to log (for passive profiling of production servers) |
| 65 | // define('ELGG_PERFTOLOG' , true); |
| 66 | // |
| 67 | // Print to footer (works with the default theme) |
| 68 | // define('ELGG_PERFTOFOOT', true); |
| 69 | // |
| 70 | // EMAIL HANDLING |
| 71 | // $CFG->smtphosts= ''; // empty (sendmail), qmail (qmail) or hosts |
| 72 | // $CFG->smtpuser = ''; // if using smtphosts, optional smtpuser & smtppass |
| 73 | // $CFG->smtppass = ''; |
| 74 | // $CFG->noreplyaddress = ''; // this will default to noreply@hostname (from wwwroot) |
| 75 | |
| 76 | // CLAMAV HANDLING |
| 77 | //$CFG->runclamonupload = true; |
| 78 | //$CFG->quarantinedir = '/somewhere/the/webserver/can/write/to'; |
| 79 | //$CFG->clamfailureonupload = 'actlikevirus'; // OR 'donothing'; |
| 80 | //$CFG->pathtoclam = '/usr/bin/clamscan'; // OR '/usr/bin/clamdscan'; |
| 81 | |
| 82 | // TEMPLATES HANDLING |
| 83 | //$CFG->disable_usertemplates = true; // users can only choose from available templates |
| 84 | //$CFG->templatestore = 'db'; // 'db' (default) or 'files' (requires $CFG->templatesroot to be set) |
| 85 | //$CFG->templatesroot = '/some/path/'; // use on-disk templates instead of DB templates |
| 86 | |
| 87 | // set up some LMS hosts. |
| 88 | // -------------------------------------------------- |
| 89 | // This array is KEYED on installid - the lms clients should identify themselves with this installid |
| 90 | // Token is required and should be shared with the lms client. |
| 91 | // Baseurl is required and will be used to link back to the lms. |
| 92 | // Name is optional and will be used to display a user friendly name. The institution name is a good choice. |
| 93 | // If this is not given, installid will be used instead. |
| 94 | // Confirmurl is optional (pings back confirmation of requests for signup and authentication.) |
| 95 | // Moodle's confirm url is http://yourmoodlehost.com/blocks/eportfolio/confirm.php |
| 96 | // But not all lms systems will implement this necessarily. |
| 97 | // Network address is optional (performs further checking on requests from the lms) & can be three different formats: |
| 98 | // A full exact address like 192.168.0.1 |
| 99 | // A partial address like 192.168 |
| 100 | // CIDR notation, such as 231.54.211.0/20 |
| 101 | // |
| 102 | // $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')); |
| 103 | // |
| 104 | // Note that if you are going to allow file transfers between your lms and elgg using scp |
| 105 | // you will need to obtain the .pub part of an ssh key that the lms has been set up to use, |
| 106 | // and add it to the ~/.ssh/authorized_keys file for the user on this machine they need to connect to, |
| 107 | // and provide the lms with the username for that user. |
| 108 | // This user needs write access to {$CFG->dataroot}lms/incoming/ as that is where the incoming files will end up. |
| 109 | |
| 110 | ?> |
Note: See TracBrowser for help on using the browser.
