configuration.dist.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. * Chamilo 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 (table settings_current).
  22. */
  23. /**
  24. * Database settings
  25. */
  26. // Host.
  27. $_configuration['db_host'] = '{DATABASE_HOST}';
  28. // Port.
  29. $_configuration['db_port'] = '{DATABASE_PORT}';
  30. // Username.
  31. $_configuration['db_user'] = '{DATABASE_USER}';
  32. // Password.
  33. $_configuration['db_password'] = '{DATABASE_PASSWORD}';
  34. // Driver.
  35. $_configuration['db_driver'] = '{DATABASE_DRIVER}';
  36. // Database name.
  37. $_configuration['main_database'] = '{DATABASE_MAIN}';
  38. /** Directory settings */
  39. // URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/
  40. // Comment this line if you want to enable multiple URLs
  41. $_configuration['root_web'] = '{ROOT_WEB}';
  42. /** Chamilo will automatically manage the following paths */
  43. // Path to the webroot of system, example: /var/www/chamilo
  44. //$_configuration['root_sys'] = '{ROOT_SYS}';
  45. // Path to the data folder, example /var/www/chamilo/data
  46. //$_configuration['sys_data_path'] = null;
  47. // Path to the config folder, example /var/www/chamilo/config
  48. //$_configuration['sys_config_path'] = null;
  49. // Path to the temp folder, example /var/www/chamilo/temp
  50. //$_configuration['sys_temp_path'] = null;
  51. // Path to the logs folder, example /var/www/chamilo/logs
  52. //$_configuration['sys_log_path'] = null;
  53. // URL to your phpMyAdmin installation.
  54. // If not empty, a link will be available in the Platform Administration
  55. $_configuration['db_admin_path'] = '';
  56. /** Login modules settings */
  57. // CAS IMPLEMENTATION
  58. // -> Go to your portal Chamilo > Administration > CAS to activate CAS
  59. // You can leave these lines uncommented even if you don't use CAS authentification
  60. //$extAuthSource["cas"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/login.php";
  61. //$extAuthSource["cas"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/newUser.php";
  62. //
  63. // NEW LDAP IMPLEMENTATION BASED ON external_login info
  64. // -> Uncomment the two lines bellow to activate LDAP AND edit main/auth/external_login/ldap.conf.php for configuration
  65. // $extAuthSource["extldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/login.ldap.php";
  66. // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.ldap.php";
  67. //
  68. // FACEBOOK IMPLEMENTATION BASED ON external_login info
  69. // -> Uncomment the line bellow to activate Facebook Auth AND edit main/auth/external_login/ldap.conf.php for configuration
  70. // $_configuration['facebook_auth'] = 1;
  71. //
  72. // OTHER EXTERNAL LOGIN INFORMATION
  73. // To fetch external login information, uncomment those 2 lines and modify files auth/external_login/newUser.php and auth/external_login/updateUser.php files
  74. // $extAuthSource["external_login"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.php";
  75. // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/updateUser.php";
  76. /**
  77. *
  78. * Hosting settings - Allows you to set limits to the Chamilo portal when
  79. * hosting it for a third party. These settings can be overwritten by an
  80. * optionally-loaded extension file with only the settings (no comments).
  81. * The settings use an index at the first level to represent the ID of the
  82. * URL in case you use multi-url (otherwise it will always use 1, which is
  83. * the ID of the only URL inside the access_url table).
  84. */
  85. // Set a maximum number of users. Default (0) = no limit
  86. $_configuration[1]['hosting_limit_users'] = 0;
  87. // Set a maximum number of teachers. Default (0) = no limit
  88. $_configuration[1]['hosting_limit_teachers'] = 0;
  89. // Set a maximum number of courses. Default (0) = no limit
  90. $_configuration[1]['hosting_limit_courses'] = 0;
  91. // Set a maximum number of sessions. Default (0) = no limit
  92. $_configuration[1]['hosting_limit_sessions'] = 0;
  93. // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB).
  94. // Default (0) = no limit
  95. $_configuration[1]['hosting_limit_disk_space'] = 0;
  96. /**
  97. * Content Delivery Network (CDN) settings. Only use if you need a separate
  98. * server to serve your static data. If you don't know what a CDN is, you
  99. * don't need it. These settings are for simple Origin Pull CDNs and are
  100. * experimental. Enable only if you really know what you're doing.
  101. * This might conflict with multiple-access urls.
  102. */
  103. // Set the following setting to true to start using the CDN
  104. $_configuration['cdn_enable'] = false;
  105. // The following setting will be ignored if the previous one is set to false
  106. $_configuration['cdn'] = array(
  107. //You can define several CDNs and split them by extensions
  108. //Replace the following by your full CDN URL, which should point to
  109. // your Chamilo's root directory. DO NOT INCLUDE a final slash! (won't work)
  110. 'http://cdn.chamilo.org' => array('.css','.js','.jpg','.jpeg','.png','.gif','.avi','.flv'),
  111. // copy the line above and modify following your needs
  112. );
  113. /**
  114. * Session settings
  115. */
  116. // Session lifetime
  117. $_configuration['session_lifetime'] = SESSION_LIFETIME;
  118. /** Security */
  119. // Security word for password recovery.
  120. $_configuration['security_key'] = '{SECURITY_KEY}';
  121. // Hash function method.
  122. $_configuration['password_encryption'] = '{ENCRYPT_PASSWORD}';
  123. //Deny the elimination of users.
  124. $_configuration['deny_delete_users'] = false;
  125. //Prevent all admins from using the "login_as" feature.
  126. $_configuration['login_as_forbidden_globally'] = false;
  127. /** Multiple URL */
  128. // Activation for multi-url access.
  129. //$_configuration['multiple_access_urls'] = true;
  130. /** Chamilo version settings */
  131. $_configuration['system_version'] = '{NEW_VERSION}';
  132. $_configuration['system_stable'] = NEW_VERSION_STABLE;
  133. $_configuration['software_name'] = 'Chamilo';
  134. $_configuration['software_url'] = 'http://www.chamilo.org/';
  135. /** Chamilo dev settings */
  136. // Generate twig templates in every request, prompts SQL errors.
  137. $_configuration['debug'] = false;
  138. $_configuration['platform_charset'] = 'utf-8';
  139. // Show a useful toolbar with memory used, loaded time, request, session, logs information.
  140. $_configuration['show_profiler'] = false;
  141. $_configuration['name_order_conventions'] = array();