configuration.dist.php 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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'].$_configuration['code_append']."auth/cas/login.php";
  56. //$extAuthSource["cas"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."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'].$_configuration['code_append']."auth/external_login/login.ldap.php";
  60. // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."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'].$_configuration['code_append']."auth/external_login/newUser.php";
  69. // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."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_enabled_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. $_configuration['hosting_total_size_limit'] = 0;
  100. /**
  101. * Content Delivery Network (CDN) settings. Only use if you need a separate
  102. * server to serve your static data. If you don't know what a CDN is, you
  103. * don't need it. These settings are for simple Origin Pull CDNs and are
  104. * experimental. Enable only if you really know what you're doing.
  105. * This might conflict with multiple-access urls.
  106. */
  107. // Set the following setting to true to start using the CDN
  108. $_configuration['cdn_enable'] = false;
  109. // The following setting will be ignored if the previous one is set to false
  110. $_configuration['cdn'] = array(
  111. // You can define several CDNs and split them by extensions
  112. // Replace the following by your full CDN URL, which should point to
  113. // your Chamilo's root directory. DO NOT INCLUDE a final slash! (won't work)
  114. 'http://cdn.chamilo.org' => array(
  115. '.css',
  116. '.js',
  117. '.jpg',
  118. '.jpeg',
  119. '.png',
  120. '.gif',
  121. '.avi',
  122. '.flv'
  123. ),
  124. // copy the line above and modify following your needs
  125. );
  126. /**
  127. * Misc. settings
  128. */
  129. // security word for password recovery
  130. $_configuration['security_key'] = '{SECURITY_KEY}';
  131. // Hash function method
  132. $_configuration['password_encryption'] = '{ENCRYPT_PASSWORD}';
  133. // You may have to restart your web server if you change this
  134. $_configuration['session_stored_in_db'] = false;
  135. // Session lifetime
  136. $_configuration['session_lifetime'] = SESSION_LIFETIME;
  137. // Activation for multi-url access
  138. //$_configuration['multiple_access_urls'] = true;
  139. $_configuration['software_name'] = 'Chamilo';
  140. $_configuration['software_url'] = 'http://www.chamilo.org/';
  141. //Deny the elimination of users
  142. $_configuration['deny_delete_users'] = false;
  143. // Version settings
  144. $_configuration['system_version'] = '{NEW_VERSION}';
  145. $_configuration['system_stable'] = NEW_VERSION_STABLE;
  146. /**
  147. * Settings to be included as settings_current in future versions
  148. */
  149. // Uncomment the following to prevent all admins to use the "login as" feature
  150. //$_configuration['login_as_forbidden_globally'] = true;
  151. // If session_stored_in_db is false, an alternative session storage mechanism
  152. // can be used, which allows for a volatile storage in Memcache, and a more
  153. // permanent "backup" storage in the database, every once in a while (see
  154. // frequency). This is generally used in HA clusters configurations
  155. // This requires memcache or memcached and the php5-memcache module to be setup
  156. //$_configuration['session_stored_in_db_as_backup'] = true;
  157. // Define the different memcache servers available
  158. //$_configuration['memcache_server'] = array(
  159. // 0 => array(
  160. // 'host' => 'chamilo8',
  161. // 'port' => '11211',
  162. // ),
  163. // 1 => array(
  164. // 'host' => 'chamilo9',
  165. // 'port' => '11211',
  166. // ),
  167. //);
  168. // Define the frequency to which the data must be stored in the database
  169. //$_configuration['session_stored_after_n_times'] = 10;
  170. // If the database is down this css style will be used to show the errors.
  171. //$_configuration['theme_fallback'] = 'chamilo'; // (chamilo theme)
  172. // The default template that will be use in the system.
  173. //$_configuration['default_template'] = 'default'; // (main/template/default)
  174. // Hide fields in the main/user/user.php page
  175. //$_configuration['hide_user_field_from_list'] = array('username');
  176. // Aspell Settings
  177. //$_configuration['aspell_bin'] = '/usr/bin/hunspell';
  178. //$_configuration['aspell_opts'] = '-a -d en_GB -H -i utf-8';
  179. //$_configuration['aspell_temp_dir'] = './';
  180. // Custom name_order_conventions
  181. //$_configuration['name_order_conventions'] = array(
  182. // 'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name')
  183. //);
  184. // Course log - Default columns to hide
  185. //$_configuration['course_log_hide_columns'] = array(1, 9);
  186. // Unoconv binary file
  187. //$_configuration['unoconv.binaries'] = '/usr/bin/unoconv';
  188. // Proxy settings for access external services
  189. /*$_configuration['proxy_settings'] = array(
  190. 'http' => array(
  191. 'proxy' => 'tcp://example.com:8080',
  192. 'request_fulluri'=>true
  193. )
  194. );*/
  195. // E-mail accounts to send notifications to when executing cronjobs - works for main/cron/import_csv.php
  196. //$_configuration['cron_notification_mails'] = array('email@example.com', 'email2@example.com');
  197. // Only shows the fields in this list
  198. /*$_configuration['allow_fields_inscription'] = [
  199. 'official_code',
  200. 'phone',
  201. 'status',
  202. 'language',
  203. 'extra_fields'
  204. ];*/
  205. // Boost option to ignore encoding check for learning paths
  206. //$_configuration['lp_fixed_encoding'] = 'false';
  207. // Fix urls changing http with https in scorm packages.
  208. //$_configuration['lp_replace_http_to_https'] = false;