configuration.dist.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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. ==============================================================================
  7. Virtual campus configuration
  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. /**
  17. * @todo change these into a $_configuration array. $_configuration will use only the bare essential variables
  18. * for configuring the platform (paths, database connections, ...). Changing a $_configuration variable
  19. * CAN break the installation.
  20. * Besides the $_configuration array there is also a $_settings array that contains variables that
  21. * can be changed and will not break the platform.
  22. * Some of the variables that are used here can move to the $_settings array (and thus be stored in the database)
  23. * example: $_configuration['tracking_enabled'] (assuming that the install script creates the necessary tables anyway.
  24. * $phpMyAdminPath
  25. *
  26. * @todo use more obvious names for the variables and respect the code guidelines
  27. */
  28. //============================================================================
  29. // MYSQL connection settings
  30. //============================================================================
  31. // Your MySQL server
  32. $_configuration['db_host'] = '{DATABASE_HOST}';
  33. // Your MySQL username
  34. $_configuration['db_user'] = '{DATABASE_USER}';
  35. // Your MySQL password
  36. $_configuration['db_password'] = '{DATABASE_PASSWORD}';
  37. //============================================================================
  38. // Database settings
  39. //============================================================================
  40. // Is tracking enabled?
  41. $_configuration['tracking_enabled'] = TRACKING_ENABLED;
  42. // Is single database enabled (DO NOT MODIFY THIS)
  43. $_configuration['single_database'] = SINGLE_DATABASE;
  44. // Prefix for course tables (IF NOT EMPTY, can be replaced by another prefix, else leave empty)
  45. $_configuration['table_prefix'] = '{COURSE_TABLE_PREFIX}';
  46. // Separator between database and table name (DO NOT MODIFY THIS)
  47. $_configuration['db_glue'] = '{DATABASE_GLUE}';
  48. // prefix all created bases (for courses) with this string
  49. $_configuration['db_prefix'] = '{DATABASE_PREFIX}';
  50. // main Chamilo database
  51. $_configuration['main_database'] = '{DATABASE_MAIN}';
  52. // stats Chamilo database
  53. $_configuration['statistics_database'] ='{DATABASE_STATS}';
  54. // User Personal Database (where all the personal stuff of the user is stored
  55. // (personal agenda items, course sorting)
  56. $_configuration['user_personal_database']='{DATABASE_PERSONAL}';
  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. // @todo this shouldn't be here.
  71. // Directory of the admin-area
  72. $rootAdminAppend = "admin/";
  73. // Do not change the following values
  74. // @todo should be moved to api_get_path
  75. $rootAdminSys = $clarolineRepositorySys.$rootAdminAppend;
  76. $rootAdminWeb = $clarolineRepositoryWeb.$rootAdminAppend;
  77. // directory to store archived courses
  78. $archiveDirName = "archive";
  79. // URL to your phpMyAdmin installation.
  80. // If not empty, a link will be available in the Platform Administration
  81. $phpMyAdminPath = '';
  82. //============================================================================
  83. // Login modules settings
  84. //============================================================================
  85. // For new login module
  86. // Uncomment these lines to activate ldap
  87. // $extAuthSource["ldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/ldap/login.php";
  88. // $extAuthSource["ldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/ldap/newUser.php";
  89. //
  90. // To fetch external login information, uncomment thoss 2 lines and modify files auth/external_logininfo/newUser.php and auth/external_logininfo/updateUser.php files
  91. // $extAuthSource["external_logininfo"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_logininfo/newUser.php";
  92. // $extAuthSource["external_logininfo"]["updateUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/external_logininfo/updateUser.php";
  93. //============================================================================
  94. // Hosting settings - Allows you to set limits to the Chamilo portal when
  95. // hosting it for a third party. These settings can be overwritten by an
  96. // optionally-loaded extension file with only the settings (no comments).
  97. //============================================================================
  98. // Set a maximum number of users. Default (0) = no limit
  99. $_configuration['hosting_limit_users'] = 0;
  100. // Set a maximum number of teachers. Default (0) = no limit
  101. $_configuration['hosting_limit_teachers'] = 0;
  102. // Set a maximum number of courses. Default (0) = no limit
  103. $_configuration['hosting_limit_courses'] = 0;
  104. // Set a maximum number of sessions. Default (0) = no limit
  105. $_configuration['hosting_limit_sessions'] = 0;
  106. // Set a maximum disk space used, in MB (set to 1024 for 1GB, 5120 for 5GB).
  107. // Default (0) = no limit
  108. $_configuration['hosting_limit_disk_space'] = 0;
  109. //============================================================================
  110. // Misc. settings
  111. //============================================================================
  112. // Verbose backup
  113. $_configuration['verbose_backup'] = false;
  114. // security word for password recovery
  115. $_configuration['security_key'] = '{SECURITY_KEY}';
  116. // Hash function method
  117. $userPasswordCrypted = '{ENCRYPT_PASSWORD}';
  118. // You may have to restart your web server if you change this
  119. $storeSessionInDb = false;
  120. // Session lifetime
  121. $_configuration['session_lifetime'] = SESSION_LIFETIME;
  122. // Activation for multi-url access
  123. //$_configuration['multiple_access_urls'] = true;
  124. $_configuration['software_name'] = 'Chamilo';
  125. $_configuration['software_url'] = 'http://www.chamilo.org/';
  126. //Deny the elimination of users
  127. $_configuration['deny_delete_users'] = false;
  128. // Version settings
  129. $_configuration['system_version'] = '{NEW_VERSION}';
  130. $_configuration['system_stable'] = NEW_VERSION_STABLE;
  131. ?>