configuration.dist.yml.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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'] = 'localhost';
  31. // Your MySQL username
  32. $_configuration['db_user'] = 'root';
  33. // Your MySQL password
  34. $_configuration['db_password'] = 'root';
  35. /**
  36. * Database settings
  37. */
  38. // Prefix for course tables (IF NOT EMPTY, can be replaced by another prefix, else leave empty)
  39. $_configuration['table_prefix'] = '';
  40. // Separator between database and table name (DO NOT MODIFY THIS)
  41. $_configuration['db_glue'] = '`.`';
  42. // prefix all created bases (for courses) with this string
  43. $_configuration['db_prefix'] = '';
  44. // main Chamilo database
  45. $_configuration['main_database'] = 'chamilo';
  46. /**
  47. * Directory settings
  48. */
  49. // Path to the webroot of system, example: /var/www/
  50. $_configuration['root_sys'] = getcwd().'/';
  51. // Path from your WWW-root to the root of your Chamilo installation, example: chamilo (this means chamilo is installed in /var/www/chamilo/
  52. $_configuration['url_append'] = '/'.basename(getcwd());
  53. // URL to the root of your Chamilo installation, e.g.: http://www.mychamilo.com/
  54. $_configuration['root_web'] = 'http://localhost'.$_configuration['url_append'];
  55. // Directory of the Chamilo code. You could change this but it is not advised since this has not been tested yet.
  56. $_configuration['code_append'] = "main/";
  57. // Directory to store all course-related files. You could change this but it is not advised since this has not been tested yet.
  58. $_configuration['course_folder'] = "courses/";
  59. // URL to your phpMyAdmin installation.
  60. // If not empty, a link will be available in the Platform Administration
  61. $_configuration['db_admin_path'] = '';
  62. /**
  63. *
  64. * Login modules settings
  65. */
  66. // CAS IMPLEMENTATION
  67. // -> Go to your portal Chamilo > Administration > CAS to activate CAS
  68. // You can leave these lines uncommented even if you don't use CAS authentification
  69. $extAuthSource["cas"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/login.php";
  70. $extAuthSource["cas"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/cas/newUser.php";
  71. //
  72. // NEW LDAP IMPLEMENTATION BASED ON external_login info
  73. // -> Uncomment the two lines bellow to activate LDAP AND edit main/auth/external_login/ldap.conf.php for configuration
  74. // $extAuthSource["extldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/login.ldap.php";
  75. // $extAuthSource["extldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.ldap.php";
  76. //
  77. // FACEBOOK IMPLEMENTATION BASED ON external_login info
  78. // -> Uncomment the line bellow to activate Facebook Auth AND edit main/auth/external_login/ldap.conf.php for configuration
  79. // $_configuration['facebook_auth'] = 1;
  80. //
  81. // OTHER EXTERNAL LOGIN INFORMATION
  82. // To fetch external login information, uncomment those 2 lines and modify files auth/external_login/newUser.php and auth/external_login/updateUser.php files
  83. // $extAuthSource["external_login"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/newUser.php";
  84. // $extAuthSource["external_login"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_login/updateUser.php";
  85. /**
  86. *
  87. * Hosting settings - Allows you to set limits to the Chamilo portal when
  88. * hosting it for a third party. These settings can be overwritten by an
  89. * optionally-loaded extension file with only the settings (no comments).
  90. * The settings use an index at the first level to represent the ID of the
  91. * URL in case you use multi-url (otherwise it will always use 1, which is
  92. * the ID of the only URL inside the access_url table).
  93. */
  94. // Set a maximum number of users. Default (0) = no limit
  95. $_configuration[1]['hosting_limit_users'] = 0;
  96. // Set a maximum number of teachers. Default (0) = no limit
  97. $_configuration[1]['hosting_limit_teachers'] = 0;
  98. // Set a maximum number of courses. Default (0) = no limit
  99. $_configuration[1]['hosting_limit_courses'] = 0;
  100. // Set a maximum number of sessions. Default (0) = no limit
  101. $_configuration[1]['hosting_limit_sessions'] = 0;
  102. // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB).
  103. // Default (0) = no limit
  104. $_configuration[1]['hosting_limit_disk_space'] = 0;
  105. /**
  106. * Content Delivery Network (CDN) settings. Only use if you need a separate
  107. * server to serve your static data. If you don't know what a CDN is, you
  108. * don't need it. These settings are for simple Origin Pull CDNs and are
  109. * experimental. Enable only if you really know what you're doing.
  110. * This might conflict with multiple-access urls.
  111. */
  112. // Set the following setting to true to start using the CDN
  113. $_configuration['cdn_enable'] = false;
  114. // The following setting will be ignored if the previous one is set to false
  115. $_configuration['cdn'] = array(
  116. //You can define several CDNs and split them by extensions
  117. //Replace the following by your full CDN URL, which should point to
  118. // your Chamilo's root directory. DO NOT INCLUDE a final slash! (won't work)
  119. 'http://cdn.chamilo.org' => array('.css','.js','.jpg','.jpeg','.png','.gif','.avi','.flv'),
  120. // copy the line above and modify following your needs
  121. );
  122. /**
  123. * Misc. settings
  124. */
  125. // Verbose backup
  126. $_configuration['verbose_backup'] = false;
  127. // security word for password recovery
  128. $_configuration['security_key'] = md5(uniqid(rand().time()));
  129. // Hash function method
  130. $_configuration['password_encryption'] = 'sha1';
  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'] = 3600;
  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'] = '1.10';
  143. $_configuration['system_stable'] = '1.10';