configuration.dist.php 6.7 KB

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