configuration.dist.php 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. * Virtual 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. * example: $_configuration['tracking_enabled'] (assuming that the install
  24. * script creates the necessary tables anyway).
  25. */
  26. /**
  27. * MYSQL connection settings
  28. */
  29. // Your MySQL server
  30. $_configuration['db_host'] = '{DATABASE_HOST}';
  31. // Your MySQL username
  32. $_configuration['db_user'] = '{DATABASE_USER}';
  33. // Your MySQL password
  34. $_configuration['db_password'] = '{DATABASE_PASSWORD}';
  35. /**
  36. * Database settings
  37. */
  38. // Is tracking enabled?
  39. $_configuration['tracking_enabled'] = TRACKING_ENABLED;
  40. // Is single database enabled (DO NOT MODIFY THIS)
  41. $_configuration['single_database'] = SINGLE_DATABASE;
  42. // Prefix for course tables (IF NOT EMPTY, can be replaced by another prefix, else leave empty)
  43. $_configuration['table_prefix'] = '{COURSE_TABLE_PREFIX}';
  44. // Separator between database and table name (DO NOT MODIFY THIS)
  45. $_configuration['db_glue'] = '{DATABASE_GLUE}';
  46. // prefix all created bases (for courses) with this string
  47. $_configuration['db_prefix'] = '{DATABASE_PREFIX}';
  48. // main Chamilo database
  49. $_configuration['main_database'] = '{DATABASE_MAIN}';
  50. // stats Chamilo database
  51. $_configuration['statistics_database'] ='{DATABASE_STATS}';
  52. // User Personal Database (where all the personal stuff of the user is stored
  53. // (personal agenda items, course sorting)
  54. $_configuration['user_personal_database']='{DATABASE_PERSONAL}';
  55. // Enable access to database management for platform admins.
  56. $_configuration['db_manager_enabled'] = false;
  57. /**
  58. * Directory settings
  59. */
  60. // URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/
  61. $_configuration['root_web'] = '{ROOT_WEB}';
  62. // Path to the webroot of system, example: /var/www/
  63. $_configuration['root_sys'] = '{ROOT_SYS}';
  64. // Path from your WWW-root to the root of your Chamilo installation, example: chamilo (this means chamilo is installed in /var/www/chamilo/
  65. $_configuration['url_append'] = '{URL_APPEND_PATH}';
  66. // Directory of the Chamilo code. You could change this but it is not advised since this has not been tested yet.
  67. $_configuration['code_append'] = "main/";
  68. // Directory to store all course-related files. You could change this but it is not advised since this has not been tested yet.
  69. $_configuration['course_folder'] = "courses/";
  70. // URL to your phpMyAdmin installation.
  71. // If not empty, a link will be available in the Platform Administration
  72. $_configuration['db_admin_path'] = '';
  73. /**
  74. *
  75. * Login modules settings
  76. */
  77. // CAS IMPLEMENTATION
  78. // -> Go to your portal Chamilo > Administration > CAS to activate CAS
  79. // You can leave these lines uncommented even if you don't use CAS authentification
  80. $extAuthSource["cas"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/login.php";
  81. $extAuthSource["cas"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/newUser.php";
  82. //
  83. // NEW LDAP IMPLEMENTATION BASED ON external_login info
  84. // -> Uncomment the two lines bellow to activate LDAP AND edit main/auth/external_login/ldap.conf.php for configuration
  85. // $extAuthSource["extldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/login.ldap.php";
  86. // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.ldap.php";
  87. //
  88. // FACEBOOK IMPLEMENTATION BASED ON external_login info
  89. // -> Uncomment the line bellow to activate Facebook Auth AND edit main/auth/external_login/ldap.conf.php for configuration
  90. // $_configuration['facebook_auth'] = 1;
  91. //
  92. // OTHER EXTERNAL LOGIN INFORMATION
  93. // To fetch external login information, uncomment those 2 lines and modify files auth/external_login/newUser.php and auth/external_login/updateUser.php files
  94. // $extAuthSource["external_login"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.php";
  95. // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/updateUser.php";
  96. /**
  97. *
  98. * Hosting settings - Allows you to set limits to the Chamilo portal when
  99. * hosting it for a third party. These settings can be overwritten by an
  100. * optionally-loaded extension file with only the settings (no comments).
  101. * The settings use an index at the first level to represent the ID of the
  102. * URL in case you use multi-url (otherwise it will always use 1, which is
  103. * the ID of the only URL inside the access_url table).
  104. */
  105. // Set a maximum number of users. Default (0) = no limit
  106. $_configuration[1]['hosting_limit_users'] = 0;
  107. // Set a maximum number of teachers. Default (0) = no limit
  108. $_configuration[1]['hosting_limit_teachers'] = 0;
  109. // Set a maximum number of courses. Default (0) = no limit
  110. $_configuration[1]['hosting_limit_courses'] = 0;
  111. // Set a maximum number of sessions. Default (0) = no limit
  112. $_configuration[1]['hosting_limit_sessions'] = 0;
  113. // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB).
  114. // Default (0) = no limit
  115. $_configuration[1]['hosting_limit_disk_space'] = 0;
  116. /**
  117. * Content Delivery Network (CDN) settings. Only use if you need a separate
  118. * server to serve your static data. If you don't know what a CDN is, you
  119. * don't need it. These settings are for simple Origin Pull CDNs and are
  120. * experimental. Enable only if you really know what you're doing.
  121. * This might conflict with multiple-access urls.
  122. */
  123. // Set the following setting to true to start using the CDN
  124. $_configuration['cdn_enable'] = false;
  125. // The following setting will be ignored if the previous one is set to false
  126. $_configuration['cdn'] = array(
  127. //You can define several CDNs and split them by extensions
  128. //Replace the following by your full CDN URL, which should point to
  129. // your Chamilo's root directory. DO NOT INCLUDE a final slash! (won't work)
  130. 'http://cdn.chamilo.org' => array('.css','.js','.jpg','.jpeg','.png','.gif','.avi','.flv'),
  131. // copy the line above and modify following your needs
  132. );
  133. /**
  134. * Misc. settings
  135. */
  136. // Verbose backup
  137. $_configuration['verbose_backup'] = false;
  138. // security word for password recovery
  139. $_configuration['security_key'] = '{SECURITY_KEY}';
  140. // Hash function method
  141. $_configuration['password_encryption'] = '{ENCRYPT_PASSWORD}';
  142. // You may have to restart your web server if you change this
  143. $_configuration['session_stored_in_db'] = false;
  144. // Session lifetime
  145. $_configuration['session_lifetime'] = SESSION_LIFETIME;
  146. // Activation for multi-url access
  147. //$_configuration['multiple_access_urls'] = true;
  148. $_configuration['software_name'] = 'Chamilo';
  149. $_configuration['software_url'] = 'http://www.chamilo.org/';
  150. //Deny the elimination of users
  151. $_configuration['deny_delete_users'] = false;
  152. // Version settings
  153. $_configuration['system_version'] = '{NEW_VERSION}';
  154. $_configuration['system_stable'] = NEW_VERSION_STABLE;
  155. /**
  156. * Settings to be included as settings_current in future versions
  157. */
  158. // Hide the main home section for connected users (to show announcements instead)
  159. //$_configuration['hide_home_top_when_connected'] = true;
  160. // Hide the global announcements for non-connected users
  161. //$_configuration['hide_global_announcements_when_not_connected'] = true;
  162. // Use this course as template for all new courses (define course real ID as value)
  163. //$_configuration['course_creation_use_template'] = 14;
  164. // Uncomment the following to prevent all admins to use the "login as" feature
  165. //$_configuration['login_as_forbidden_globally'] = true;
  166. // Add password strength checker
  167. //$_configuration['allow_strength_pass_checker'] = true;
  168. // Enable captcha
  169. //$_configuration['enable_captcha'] = true;
  170. //$_configuration['allow_captcha'] = true;
  171. // Prevent account from logging in for a certain amount of time if captcha is wrong for the specified number of times
  172. //$_configuration['captcha_number_mistakes_to_block_account'] = 5;
  173. // Prevent account from logging in for the specified number of minutes
  174. //$_configuration['captcha_time_to_block'] = 5;//minutes
  175. // Allow DRH role to access all content and users from the sessions he follows
  176. //$_configuration['drh_can_access_all_session_content'] = true;
  177. // Display group's forum in general forum tool
  178. //$_configuration['display_groups_forum_in_general_tool'] = true;
  179. // Boost query on last connection time
  180. //$_configuration['save_user_last_login'] = true;
  181. // Allow course tutors in sessions to add existing students to their session
  182. //$_configuration['allow_tutors_to_assign_students_to_session'] = 'false';