configuration.dist.php 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. /**
  48. * Login modules settings
  49. */
  50. // CAS IMPLEMENTATION
  51. // -> Go to your portal Chamilo > Administration > CAS to activate CAS
  52. // You can leave these lines uncommented even if you don't use CAS authentification
  53. //$extAuthSource["cas"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/login.php";
  54. //$extAuthSource["cas"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/newUser.php";
  55. // NEW LDAP IMPLEMENTATION BASED ON external_login info
  56. // -> Uncomment the two lines bellow to activate LDAP AND edit main/auth/external_login/ldap.conf.php for configuration
  57. // $extAuthSource["extldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/login.ldap.php";
  58. // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.ldap.php";
  59. //
  60. // FACEBOOK IMPLEMENTATION BASED ON external_login info
  61. // -> Uncomment the line bellow to activate Facebook Auth AND edit main/auth/external_login/ldap.conf.php for configuration
  62. // $_configuration['facebook_auth'] = 1;
  63. //
  64. // OTHER EXTERNAL LOGIN INFORMATION
  65. // To fetch external login information, uncomment those 2 lines and modify files auth/external_login/newUser.php and auth/external_login/updateUser.php files
  66. // $extAuthSource["external_login"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.php";
  67. // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/updateUser.php";
  68. /**
  69. *
  70. * Hosting settings - Allows you to set limits to the Chamilo portal when
  71. * hosting it for a third party. These settings can be overwritten by an
  72. * optionally-loaded extension file with only the settings (no comments).
  73. * The settings use an index at the first level to represent the ID of the
  74. * URL in case you use multi-url (otherwise it will always use 1, which is
  75. * the ID of the only URL inside the access_url table).
  76. */
  77. // Set a maximum number of users. Default (0) = no limit
  78. $_configuration[1]['hosting_limit_users'] = 0;
  79. // Set a maximum number of teachers. Default (0) = no limit
  80. $_configuration[1]['hosting_limit_teachers'] = 0;
  81. // Set a maximum number of courses. Default (0) = no limit
  82. $_configuration[1]['hosting_limit_courses'] = 0;
  83. // Set a maximum number of sessions. Default (0) = no limit
  84. $_configuration[1]['hosting_limit_sessions'] = 0;
  85. // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB, etc)
  86. // Default (0) = no limit
  87. $_configuration[1]['hosting_limit_disk_space'] = 0;
  88. // Set a maximum number of usable courses. Default (0) = no limit.
  89. // Should always be lower than the hosting_limit_courses.
  90. // If set, defining a course as "hidden" will free room for
  91. // new courses (up to the hosting_limit_courses, if any value is set there).
  92. // hosting_limit_enabled_courses is the maximum number of courses that are *not* hidden.
  93. $_configuration[1]['hosting_limit_active_courses'] = 0;
  94. // Email to warn if limit was reached.
  95. //$_configuration[1]['hosting_contact_mail'] = 'example@example.org';
  96. // Portal size limit in MB (set to 1024 for 1GB, 5120 for 5GB, etc).
  97. $_configuration['hosting_total_size_limit'] = 0;
  98. /**
  99. * Content Delivery Network (CDN) settings. Only use if you need a separate
  100. * server to serve your static data. If you don't know what a CDN is, you
  101. * don't need it. These settings are for simple Origin Pull CDNs and are
  102. * experimental. Enable only if you really know what you're doing.
  103. * This might conflict with multiple-access urls.
  104. */
  105. // Set the following setting to true to start using the CDN
  106. $_configuration['cdn_enable'] = false;
  107. // The following setting will be ignored if the previous one is set to false
  108. $_configuration['cdn'] = array(
  109. // You can define several CDNs and split them by extensions
  110. // Replace the following by your full CDN URL, which should point to
  111. // your Chamilo's root directory. DO NOT INCLUDE a final slash! (won't work)
  112. 'http://cdn.chamilo.org' => array(
  113. '.css',
  114. '.js',
  115. '.jpg',
  116. '.jpeg',
  117. '.png',
  118. '.gif',
  119. '.avi',
  120. '.flv'
  121. ),
  122. // copy the line above and modify following your needs
  123. );
  124. /**
  125. * Misc. settings
  126. */
  127. // security word for password recovery
  128. $_configuration['security_key'] = '{SECURITY_KEY}';
  129. // Hash function method
  130. $_configuration['password_encryption'] = '{ENCRYPT_PASSWORD}';
  131. // You may have to restart your web server if you change this
  132. $_configuration['session_stored_in_db'] = false;
  133. // Session lifetime
  134. $_configuration['session_lifetime'] = SESSION_LIFETIME;
  135. // Activation for multi-url access
  136. //$_configuration['multiple_access_urls'] = true;
  137. $_configuration['software_name'] = 'Chamilo';
  138. $_configuration['software_url'] = 'http://www.chamilo.org/';
  139. //Deny the elimination of users
  140. $_configuration['deny_delete_users'] = false;
  141. // Version settings
  142. $_configuration['system_version'] = '{NEW_VERSION}';
  143. $_configuration['system_stable'] = NEW_VERSION_STABLE;
  144. /**
  145. * Settings to be included as settings_current in future versions
  146. */
  147. // Uncomment the following to prevent all admins to use the "login as" feature
  148. //$_configuration['login_as_forbidden_globally'] = true;
  149. // If session_stored_in_db is false, an alternative session storage mechanism
  150. // can be used, which allows for a volatile storage in Memcache, and a more
  151. // permanent "backup" storage in the database, every once in a while (see
  152. // frequency). This is generally used in HA clusters configurations
  153. // This requires memcache or memcached and the php5-memcache module to be setup
  154. //$_configuration['session_stored_in_db_as_backup'] = true;
  155. // Define the different memcache servers available
  156. //$_configuration['memcache_server'] = array(
  157. // 0 => array(
  158. // 'host' => 'chamilo8',
  159. // 'port' => '11211',
  160. // ),
  161. // 1 => array(
  162. // 'host' => 'chamilo9',
  163. // 'port' => '11211',
  164. // ),
  165. //);
  166. // Define the frequency to which the data must be stored in the database
  167. //$_configuration['session_stored_after_n_times'] = 10;
  168. // If the database is down this css style will be used to show the errors.
  169. //$_configuration['theme_fallback'] = 'chamilo'; // (chamilo theme)
  170. // The default template that will be use in the system.
  171. //$_configuration['default_template'] = 'default'; // (main/template/default)
  172. // Hide fields in the main/user/user.php page
  173. //$_configuration['hide_user_field_from_list'] = array('username');
  174. // Aspell Settings
  175. //$_configuration['aspell_bin'] = '/usr/bin/hunspell';
  176. //$_configuration['aspell_opts'] = '-a -d en_GB -H -i utf-8';
  177. //$_configuration['aspell_temp_dir'] = './';
  178. // Custom name_order_conventions
  179. //$_configuration['name_order_conventions'] = array(
  180. // 'french' => array('format' => 'title last_name first_name', 'sort_by' => 'last_name')
  181. //);
  182. // Course log - Default columns to hide
  183. //$_configuration['course_log_hide_columns'] = array(1, 9);
  184. // Unoconv binary file
  185. //$_configuration['unoconv.binaries'] = '/usr/bin/unoconv';
  186. // Proxy settings for access external services
  187. /*$_configuration['proxy_settings'] = array(
  188. 'http' => array(
  189. 'proxy' => 'tcp://example.com:8080',
  190. 'request_fulluri'=>true
  191. )
  192. );*/
  193. // E-mail accounts to send notifications to when executing cronjobs - works for main/cron/import_csv.php
  194. //$_configuration['cron_notification_mails'] = array('email@example.com', 'email2@example.com');
  195. // Only shows the fields in this list
  196. /*$_configuration['allow_fields_inscription'] = [
  197. 'official_code',
  198. 'phone',
  199. 'status',
  200. 'language',
  201. 'extra_fields'
  202. ];*/
  203. // Boost option to ignore encoding check for learning paths
  204. //$_configuration['lp_fixed_encoding'] = 'false';