configuration.php 6.8 KB

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