configuration.dist.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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 name
  30. $_configuration['main_database'] = '{DATABASE_MAIN}';
  31. // Database username
  32. $_configuration['db_user'] = '{DATABASE_USER}';
  33. // Database password
  34. $_configuration['db_password'] = '{DATABASE_PASSWORD}';
  35. // Enable access to database management for platform admins.
  36. $_configuration['db_manager_enabled'] = false;
  37. /**
  38. * Directory settings
  39. */
  40. // URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/
  41. $_configuration['root_web'] = '{ROOT_WEB}';
  42. // Path to the webroot of system, example: /var/www/
  43. $_configuration['root_sys'] = '{ROOT_SYS}';
  44. // Path from your WWW-root to the root of your Chamilo installation,
  45. // example: chamilo (this means chamilo is installed in /var/www/chamilo/
  46. $_configuration['url_append'] = '{URL_APPEND_PATH}';
  47. // URL to your phpMyAdmin installation.
  48. // If not empty, a link will be available in the Platform Administration
  49. $_configuration['db_admin_path'] = '';
  50. /**
  51. * Login modules settings
  52. */
  53. // CAS IMPLEMENTATION
  54. // -> Go to your portal Chamilo > Administration > CAS to activate CAS
  55. // You can leave these lines uncommented even if you don't use CAS authentification
  56. //$extAuthSource["cas"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/login.php";
  57. //$extAuthSource["cas"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/newUser.php";
  58. // NEW LDAP IMPLEMENTATION BASED ON external_login info
  59. // -> Uncomment the two lines bellow to activate LDAP AND edit main/auth/external_login/ldap.conf.php for configuration
  60. // $extAuthSource["extldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/login.ldap.php";
  61. // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.ldap.php";
  62. //
  63. // FACEBOOK IMPLEMENTATION BASED ON external_login info
  64. // -> Uncomment the line bellow to activate Facebook Auth AND edit main/auth/external_login/ldap.conf.php for configuration
  65. // $_configuration['facebook_auth'] = 1;
  66. //
  67. // OTHER EXTERNAL LOGIN INFORMATION
  68. // To fetch external login information, uncomment those 2 lines and modify files auth/external_login/newUser.php and auth/external_login/updateUser.php files
  69. // $extAuthSource["external_login"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.php";
  70. // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/updateUser.php";
  71. /**
  72. *
  73. * Hosting settings - Allows you to set limits to the Chamilo portal when
  74. * hosting it for a third party. These settings can be overwritten by an
  75. * optionally-loaded extension file with only the settings (no comments).
  76. * The settings use an index at the first level to represent the ID of the
  77. * URL in case you use multi-url (otherwise it will always use 1, which is
  78. * the ID of the only URL inside the access_url table).
  79. */
  80. // Set a maximum number of users. Default (0) = no limit
  81. $_configuration[1]['hosting_limit_users'] = 0;
  82. // Set a maximum number of teachers. Default (0) = no limit
  83. $_configuration[1]['hosting_limit_teachers'] = 0;
  84. // Set a maximum number of courses. Default (0) = no limit
  85. $_configuration[1]['hosting_limit_courses'] = 0;
  86. // Set a maximum number of sessions. Default (0) = no limit
  87. $_configuration[1]['hosting_limit_sessions'] = 0;
  88. // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB, etc)
  89. // Default (0) = no limit
  90. $_configuration[1]['hosting_limit_disk_space'] = 0;
  91. // Set a maximum number of usable courses. Default (0) = no limit.
  92. // Should always be lower than the hosting_limit_courses.
  93. // If set, defining a course as "hidden" will free room for
  94. // new courses (up to the hosting_limit_courses, if any value is set there).
  95. // hosting_limit_enabled_courses is the maximum number of courses that are *not* hidden.
  96. $_configuration[1]['hosting_limit_active_courses'] = 0;
  97. // Email to warn if limit was reached.
  98. //$_configuration[1]['hosting_contact_mail'] = 'example@example.org';
  99. // Portal size limit in MB (set to 1024 for 1GB, 5120 for 5GB, etc).
  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'] = 'http://www.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. // One connection per user
  172. //$_configuration['prevent_multiple_simultaneous_login'] = false;
  173. // If the database is down this css style will be used to show the errors.
  174. //$_configuration['theme_fallback'] = 'chamilo'; // (chamilo theme)
  175. // The default template that will be use in the system.
  176. //$_configuration['default_template'] = 'default'; // (main/template/default)
  177. // Hide fields in the main/user/user.php page
  178. //$_configuration['hide_user_field_from_list'] = array('username');
  179. // Aspell Settings
  180. //$_configuration['aspell_bin'] = '/usr/bin/hunspell';
  181. //$_configuration['aspell_opts'] = '-a -d en_GB -H -i utf-8';
  182. //$_configuration['aspell_temp_dir'] = './';
  183. // Custom name_order_conventions
  184. //$_configuration['name_order_conventions'] = array(
  185. // 'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name')
  186. //);
  187. // Course log - Default columns to hide
  188. //$_configuration['course_log_hide_columns'] = array(1, 9);
  189. // Unoconv binary file
  190. //$_configuration['unoconv.binaries'] = '/usr/bin/unoconv';
  191. // Proxy settings for access external services
  192. /*$_configuration['proxy_settings'] = array(
  193. 'http' => array(
  194. 'proxy' => 'tcp://example.com:8080',
  195. 'request_fulluri'=>true
  196. )
  197. );*/
  198. // Detail view of gradebook categories.
  199. //$_configuration['gradebook_detailed_admin_view'] = false;
  200. // E-mail accounts to send notifications to when executing cronjobs - works for main/cron/import_csv.php
  201. //$_configuration['cron_notification_mails'] = array('email@example.com', 'email2@example.com');
  202. // Allow anonymous users to see the courses/sessions catalogue
  203. //$_configuration['course_catalog_published'] = 'false';
  204. // Only shows the fields in this list
  205. /*$_configuration['allow_fields_inscription'] = [
  206. 'official_code',
  207. 'phone',
  208. 'status',
  209. 'language',
  210. 'extra_fields'
  211. ];*/
  212. // Reset password in portal
  213. //$_configuration['user_reset_password'] = false;
  214. // password token expired
  215. //$_configuration['user_reset_password_token_limit'] = 3600;
  216. // Show Default view and Session view link in My Courses tab
  217. //$_configuration['my_courses_view_by_session'] = false;