configuration.dist.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <?php
  2. // Chamilo version {NEW_VERSION}
  3. // File generated by /install/index.php script - {DATE_GENERATED}
  4. /* For licensing terms, see /license.txt */
  5. /**
  6. * Campus configuration
  7. *
  8. * This file contains a list of variables that can be modified by the campus
  9. * site's server administrator. Pay attention when changing these variables,
  10. * some changes may cause Chamilo to stop working.
  11. * If you changed some settings and want to restore them, please have a look at
  12. * configuration.dist.php. That file is an exact copy of the config file at
  13. * install time.
  14. */
  15. /**
  16. * $_configuration define only the bare essential variables
  17. * for configuring the platform (paths, database connections, ...).
  18. * Changing a $_configuration variable CAN generally break the installation.
  19. * Besides the $_configuration, a $_settings array also exists, that
  20. * contains variables that can be changed and will not break the platform.
  21. * These optional settings are defined in the database, now
  22. * (table settings_current).
  23. */
  24. /**
  25. * Database connection settings
  26. */
  27. // Database host
  28. $_configuration['db_host'] = '{DATABASE_HOST}';
  29. // Database port
  30. $_configuration['db_port'] = '{DATABASE_PORT}';
  31. // Database name
  32. $_configuration['main_database'] = '{DATABASE_MAIN}';
  33. // Database username
  34. $_configuration['db_user'] = '{DATABASE_USER}';
  35. // Database password
  36. $_configuration['db_password'] = '{DATABASE_PASSWORD}';
  37. // Enable access to database management for platform admins.
  38. $_configuration['db_manager_enabled'] = false;
  39. /**
  40. * Directory settings
  41. */
  42. // URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/
  43. $_configuration['root_web'] = '{ROOT_WEB}';
  44. // Path to the webroot of system, example: /var/www/
  45. $_configuration['root_sys'] = '{ROOT_SYS}';
  46. // Path from your WWW-root to the root of your Chamilo installation,
  47. // example: chamilo (this means chamilo is installed in /var/www/chamilo/
  48. $_configuration['url_append'] = '{URL_APPEND_PATH}';
  49. /**
  50. * Login modules settings
  51. */
  52. // CAS IMPLEMENTATION
  53. // -> Go to your portal Chamilo > Administration > CAS to activate CAS
  54. // You can leave these lines uncommented even if you don't use CAS authentification
  55. //$extAuthSource["cas"]["login"] = $_configuration['root_sys']."main/auth/cas/login.php";
  56. //$extAuthSource["cas"]["newUser"] = $_configuration['root_sys']."main/auth/cas/newUser.php";
  57. // NEW LDAP IMPLEMENTATION BASED ON external_login info
  58. // -> Uncomment the two lines bellow to activate LDAP AND edit main/auth/external_login/ldap.conf.php for configuration
  59. // $extAuthSource["extldap"]["login"] = $_configuration['root_sys']."main/auth/external_login/login.ldap.php";
  60. // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys']."main/auth/external_login/newUser.ldap.php";
  61. //
  62. // FACEBOOK IMPLEMENTATION BASED ON external_login info
  63. // -> Uncomment the line bellow to activate Facebook Auth AND edit main/auth/external_login/ldap.conf.php for configuration
  64. // $_configuration['facebook_auth'] = 1;
  65. //
  66. // OTHER EXTERNAL LOGIN INFORMATION
  67. // To fetch external login information, uncomment those 2 lines and modify files auth/external_login/newUser.php and auth/external_login/updateUser.php files
  68. // $extAuthSource["external_login"]["newUser"] = $_configuration['root_sys']."main/auth/external_login/newUser.php";
  69. // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys']."main/auth/external_login/updateUser.php";
  70. /**
  71. *
  72. * Hosting settings - Allows you to set limits to the Chamilo portal when
  73. * hosting it for a third party. These settings can be overwritten by an
  74. * optionally-loaded extension file with only the settings (no comments).
  75. * The settings use an index at the first level to represent the ID of the
  76. * URL in case you use multi-url (otherwise it will always use 1, which is
  77. * the ID of the only URL inside the access_url table).
  78. */
  79. // Set a maximum number of users. Default (0) = no limit
  80. $_configuration[1]['hosting_limit_users'] = 0;
  81. // Set a maximum number of teachers. Default (0) = no limit
  82. $_configuration[1]['hosting_limit_teachers'] = 0;
  83. // Set a maximum number of courses. Default (0) = no limit
  84. $_configuration[1]['hosting_limit_courses'] = 0;
  85. // Set a maximum number of sessions. Default (0) = no limit
  86. $_configuration[1]['hosting_limit_sessions'] = 0;
  87. // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB, etc)
  88. // Default (0) = no limit
  89. $_configuration[1]['hosting_limit_disk_space'] = 0;
  90. // Set a maximum number of usable courses. Default (0) = no limit.
  91. // Should always be lower than the hosting_limit_courses.
  92. // If set, defining a course as "hidden" will free room for
  93. // new courses (up to the hosting_limit_courses, if any value is set there).
  94. // hosting_limit_active_courses is the maximum number of courses that are *not* hidden.
  95. $_configuration[1]['hosting_limit_active_courses'] = 0;
  96. // Email to warn if limit was reached.
  97. //$_configuration[1]['hosting_contact_mail'] = 'example@example.org';
  98. // Portal size limit in MB (set to 1024 for 1GB, 5120 for 5GB, etc).
  99. // Check main/cron/hosting_total_size_limit.php for how to use this limit.
  100. $_configuration['hosting_total_size_limit'] = 0;
  101. /**
  102. * Content Delivery Network (CDN) settings. Only use if you need a separate
  103. * server to serve your static data. If you don't know what a CDN is, you
  104. * don't need it. These settings are for simple Origin Pull CDNs and are
  105. * experimental. Enable only if you really know what you're doing.
  106. * This might conflict with multiple-access urls.
  107. */
  108. // Set the following setting to true to start using the CDN
  109. $_configuration['cdn_enable'] = false;
  110. // The following setting will be ignored if the previous one is set to false
  111. $_configuration['cdn'] = array(
  112. // You can define several CDNs and split them by extensions
  113. // Replace the following by your full CDN URL, which should point to
  114. // your Chamilo's root directory. DO NOT INCLUDE a final slash! (won't work)
  115. 'http://cdn.chamilo.org' => array(
  116. '.css',
  117. '.js',
  118. '.jpg',
  119. '.jpeg',
  120. '.png',
  121. '.gif',
  122. '.avi',
  123. '.flv'
  124. ),
  125. // copy the line above and modify following your needs
  126. );
  127. /**
  128. * Misc. settings
  129. */
  130. // security word for password recovery
  131. $_configuration['security_key'] = '{SECURITY_KEY}';
  132. // Hash function method
  133. $_configuration['password_encryption'] = '{ENCRYPT_PASSWORD}';
  134. // You may have to restart your web server if you change this
  135. $_configuration['session_stored_in_db'] = false;
  136. // Session lifetime
  137. $_configuration['session_lifetime'] = SESSION_LIFETIME;
  138. // Activation for multi-url access
  139. //$_configuration['multiple_access_urls'] = true;
  140. $_configuration['software_name'] = 'Chamilo';
  141. $_configuration['software_url'] = 'https://chamilo.org/';
  142. //Deny the elimination of users
  143. $_configuration['deny_delete_users'] = false;
  144. // Version settings
  145. $_configuration['system_version'] = '{NEW_VERSION}';
  146. $_configuration['system_stable'] = NEW_VERSION_STABLE;
  147. /**
  148. * Settings to be included as settings_current in future versions
  149. */
  150. // Uncomment the following to prevent all admins to use the "login as" feature
  151. //$_configuration['login_as_forbidden_globally'] = true;
  152. // If session_stored_in_db is false, an alternative session storage mechanism
  153. // can be used, which allows for a volatile storage in Memcache, and a more
  154. // permanent "backup" storage in the database, every once in a while (see
  155. // frequency). This is generally used in HA clusters configurations
  156. // This requires memcache or memcached and the php5-memcache module to be setup
  157. //$_configuration['session_stored_in_db_as_backup'] = true;
  158. // Define the different memcache servers available
  159. //$_configuration['memcache_server'] = array(
  160. // 0 => array(
  161. // 'host' => 'chamilo8',
  162. // 'port' => '11211',
  163. // ),
  164. // 1 => array(
  165. // 'host' => 'chamilo9',
  166. // 'port' => '11211',
  167. // ),
  168. //);
  169. // Define the frequency to which the data must be stored in the database
  170. //$_configuration['session_stored_after_n_times'] = 10;
  171. // If the database is down this css style will be used to show the errors.
  172. //$_configuration['theme_fallback'] = 'chamilo'; // (chamilo theme)
  173. // The default template that will be use in the system.
  174. //$_configuration['default_template'] = 'default'; // (main/template/default)
  175. // Hide fields in the main/user/user.php page
  176. //$_configuration['hide_user_field_from_list'] = array('username');
  177. // Aspell Settings
  178. //$_configuration['aspell_bin'] = '/usr/bin/hunspell';
  179. //$_configuration['aspell_opts'] = '-a -d en_GB -H -i utf-8';
  180. //$_configuration['aspell_temp_dir'] = './';
  181. // Custom name_order_conventions
  182. //$_configuration['name_order_conventions'] = array(
  183. // 'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name')
  184. //);
  185. // Course log - Default columns to hide
  186. //$_configuration['course_log_hide_columns'] = array(1, 9);
  187. // Unoconv binary file
  188. //$_configuration['unoconv.binaries'] = '/usr/bin/unoconv';
  189. // Proxy settings for access external services
  190. /*$_configuration['proxy_settings'] = array(
  191. 'http' => array(
  192. 'proxy' => 'tcp://example.com:8080',
  193. 'request_fulluri'=>true
  194. )
  195. );*/
  196. // E-mail accounts to send notifications to when executing cronjobs - works for main/cron/import_csv.php
  197. //$_configuration['cron_notification_mails'] = array('email@example.com', 'email2@example.com');
  198. // Only shows the fields in this list
  199. /*$_configuration['allow_fields_inscription'] = [
  200. 'official_code',
  201. 'phone',
  202. 'status',
  203. 'language',
  204. 'extra_fields'
  205. ];*/
  206. // Boost option to ignore encoding check for learning paths
  207. //$_configuration['lp_fixed_encoding'] = 'false';
  208. // Fix urls changing http with https in scorm packages.
  209. //$_configuration['lp_replace_http_to_https'] = false;
  210. // Manage the links to Session Index page
  211. // 1 = Default. Works as it is now (default is to link to the special session page)
  212. // 0 = No link (not clickable)
  213. // 2 = Link to the course if there is only one course
  214. // 3 = Session link will make course list foldable
  215. //$_configuration['courses_list_session_title_link'] = 1;
  216. // Fix embedded videos inside lps, adding an optional popup
  217. //$_configuration['lp_fix_embed_content'] = false;
  218. // Manage deleted files marked with "DELETED" (by course and only by allowed by admin)
  219. //$_configuration['document_manage_deleted_files'] = false;
  220. // Hide tabs in the main/session/index.php page
  221. //$_configuration['session_hide_tab_list'] = array();
  222. // Show invisible exercise in LP list
  223. //$_configuration['show_invisible_exercise_in_lp_list'] = false;
  224. // Allow send a push notification when an email are sent
  225. //$_configuration['messaging_allow_send_push_notification'] = 'true';
  226. // Project number in the Google Developer Console
  227. //$_configuration['messaging_gdc_project_number'] = '';
  228. // Api Key in the Google Developer Console
  229. //$_configuration['messaging_gdc_api_key'] = '';
  230. // Text to speech google app id
  231. //$_configuration['translate_app_google_key'] = '';
  232. // Reference to the packager system or provider through which
  233. // Chamilo is installed/downloaded. Packagers can change this
  234. // to reflect their packaging method. The default value is 'chamilo'. This will
  235. // be reflected on the https://version.chamilo.org/stats page in the future.
  236. //$_configuration['packager'] = 'chamilo';
  237. // List of driver to plugin in ckeditor
  238. //$_configuration['editor_driver_list'] = ['PersonalDriver', 'CourseDriver'];
  239. // Hide send to hrm users options in announcements
  240. //$_configuration['announcements_hide_send_to_hrm_users'] = true;
  241. // Hide certificate link in index/userportal pages
  242. //$_configuration['hide_my_certificate_link'] = false;
  243. // Send only quiz answer notifications to course coaches and not general coach
  244. //$_configuration['block_quiz_mail_notification_general_coach'] = false;
  245. // Security: block direct access from logged in users to contents in OPEN (but not public) courses. Set to true to block
  246. //$_configuration['block_registered_users_access_to_open_course_contents'] = false;
  247. // Allows syncing the database with the current entity schema
  248. //$_configuration['sync_db_with_schema'] = false;
  249. // Load course notifications in user_portal.php using ajax
  250. //$_configuration['user_portal_load_notification_by_ajax'] = false;
  251. // When exporting a LP, all files and folders in the same path of an html will be exported too.
  252. //$_configuration['add_all_files_in_lp_export'] = false;
  253. // Send exercise student score to manager in email notification
  254. //$_configuration['send_score_in_exam_notification_mail_to_manager'] = false;
  255. // Show blocked LPs by prerequisite to students
  256. //$_configuration['show_prerequisite_as_blocked'] = false;
  257. // Mail header extra HTML attributes
  258. //$_configuration['mail_header_style'] = '';
  259. // Mail body extra HTML attributes
  260. //$_configuration['mail_content_style'] = '';
  261. // Show all agenda events in personal agenda from all session no matter the visibility.
  262. //$_configuration['personal_agenda_show_all_session_events'] = false;
  263. // Allows to redirect to the session after the inscription in session about
  264. // $_configuration['allow_redirect_to_session_after_inscription_about'] = false;
  265. // Allows to do a remove_XSS in course introduction with user status COURSEMANAGERLOWSECURITY in order to accept all embed type videos (like vimeo, wistia, etc)
  266. // $_configuration['allow_course_introduction_low_security'] = false;
  267. // Prevents the duplicate upload in assignments
  268. // $_configuration['assignment_prevent_duplicate_upload'] = false;
  269. // Set ConsideredWorkingTime work extra field variable from main/admin/extra_fields.php?type=work
  270. // (with internal id 'work_time' as below) and enable the following line to show in MyStudents page works report
  271. // $_configuration['considered_working_time'] = 'work_time';
  272. //
  273. // ------ Survey configuration settings
  274. // Add support to mandatory surveys. The user will not be able to enter to the course until fill the mandatory surveys
  275. // Requires DB change:
  276. /*
  277. INSERT INTO extra_field (extra_field_type, field_type, variable, display_text, visible_to_self, changeable, created_at)
  278. VALUES (12, 13, 'is_mandatory', 'IsMandatory', 1, 1, NOW());
  279. */
  280. //$_configuration['allow_mandatory_survey'] = false;
  281. // ------