config.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
  2. /*
  3. | -------------------------------------------------------------------
  4. | DATABASE CONNECTIVITY SETTINGS
  5. | -------------------------------------------------------------------
  6. | This file will contain the settings needed to access your database.
  7. |
  8. | For complete instructions please consult the 'Database Connection'
  9. | page of the User Guide.
  10. |
  11. | -------------------------------------------------------------------
  12. | EXPLANATION OF VARIABLES
  13. | -------------------------------------------------------------------
  14. |
  15. | 'connectionString' Hostname, database, port and database type for
  16. | the connection. Driver example: mysql. Currently supported:
  17. | mysql, pgsql, mssql, sqlite, oci
  18. | 'username' The username used to connect to the database
  19. | 'password' The password used to connect to the database
  20. | 'tablePrefix' You can add an optional prefix, which will be added
  21. | to the table name when using the Active Record class
  22. |
  23. */
  24. return array(
  25. 'components' => array(
  26. 'db' => array(
  27. 'connectionString' => 'pgsql:host=db;port=5432;user=postgres;password=POSTGRES_PASSWORD;dbname=postgres;',
  28. 'emulatePrepare' => true,
  29. 'username' => 'postgres',
  30. 'password' => 'POSTGRES_PASSWORD',
  31. 'charset' => 'utf8',
  32. 'tablePrefix' => 'lime_',
  33. ),
  34. // Uncomment the following lines if you need table-based sessions.
  35. // Note: Table-based sessions are currently not supported on MSSQL server.
  36. // 'session' => array (
  37. // 'class' => 'application.core.web.DbHttpSession',
  38. // 'connectionID' => 'db',
  39. // 'sessionTableName' => '{{sessions}}',
  40. // ),
  41. 'urlManager' => array(
  42. 'urlFormat' => 'get',
  43. 'rules' => array(
  44. // You can add your own rules here
  45. ),
  46. 'showScriptName' => true,
  47. ),
  48. ),
  49. // For security issue : it's better to set runtimePath out of web access
  50. // Directory must be readable and writable by the webuser
  51. // 'runtimePath'=>'/var/limesurvey/runtime/'
  52. // Use the following config variable to set modified optional settings copied from config-defaults.php
  53. 'config'=>array(
  54. // debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
  55. // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
  56. // on your webspace.
  57. // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
  58. 'debug'=>0,
  59. 'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
  60. // Update default LimeSurvey config here
  61. )
  62. );
  63. /* End of file config.php */