config-dist.php 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867
  1. <?php
  2. ///////////////////////////////////////////////////////////////////////////
  3. // //
  4. // Moodle configuration file //
  5. // //
  6. // This file should be renamed "config.php" in the top-level directory //
  7. // //
  8. ///////////////////////////////////////////////////////////////////////////
  9. // //
  10. // NOTICE OF COPYRIGHT //
  11. // //
  12. // Moodle - Modular Object-Oriented Dynamic Learning Environment //
  13. // http://moodle.org //
  14. // //
  15. // Copyright (C) 1999 onwards Martin Dougiamas http://moodle.com //
  16. // //
  17. // This program is free software; you can redistribute it and/or modify //
  18. // it under the terms of the GNU General Public License as published by //
  19. // the Free Software Foundation; either version 3 of the License, or //
  20. // (at your option) any later version. //
  21. // //
  22. // This program is distributed in the hope that it will be useful, //
  23. // but WITHOUT ANY WARRANTY; without even the implied warranty of //
  24. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
  25. // GNU General Public License for more details: //
  26. // //
  27. // http://www.gnu.org/copyleft/gpl.html //
  28. // //
  29. ///////////////////////////////////////////////////////////////////////////
  30. unset($CFG); // Ignore this line
  31. global $CFG; // This is necessary here for PHPUnit execution
  32. $CFG = new stdClass();
  33. //=========================================================================
  34. // 1. DATABASE SETUP
  35. //=========================================================================
  36. // First, you need to configure the database where all Moodle data //
  37. // will be stored. This database must already have been created //
  38. // and a username/password created to access it. //
  39. $CFG->dbtype = 'pgsql'; // 'pgsql', 'mariadb', 'mysqli', 'mssql', 'sqlsrv' or 'oci'
  40. $CFG->dblibrary = 'native'; // 'native' only at the moment
  41. $CFG->dbhost = 'localhost'; // eg 'localhost' or 'db.isp.com' or IP
  42. $CFG->dbname = 'moodle'; // database name, eg moodle
  43. $CFG->dbuser = 'username'; // your database username
  44. $CFG->dbpass = 'password'; // your database password
  45. $CFG->prefix = 'mdl_'; // prefix to use for all table names
  46. $CFG->dboptions = array(
  47. 'dbpersist' => false, // should persistent database connections be
  48. // used? set to 'false' for the most stable
  49. // setting, 'true' can improve performance
  50. // sometimes
  51. 'dbsocket' => false, // should connection via UNIX socket be used?
  52. // if you set it to 'true' or custom path
  53. // here set dbhost to 'localhost',
  54. // (please note mysql is always using socket
  55. // if dbhost is 'localhost' - if you need
  56. // local port connection use '127.0.0.1')
  57. 'dbport' => '', // the TCP port number to use when connecting
  58. // to the server. keep empty string for the
  59. // default port
  60. );
  61. //=========================================================================
  62. // 2. WEB SITE LOCATION
  63. //=========================================================================
  64. // Now you need to tell Moodle where it is located. Specify the full
  65. // web address to where moodle has been installed. If your web site
  66. // is accessible via multiple URLs then choose the most natural one
  67. // that your students would use. Do not include a trailing slash
  68. //
  69. // If you need both intranet and Internet access please read
  70. // http://docs.moodle.org/en/masquerading
  71. $CFG->wwwroot = 'http://example.com/moodle';
  72. //=========================================================================
  73. // 3. DATA FILES LOCATION
  74. //=========================================================================
  75. // Now you need a place where Moodle can save uploaded files. This
  76. // directory should be readable AND WRITEABLE by the web server user
  77. // (usually 'nobody' or 'apache'), but it should not be accessible
  78. // directly via the web.
  79. //
  80. // - On hosting systems you might need to make sure that your "group" has
  81. // no permissions at all, but that "others" have full permissions.
  82. //
  83. // - On Windows systems you might specify something like 'c:\moodledata'
  84. $CFG->dataroot = '/home/example/moodledata';
  85. //=========================================================================
  86. // 4. DATA FILES PERMISSIONS
  87. //=========================================================================
  88. // The following parameter sets the permissions of new directories
  89. // created by Moodle within the data directory. The format is in
  90. // octal format (as used by the Unix utility chmod, for example).
  91. // The default is usually OK, but you may want to change it to 0750
  92. // if you are concerned about world-access to the files (you will need
  93. // to make sure the web server process (eg Apache) can access the files.
  94. // NOTE: the prefixed 0 is important, and don't use quotes.
  95. $CFG->directorypermissions = 02777;
  96. //=========================================================================
  97. // 5. DIRECTORY LOCATION (most people can just ignore this setting)
  98. //=========================================================================
  99. // A very few webhosts use /admin as a special URL for you to access a
  100. // control panel or something. Unfortunately this conflicts with the
  101. // standard location for the Moodle admin pages. You can work around this
  102. // by renaming the admin directory in your installation, and putting that
  103. // new name here. eg "moodleadmin". This should fix all admin links in Moodle.
  104. // After any change you need to visit your new admin directory
  105. // and purge all caches.
  106. $CFG->admin = 'admin';
  107. //=========================================================================
  108. // 6. OTHER MISCELLANEOUS SETTINGS (ignore these for new installations)
  109. //=========================================================================
  110. //
  111. // These are additional tweaks for which no GUI exists in Moodle yet.
  112. //
  113. // Starting in PHP 5.3 administrators should specify default timezone
  114. // in PHP.ini, you can also specify it here if needed.
  115. // See details at: http://php.net/manual/en/function.date-default-timezone-set.php
  116. // List of time zones at: http://php.net/manual/en/timezones.php
  117. // date_default_timezone_set('Australia/Perth');
  118. //
  119. // Change the key pair lifetime for Moodle Networking
  120. // The default is 28 days. You would only want to change this if the key
  121. // was not getting regenerated for any reason. You would probably want
  122. // make it much longer. Note that you'll need to delete and manually update
  123. // any existing key.
  124. // $CFG->mnetkeylifetime = 28;
  125. //
  126. // Not recommended: Set the following to true to allow the use
  127. // off non-Moodle standard characters in usernames.
  128. // $CFG->extendedusernamechars = true;
  129. //
  130. // Allow user passwords to be included in backup files. Very dangerous
  131. // setting as far as it publishes password hashes that can be unencrypted
  132. // if the backup file is publicy available. Use it only if you can guarantee
  133. // that all your backup files remain only privacy available and are never
  134. // shared out from your site/institution!
  135. // $CFG->includeuserpasswordsinbackup = true;
  136. //
  137. // Completely disable user creation when restoring a course, bypassing any
  138. // permissions granted via roles and capabilities. Enabling this setting
  139. // results in the restore process stopping when a user attempts to restore a
  140. // course requiring users to be created.
  141. // $CFG->disableusercreationonrestore = true;
  142. //
  143. // Keep the temporary directories used by backup and restore without being
  144. // deleted at the end of the process. Use it if you want to debug / view
  145. // all the information stored there after the process has ended. Note that
  146. // those directories may be deleted (after some ttl) both by cron and / or
  147. // by new backup / restore invocations.
  148. // $CFG->keeptempdirectoriesonbackup = true;
  149. //
  150. // Modify the restore process in order to force the "user checks" to assume
  151. // that the backup originated from a different site, so detection of matching
  152. // users is performed with different (more "relaxed") rules. Note that this is
  153. // only useful if the backup file has been created using Moodle < 1.9.4 and the
  154. // site has been rebuilt from scratch using backup files (not the best way btw).
  155. // If you obtain user conflicts on restore, rather than enabling this setting
  156. // permanently, try restoring the backup on a different site, back it up again
  157. // and then restore on the target server.
  158. // $CFG->forcedifferentsitecheckingusersonrestore = true;
  159. //
  160. // Force the backup system to continue to create backups in the legacy zip
  161. // format instead of the new tgz format. Does not affect restore, which
  162. // auto-detects the underlying file format.
  163. // $CFG->usezipbackups = true;
  164. //
  165. // Prevent stats processing and hide the GUI
  166. // $CFG->disablestatsprocessing = true;
  167. //
  168. // Setting this to true will enable admins to edit any post at any time
  169. // $CFG->admineditalways = true;
  170. //
  171. // These variables define DEFAULT block variables for new courses
  172. // If this one is set it overrides all others and is the only one used.
  173. // $CFG->defaultblocks_override = 'participants,activity_modules,search_forums,course_list:news_items,calendar_upcoming,recent_activity';
  174. //
  175. // These variables define the specific settings for defined course formats.
  176. // They override any settings defined in the formats own config file.
  177. // $CFG->defaultblocks_site = 'site_main_menu,course_list:course_summary,calendar_month';
  178. // $CFG->defaultblocks_social = 'participants,search_forums,calendar_month,calendar_upcoming,social_activities,recent_activity,course_list';
  179. // $CFG->defaultblocks_topics = 'participants,activity_modules,search_forums,course_list:news_items,calendar_upcoming,recent_activity';
  180. // $CFG->defaultblocks_weeks = 'participants,activity_modules,search_forums,course_list:news_items,calendar_upcoming,recent_activity';
  181. //
  182. // These blocks are used when no other default setting is found.
  183. // $CFG->defaultblocks = 'participants,activity_modules,search_forums,course_list:news_items,calendar_upcoming,recent_activity';
  184. //
  185. // You can specify a different class to be created for the $PAGE global, and to
  186. // compute which blocks appear on each page. However, I cannot think of any good
  187. // reason why you would need to change that. It just felt wrong to hard-code the
  188. // the class name. You are strongly advised not to use these to settings unless
  189. // you are absolutely sure you know what you are doing.
  190. // $CFG->moodlepageclass = 'moodle_page';
  191. // $CFG->moodlepageclassfile = "$CFG->dirroot/local/myplugin/mypageclass.php";
  192. // $CFG->blockmanagerclass = 'block_manager';
  193. // $CFG->blockmanagerclassfile = "$CFG->dirroot/local/myplugin/myblockamanagerclass.php";
  194. //
  195. // Seconds for files to remain in caches. Decrease this if you are worried
  196. // about students being served outdated versions of uploaded files.
  197. // $CFG->filelifetime = 60*60*6;
  198. //
  199. // Some web servers can offload the file serving from PHP process,
  200. // comment out one the following options to enable it in Moodle:
  201. // $CFG->xsendfile = 'X-Sendfile'; // Apache {@see https://tn123.org/mod_xsendfile/}
  202. // $CFG->xsendfile = 'X-LIGHTTPD-send-file'; // Lighttpd {@see http://redmine.lighttpd.net/projects/lighttpd/wiki/X-LIGHTTPD-send-file}
  203. // $CFG->xsendfile = 'X-Accel-Redirect'; // Nginx {@see http://wiki.nginx.org/XSendfile}
  204. // If your X-Sendfile implementation (usually Nginx) uses directory aliases specify them
  205. // in the following array setting:
  206. // $CFG->xsendfilealiases = array(
  207. // '/dataroot/' => $CFG->dataroot,
  208. // '/cachedir/' => '/var/www/moodle/cache', // for custom $CFG->cachedir locations
  209. // '/localcachedir/' => '/var/local/cache', // for custom $CFG->localcachedir locations
  210. // '/tempdir/' => '/var/www/moodle/temp', // for custom $CFG->tempdir locations
  211. // '/filedir' => '/var/www/moodle/filedir', // for custom $CFG->filedir locations
  212. // );
  213. //
  214. // YUI caching may be sometimes improved by slasharguments:
  215. // $CFG->yuislasharguments = 1;
  216. // Some servers may need a special rewrite rule to work around internal path length limitations:
  217. // RewriteRule (^.*/theme/yui_combo\.php)(/.*) $1?file=$2
  218. //
  219. //
  220. // Following settings may be used to select session driver, uncomment only one of the handlers.
  221. // Database session handler (not compatible with MyISAM):
  222. // $CFG->session_handler_class = '\core\session\database';
  223. // $CFG->session_database_acquire_lock_timeout = 120;
  224. //
  225. // File session handler (file system locking required):
  226. // $CFG->session_handler_class = '\core\session\file';
  227. // $CFG->session_file_save_path = $CFG->dataroot.'/sessions';
  228. //
  229. // Memcached session handler (requires memcached server and extension):
  230. // $CFG->session_handler_class = '\core\session\memcached';
  231. // $CFG->session_memcached_save_path = '127.0.0.1:11211';
  232. // $CFG->session_memcached_prefix = 'memc.sess.key.';
  233. // $CFG->session_memcached_acquire_lock_timeout = 120;
  234. // $CFG->session_memcached_lock_expire = 7200; // Ignored if PECL memcached is below version 2.2.0
  235. //
  236. // Redis session handler (requires redis server and redis extension):
  237. // $CFG->session_handler_class = '\core\session\redis';
  238. // $CFG->session_redis_host = '127.0.0.1';
  239. // $CFG->session_redis_port = 6379; // Optional.
  240. // $CFG->session_redis_database = 0; // Optional, default is db 0.
  241. // $CFG->session_redis_prefix = ''; // Optional, default is don't set one.
  242. // $CFG->session_redis_acquire_lock_timeout = 120;
  243. // $CFG->session_redis_lock_expire = 7200;
  244. //
  245. // Memcache session handler (requires memcached server and memcache extension):
  246. // $CFG->session_handler_class = '\core\session\memcache';
  247. // $CFG->session_memcache_save_path = '127.0.0.1:11211';
  248. // $CFG->session_memcache_acquire_lock_timeout = 120;
  249. // ** NOTE: Memcache extension has less features than memcached and may be
  250. // less reliable. Use memcached where possible or if you encounter
  251. // session problems. **
  252. //
  253. // Please be aware that when selecting either Memcached or Memcache for sessions that it is advised to use a dedicated
  254. // memcache server. The memcache and memcached extensions do not provide isolated environments for individual uses.
  255. // Using the same server for other purposes (MUC for example) can lead to sessions being prematurely removed should
  256. // the other uses of the server purge the cache.
  257. //
  258. // Following setting allows you to alter how frequently is timemodified updated in sessions table.
  259. // $CFG->session_update_timemodified_frequency = 20; // In seconds.
  260. //
  261. // If this setting is set to true, then Moodle will track the IP of the
  262. // current user to make sure it hasn't changed during a session. This
  263. // will prevent the possibility of sessions being hijacked via XSS, but it
  264. // may break things for users coming using proxies that change all the time,
  265. // like AOL.
  266. // $CFG->tracksessionip = true;
  267. //
  268. // The following lines are for handling email bounces.
  269. // $CFG->handlebounces = true;
  270. // $CFG->minbounces = 10;
  271. // $CFG->bounceratio = .20;
  272. // The next lines are needed both for bounce handling and any other email to module processing.
  273. // mailprefix must be EXACTLY four characters.
  274. // Uncomment and customise this block for Postfix
  275. // $CFG->mailprefix = 'mdl+'; // + is the separator for Exim and Postfix.
  276. // $CFG->mailprefix = 'mdl-'; // - is the separator for qmail
  277. // $CFG->maildomain = 'youremaildomain.com';
  278. //
  279. // Enable when setting up advanced reverse proxy load balancing configurations,
  280. // it may be also necessary to enable this when using port forwarding.
  281. // $CFG->reverseproxy = true;
  282. //
  283. // Enable when using external SSL appliance for performance reasons.
  284. // Please note that site may be accessible via http: or https:, but not both!
  285. // $CFG->sslproxy = true;
  286. //
  287. // This setting will cause the userdate() function not to fix %d in
  288. // date strings, and just let them show with a zero prefix.
  289. // $CFG->nofixday = true;
  290. //
  291. // This setting will make some graphs (eg user logs) use lines instead of bars
  292. // $CFG->preferlinegraphs = true;
  293. //
  294. // This setting allows you to specify a class to rewrite outgoing urls
  295. // enabling 'clean urls' in conjunction with an apache / nginx handler.
  296. // The handler must implement \core\output\url_rewriter.
  297. // $CFG->urlrewriteclass = '\local_cleanurls\url_rewriter';
  298. //
  299. // Enabling this will allow custom scripts to replace existing moodle scripts.
  300. // For example: if $CFG->customscripts/course/view.php exists then
  301. // it will be used instead of $CFG->wwwroot/course/view.php
  302. // At present this will only work for files that include config.php and are called
  303. // as part of the url (index.php is implied).
  304. // Some examples are:
  305. // http://my.moodle.site/course/view.php
  306. // http://my.moodle.site/index.php
  307. // http://my.moodle.site/admin (index.php implied)
  308. // Custom scripts should not include config.php
  309. // Warning: Replacing standard moodle scripts may pose security risks and/or may not
  310. // be compatible with upgrades. Use this option only if you are aware of the risks
  311. // involved.
  312. // Specify the full directory path to the custom scripts
  313. // $CFG->customscripts = '/home/example/customscripts';
  314. //
  315. // Performance profiling
  316. //
  317. // If you set Debug to "Yes" in the Configuration->Variables page some
  318. // performance profiling data will show up on your footer (in default theme).
  319. // With these settings you get more granular control over the capture
  320. // and printout of the data
  321. //
  322. // Capture performance profiling data
  323. // define('MDL_PERF' , true);
  324. //
  325. // Capture additional data from DB
  326. // define('MDL_PERFDB' , true);
  327. //
  328. // Print to log (for passive profiling of production servers)
  329. // define('MDL_PERFTOLOG' , true);
  330. //
  331. // Print to footer (works with the default theme)
  332. // define('MDL_PERFTOFOOT', true);
  333. //
  334. // Enable earlier profiling that causes more code to be covered
  335. // on every request (db connections, config load, other inits...).
  336. // Requires extra configuration to be defined in config.php like:
  337. // profilingincluded, profilingexcluded, profilingautofrec,
  338. // profilingallowme, profilingallowall, profilinglifetime
  339. // $CFG->earlyprofilingenabled = true;
  340. //
  341. // Force displayed usernames
  342. // A little hack to anonymise user names for all students. If you set these
  343. // then all non-teachers will always see these for every person.
  344. // $CFG->forcefirstname = 'Bruce';
  345. // $CFG->forcelastname = 'Simpson';
  346. //
  347. // The following setting will turn on username logging into Apache log. For full details regarding setting
  348. // up of this function please refer to the install section of the document.
  349. // $CFG->apacheloguser = 0; // Turn this feature off. Default value.
  350. // $CFG->apacheloguser = 1; // Log user id.
  351. // $CFG->apacheloguser = 2; // Log full name in cleaned format. ie, Darth Vader will be displayed as darth_vader.
  352. // $CFG->apacheloguser = 3; // Log username.
  353. // To get the values logged in Apache's log, add to your httpd.conf
  354. // the following statements. In the General part put:
  355. // LogFormat "%h %l %{MOODLEUSER}n %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" moodleformat
  356. // And in the part specific to your Moodle install / virtualhost:
  357. // CustomLog "/your/path/to/log" moodleformat
  358. // CAUTION: Use of this option will expose usernames in the Apache log,
  359. // If you are going to publish your log, or the output of your web stats analyzer
  360. // this will weaken the security of your website.
  361. //
  362. // Email database connection errors to someone. If Moodle cannot connect to the
  363. // database, then email this address with a notice.
  364. //
  365. // $CFG->emailconnectionerrorsto = 'your@emailaddress.com';
  366. //
  367. // Set the priority of themes from highest to lowest. This is useful (for
  368. // example) in sites where the user theme should override all other theme
  369. // settings for accessibility reasons. You can also disable types of themes
  370. // (other than site) by removing them from the array. The default setting is:
  371. // $CFG->themeorder = array('course', 'category', 'session', 'user', 'site');
  372. // NOTE: course, category, session, user themes still require the
  373. // respective settings to be enabled
  374. //
  375. // It is possible to add extra themes directory stored outside of $CFG->dirroot.
  376. // This local directory does not have to be accessible from internet.
  377. //
  378. // $CFG->themedir = '/location/of/extra/themes';
  379. //
  380. // It is possible to specify different cache and temp directories, use local fast filesystem
  381. // for normal web servers. Server clusters MUST use shared filesystem for cachedir!
  382. // Localcachedir is intended for server clusters, it does not have to be shared by cluster nodes.
  383. // The directories must not be accessible via web.
  384. //
  385. // $CFG->tempdir = '/var/www/moodle/temp'; // Directory MUST BE SHARED by all clsuter nodes.
  386. // $CFG->cachedir = '/var/www/moodle/cache'; // Directory MUST BE SHARED by all cluster nodes, locking required.
  387. // $CFG->localcachedir = '/var/local/cache'; // Intended for local node caching.
  388. //
  389. // Some filesystems such as NFS may not support file locking operations.
  390. // Locking resolves race conditions and is strongly recommended for production servers.
  391. // $CFG->preventfilelocking = false;
  392. //
  393. // Site default language can be set via standard administration interface. If you
  394. // want to have initial error messages for eventual database connection problems
  395. // localized too, you have to set your language code here.
  396. //
  397. // $CFG->lang = 'yourlangcode'; // for example 'cs'
  398. //
  399. // When Moodle is about to perform an intensive operation it raises PHP's memory
  400. // limit. The following setting should be used on large sites to set the raised
  401. // memory limit to something higher.
  402. // The value for the settings should be a valid PHP memory value. e.g. 512M, 1G
  403. //
  404. // $CFG->extramemorylimit = '1024M';
  405. //
  406. // Moodle 2.4 introduced a new cache API.
  407. // The cache API stores a configuration file within the Moodle data directory and
  408. // uses that rather than the database in order to function in a stand-alone manner.
  409. // Using altcacheconfigpath you can change the location where this config file is
  410. // looked for.
  411. // It can either be a directory in which to store the file, or the full path to the
  412. // file if you want to take full control. Either way it must be writable by the
  413. // webserver.
  414. //
  415. // $CFG->altcacheconfigpath = '/var/www/shared/moodle.cache.config.php
  416. //
  417. // The CSS files the Moodle produces can be extremely large and complex, especially
  418. // if you are using a custom theme that builds upon several other themes.
  419. // In Moodle 2.3 a CSS optimiser was added as an experimental feature for advanced
  420. // users. The CSS optimiser organises the CSS in order to reduce the overall number
  421. // of rules and styles being sent to the client. It does this by collating the
  422. // CSS before it is cached removing excess styles and rules and stripping out any
  423. // extraneous content such as comments and empty rules.
  424. // The following settings are used to enable and control the optimisation.
  425. //
  426. // Enable the CSS optimiser. This will only optimise the CSS if themedesignermode
  427. // is not enabled. This can be set through the UI however it is noted here as well
  428. // because the other CSS optimiser settings can not be set through the UI.
  429. //
  430. // $CFG->enablecssoptimiser = true;
  431. //
  432. // If set the CSS optimiser will add stats about the optimisation to the top of
  433. // the optimised CSS file. You can then inspect the CSS to see the affect the CSS
  434. // optimiser is having.
  435. //
  436. // $CFG->cssoptimiserstats = true;
  437. //
  438. // If set the CSS that is optimised will still retain a minimalistic formatting
  439. // so that anyone wanting to can still clearly read it.
  440. //
  441. // $CFG->cssoptimiserpretty = true;
  442. //
  443. // Use the following flag to completely disable the Available update notifications
  444. // feature and hide it from the server administration UI.
  445. //
  446. // $CFG->disableupdatenotifications = true;
  447. //
  448. // Use the following flag to completely disable the installation of plugins
  449. // (new plugins, available updates and missing dependencies) and related
  450. // features (such as cancelling the plugin installation or upgrade) via the
  451. // server administration web interface.
  452. //
  453. // $CFG->disableupdateautodeploy = true;
  454. //
  455. // Use the following flag to disable modifications to scheduled tasks
  456. // whilst still showing the state of tasks.
  457. //
  458. // $CFG->preventscheduledtaskchanges = true;
  459. //
  460. // As of version 2.4 Moodle serves icons as SVG images if the users browser appears
  461. // to support SVG.
  462. // For those wanting to control the serving of SVG images the following setting can
  463. // be defined in your config.php.
  464. // If it is not defined then the default (browser detection) will occur.
  465. //
  466. // To ensure they are always used when available:
  467. // $CFG->svgicons = true;
  468. //
  469. // To ensure they are never used even when available:
  470. // $CFG->svgicons = false;
  471. //
  472. // Some administration options allow setting the path to executable files. This can
  473. // potentially cause a security risk. Set this option to true to disable editing
  474. // those config settings via the web. They will need to be set explicitly in the
  475. // config.php file
  476. // $CFG->preventexecpath = true;
  477. //
  478. // Use the following flag to set userid for noreply user. If not set then moodle will
  479. // create dummy user and use -ve value as user id.
  480. // $CFG->noreplyuserid = -10;
  481. //
  482. // As of version 2.6 Moodle supports admin to set support user. If not set, all mails
  483. // will be sent to supportemail.
  484. // $CFG->supportuserid = -20;
  485. //
  486. // Moodle 2.7 introduces a locking api for critical tasks (e.g. cron).
  487. // The default locking system to use is DB locking for Postgres, and file locking for
  488. // MySQL, Oracle and SQLServer. If $CFG->preventfilelocking is set, then the default
  489. // will always be DB locking. It can be manually set to one of the lock
  490. // factory classes listed below, or one of your own custom classes implementing the
  491. // \core\lock\lock_factory interface.
  492. //
  493. // $CFG->lock_factory = "auto";
  494. //
  495. // The list of available lock factories is:
  496. //
  497. // "\\core\\lock\\file_lock_factory" - File locking
  498. // Uses lock files stored by default in the dataroot. Whether this
  499. // works on clusters depends on the file system used for the dataroot.
  500. //
  501. // "\\core\\lock\\db_record_lock_factory" - DB locking based on table rows.
  502. //
  503. // "\\core\\lock\\postgres_lock_factory" - DB locking based on postgres advisory locks.
  504. //
  505. // Settings used by the lock factories
  506. //
  507. // Location for lock files used by the File locking factory. This must exist
  508. // on a shared file system that supports locking.
  509. // $CFG->lock_file_root = $CFG->dataroot . '/lock';
  510. //
  511. // Moodle 2.9 allows administrators to customise the list of supported file types.
  512. // To add a new filetype or override the definition of an existing one, set the
  513. // customfiletypes variable like this:
  514. //
  515. // $CFG->customfiletypes = array(
  516. // (object)array(
  517. // 'extension' => 'frog',
  518. // 'icon' => 'archive',
  519. // 'type' => 'application/frog',
  520. // 'customdescription' => 'Amphibian-related file archive'
  521. // )
  522. // );
  523. //
  524. // The extension, icon, and type fields are required. The icon field can refer to
  525. // any icon inside the pix/f folder. You can also set the customdescription field
  526. // (shown above) and (for advanced use) the groups, string, and defaulticon fields.
  527. //
  528. // Upgrade key
  529. //
  530. // If the upgrade key is defined here, then the value must be provided every time
  531. // the site is being upgraded though the web interface, regardless of whether the
  532. // administrator is logged in or not. This prevents anonymous access to the upgrade
  533. // screens where the real authentication and authorization mechanisms can not be
  534. // relied on.
  535. //
  536. // It is strongly recommended to use a value different from your real account
  537. // password.
  538. //
  539. // $CFG->upgradekey = 'put_some_password-like_value_here';
  540. //
  541. //=========================================================================
  542. // 7. SETTINGS FOR DEVELOPMENT SERVERS - not intended for production use!!!
  543. //=========================================================================
  544. //
  545. // Force a debugging mode regardless the settings in the site administration
  546. // @error_reporting(E_ALL | E_STRICT); // NOT FOR PRODUCTION SERVERS!
  547. // @ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
  548. // $CFG->debug = (E_ALL | E_STRICT); // === DEBUG_DEVELOPER - NOT FOR PRODUCTION SERVERS!
  549. // $CFG->debugdisplay = 1; // NOT FOR PRODUCTION SERVERS!
  550. //
  551. // You can specify a comma separated list of user ids that that always see
  552. // debug messages, this overrides the debug flag in $CFG->debug and $CFG->debugdisplay
  553. // for these users only.
  554. // $CFG->debugusers = '2';
  555. //
  556. // Prevent theme caching
  557. // $CFG->themedesignermode = true; // NOT FOR PRODUCTION SERVERS!
  558. //
  559. // Enable verbose debug information during fetching of email messages from IMAP server.
  560. // $CFG->debugimap = true;
  561. //
  562. // Prevent JS caching
  563. // $CFG->cachejs = false; // NOT FOR PRODUCTION SERVERS!
  564. //
  565. // Restrict which YUI logging statements are shown in the browser console.
  566. // For details see the upstream documentation:
  567. // http://yuilibrary.com/yui/docs/api/classes/config.html#property_logInclude
  568. // http://yuilibrary.com/yui/docs/api/classes/config.html#property_logExclude
  569. // $CFG->yuiloginclude = array(
  570. // 'moodle-core-dock-loader' => true,
  571. // 'moodle-course-categoryexpander' => true,
  572. // );
  573. // $CFG->yuilogexclude = array(
  574. // 'moodle-core-dock' => true,
  575. // 'moodle-core-notification' => true,
  576. // );
  577. //
  578. // Set the minimum log level for YUI logging statements.
  579. // For details see the upstream documentation:
  580. // http://yuilibrary.com/yui/docs/api/classes/config.html#property_logLevel
  581. // $CFG->yuiloglevel = 'debug';
  582. //
  583. // Prevent core_string_manager application caching
  584. // $CFG->langstringcache = false; // NOT FOR PRODUCTION SERVERS!
  585. //
  586. // When working with production data on test servers, no emails or other messages
  587. // should ever be send to real users
  588. // $CFG->noemailever = true; // NOT FOR PRODUCTION SERVERS!
  589. //
  590. // Divert all outgoing emails to this address to test and debug emailing features
  591. // $CFG->divertallemailsto = 'root@localhost.local'; // NOT FOR PRODUCTION SERVERS!
  592. //
  593. // Except for certain email addresses you want to let through for testing. Accepts
  594. // a comma separated list of regexes.
  595. // $CFG->divertallemailsexcept = 'tester@dev.com, fred(\+.*)?@example.com'; // NOT FOR PRODUCTION SERVERS!
  596. //
  597. // Uncomment if you want to allow empty comments when modifying install.xml files.
  598. // $CFG->xmldbdisablecommentchecking = true; // NOT FOR PRODUCTION SERVERS!
  599. //
  600. // Since 2.0 sql queries are not shown during upgrade by default.
  601. // Please note that this setting may produce very long upgrade page on large sites.
  602. // $CFG->upgradeshowsql = true; // NOT FOR PRODUCTION SERVERS!
  603. //
  604. // Add SQL queries to the output of cron, just before their execution
  605. // $CFG->showcronsql = true;
  606. //
  607. // Force developer level debug and add debug info to the output of cron
  608. // $CFG->showcrondebugging = true;
  609. //
  610. //=========================================================================
  611. // 8. FORCED SETTINGS
  612. //=========================================================================
  613. // It is possible to specify normal admin settings here, the point is that
  614. // they can not be changed through the standard admin settings pages any more.
  615. //
  616. // Core settings are specified directly via assignment to $CFG variable.
  617. // Example:
  618. // $CFG->somecoresetting = 'value';
  619. //
  620. // Plugin settings have to be put into a special array.
  621. // Example:
  622. // $CFG->forced_plugin_settings = array('pluginname' => array('settingname' => 'value', 'secondsetting' => 'othervalue'),
  623. // 'otherplugin' => array('mysetting' => 'myvalue', 'thesetting' => 'thevalue'));
  624. // Module default settings with advanced/locked checkboxes can be set too. To do this, add
  625. // an extra config with '_adv' or '_locked' as a suffix and set the value to true or false.
  626. // Example:
  627. // $CFG->forced_plugin_settings = array('pluginname' => array('settingname' => 'value', 'settingname_locked' => true, 'settingname_adv' => true));
  628. //
  629. //=========================================================================
  630. // 9. PHPUNIT SUPPORT
  631. //=========================================================================
  632. // $CFG->phpunit_prefix = 'phpu_';
  633. // $CFG->phpunit_dataroot = '/home/example/phpu_moodledata';
  634. // $CFG->phpunit_directorypermissions = 02777; // optional
  635. //
  636. //
  637. //=========================================================================
  638. // 10. SECRET PASSWORD SALT
  639. //=========================================================================
  640. // A site-wide password salt is no longer used in new installations.
  641. // If upgrading from 2.6 or older, keep all existing salts in config.php file.
  642. //
  643. // $CFG->passwordsaltmain = 'a_very_long_random_string_of_characters#@6&*1';
  644. //
  645. // You may also have some alternative salts to allow migration from previously
  646. // used salts.
  647. //
  648. // $CFG->passwordsaltalt1 = '';
  649. // $CFG->passwordsaltalt2 = '';
  650. // $CFG->passwordsaltalt3 = '';
  651. // ....
  652. // $CFG->passwordsaltalt19 = '';
  653. // $CFG->passwordsaltalt20 = '';
  654. //
  655. //
  656. //=========================================================================
  657. // 11. BEHAT SUPPORT
  658. //=========================================================================
  659. // Behat test site needs a unique www root, data directory and database prefix:
  660. //
  661. // $CFG->behat_wwwroot = 'http://127.0.0.1/moodle';
  662. // $CFG->behat_prefix = 'bht_';
  663. // $CFG->behat_dataroot = '/home/example/bht_moodledata';
  664. //
  665. // You can override default Moodle configuration for Behat and add your own
  666. // params; here you can add more profiles, use different Mink drivers than Selenium...
  667. // These params would be merged with the default Moodle behat.yml, giving priority
  668. // to the ones specified here. The array format is YAML, following the Behat
  669. // params hierarchy. More info: http://docs.behat.org/guides/7.config.html
  670. // Example:
  671. // $CFG->behat_config = array(
  672. // 'Mac-Firefox' => array(
  673. // 'suites' => array (
  674. // 'default' => array(
  675. // 'filters' => array(
  676. // 'tags' => '~@_file_upload'
  677. // ),
  678. // ),
  679. // ),
  680. // 'extensions' => array(
  681. // 'Behat\MinkExtension' => array(
  682. // 'selenium2' => array(
  683. // 'browser' => 'firefox',
  684. // 'capabilities' => array(
  685. // 'platform' => 'OS X 10.6',
  686. // 'version' => 20
  687. // )
  688. // )
  689. // )
  690. // )
  691. // ),
  692. // 'Mac-Safari' => array(
  693. // 'extensions' => array(
  694. // 'Behat\MinkExtension' => array(
  695. // 'selenium2' => array(
  696. // 'browser' => 'safari',
  697. // 'capabilities' => array(
  698. // 'platform' => 'OS X 10.8',
  699. // 'version' => 6
  700. // )
  701. // )
  702. // )
  703. // )
  704. // )
  705. // );
  706. // You can also use the following config to override default Moodle configuration for Behat.
  707. // This config is limited to default suite and will be supported in later versions.
  708. // It will have precedence over $CFG->behat_config.
  709. // $CFG->behat_profiles = array(
  710. // 'phantomjs' => array(
  711. // 'browser' => 'phantomjs',
  712. // 'tags' => '~@_file_upload&&~@_alert&&~@_bug_phantomjs',
  713. // 'wd_host' => 'http://127.0.0.1:4443/wd/hub',
  714. // 'capabilities' => array(
  715. // 'platform' => 'Linux',
  716. // 'version' => 2.1
  717. // )
  718. // ),
  719. // );
  720. //
  721. // You can force the browser session (not user's sessions) to restart after N seconds. This could
  722. // be useful if you are using a cloud-based service with time restrictions in the browser side.
  723. // Setting this value the browser session that Behat is using will be restarted. Set the time in
  724. // seconds. Is not recommended to use this setting if you don't explicitly need it.
  725. // Example:
  726. // $CFG->behat_restart_browser_after = 7200; // Restarts the browser session after 2 hours
  727. //
  728. // All this page's extra Moodle settings are compared against a white list of allowed settings
  729. // (the basic and behat_* ones) to avoid problems with production environments. This setting can be
  730. // used to expand the default white list with an array of extra settings.
  731. // Example:
  732. // $CFG->behat_extraallowedsettings = array('somecoresetting', ...);
  733. //
  734. // You should explicitly allow the usage of the deprecated behat steps, otherwise an exception will
  735. // be thrown when using them. The setting is disabled by default.
  736. // Example:
  737. // $CFG->behat_usedeprecated = true;
  738. //
  739. // Including feature files from directories outside the dirroot is possible if required. The setting
  740. // requires that the running user has executable permissions on all parent directories in the paths.
  741. // Example:
  742. // $CFG->behat_additionalfeatures = array('/home/developer/code/wipfeatures');
  743. //
  744. // You can make behat save several dumps when a scenario fails. The dumps currently saved are:
  745. // * a dump of the DOM in it's state at the time of failure; and
  746. // * a screenshot (JavaScript is required for the screenshot functionality, so not all browsers support this option)
  747. // Example:
  748. // $CFG->behat_faildump_path = '/my/path/to/save/failure/dumps';
  749. //
  750. // You can specify db, selenium wd_host etc. for behat parallel run by setting following variable.
  751. // Example:
  752. // $CFG->behat_parallel_run = array (
  753. // array (
  754. // 'dbtype' => 'mysqli',
  755. // 'dblibrary' => 'native',
  756. // 'dbhost' => 'localhost',
  757. // 'dbname' => 'moodletest',
  758. // 'dbuser' => 'moodle',
  759. // 'dbpass' => 'moodle',
  760. // 'behat_prefix' => 'mdl_',
  761. // 'wd_host' => 'http://127.0.0.1:4444/wd/hub',
  762. // 'behat_wwwroot' => 'http://127.0.0.1/moodle',
  763. // 'behat_dataroot' => '/home/example/bht_moodledata'
  764. // ),
  765. // );
  766. //
  767. // To change name of behat parallel run site, define BEHAT_PARALLEL_SITE_NAME and parallel run sites will be suffixed
  768. // with this value
  769. // Example:
  770. // define('BEHAT_PARALLEL_SITE_NAME', 'behatparallelsite');
  771. //
  772. // Command line output for parallel behat install is limited to 80 chars, if you are installing more then 4 sites and
  773. // want to expand output to more then 80 chars, then define BEHAT_MAX_CMD_LINE_OUTPUT
  774. // Example:
  775. // define('BEHAT_MAX_CMD_LINE_OUTPUT', 120);
  776. //
  777. // Behat feature files will be distributed randomly between the processes by default. If you have timing file or want
  778. // to create timing file then define BEHAT_FEATURE_TIMING_FILE with path to timing file. It will be updated for each
  779. // run with latest time taken to execute feature.
  780. // Example:
  781. // define('BEHAT_FEATURE_TIMING_FILE', '/PATH_TO_TIMING_FILE/timing.json');
  782. //
  783. // If you don't have timing file and want some stable distribution of features, then you can use step counts to
  784. // distribute the features. You can generate step file by executing php admin/tool/behat/cli/util.php --updatesteps
  785. // this will update step file which is defined by BEHAT_FEATURE_STEP_FILE.
  786. // Example:
  787. // define('BEHAT_FEATURE_STEP_FILE', '/PATH_TO_FEATURE_STEP_COUNT_FILE/stepcount.json');
  788. //
  789. // Feature distribution for each process is displayed as histogram. you can disable it by setting
  790. // BEHAT_DISABLE_HISTOGRAM
  791. // Example:
  792. // define('BEHAT_DISABLE_HISTOGRAM', true);
  793. //
  794. //=========================================================================
  795. // 12. DEVELOPER DATA GENERATOR
  796. //=========================================================================
  797. //
  798. // The developer data generator tool is intended to be used only in development or testing sites and
  799. // it's usage in production environments is not recommended; if it is used to create JMeter test plans
  800. // is even less recommended as JMeter needs to log in as site course users. JMeter needs to know the
  801. // users passwords but would be dangerous to have a default password as everybody would know it, which would
  802. // be specially dangerouse if somebody uses this tool in a production site, so in order to prevent unintended
  803. // uses of the tool and undesired accesses as well, is compulsory to set a password for the users
  804. // generated by this tool, but only in case you want to generate a JMeter test. The value should be a string.
  805. // Example:
  806. // $CFG->tool_generator_users_password = 'examplepassword';
  807. //
  808. //=========================================================================
  809. // 13. SYSTEM PATHS (You need to set following, depending on your system)
  810. //=========================================================================
  811. // Ghostscript path.
  812. // On most Linux installs, this can be left as '/usr/bin/gs'.
  813. // On Windows it will be something like 'c:\gs\bin\gswin32c.exe' (make sure
  814. // there are no spaces in the path - if necessary copy the files 'gswin32c.exe'
  815. // and 'gsdll32.dll' to a new folder without a space in the path)
  816. // $CFG->pathtogs = '/usr/bin/gs';
  817. //
  818. // Path to du.
  819. // Probably something like /usr/bin/du. If you enter this, pages that display
  820. // directory contents will run much faster for directories with a lot of files.
  821. // $CFG->pathtodu = '';
  822. //
  823. // Path to aspell.
  824. // To use spell-checking within the editor, you MUST have aspell 0.50 or later
  825. // installed on your server, and you must specify the correct path to access the
  826. // aspell binary. On Unix/Linux systems, this path is usually /usr/bin/aspell,
  827. // but it might be something else.
  828. // $CFG->aspellpath = '';
  829. //
  830. // Path to dot.
  831. // Probably something like /usr/bin/dot. To be able to generate graphics from
  832. // DOT files, you must have installed the dot executable and point to it here.
  833. // Note that, for now, this only used by the profiling features
  834. // (Development->Profiling) built into Moodle.
  835. // $CFG->pathtodot = '';
  836. //
  837. // Path to unoconv.
  838. // Probably something like /usr/bin/unoconv. Used as a fallback to convert between document formats.
  839. // Unoconv is used convert between file formats supported by LibreOffice.
  840. // Use a recent version of unoconv ( >= 0.7 ), older versions have trouble running from a webserver.
  841. // $CFG->pathtounoconv = '';
  842. //=========================================================================
  843. // ALL DONE! To continue installation, visit your main page with a browser
  844. //=========================================================================
  845. require_once(__DIR__ . '/lib/setup.php'); // Do not edit
  846. // There is no php closing tag in this file,
  847. // it is intentional because it prevents trailing whitespace problems!