Skip to content

Latest commit

 

History

History
39 lines (37 loc) · 1.63 KB

configuration-file.md

File metadata and controls

39 lines (37 loc) · 1.63 KB

Configuration File

Change settings in Pagekit's configuration file.

Pagekit stores parts of its configuration in a /config.php file located on the root level. It is auto generated during the installation. The normal way of editing it would be through Pagekit System > Settings admin area, although there are situations where the manual editing is necessary. The following sections describe the most common settings.

'database' => [
  'default' => 'mysql',      // default database connection
  'connections' => [         // array of database connections
    'mysql' => [             // database driver name, mysql or sqlite
      'host' => 'localhost', // database server host name
      'user' => 'user',      // database server user name
      'password' => 'pass',  // database password
      'dbname' => 'pagekit', // database name
      'prefix' => 'pk_'      // database prefix
    ]
  ]
],
'system' => [
  'secret' => 'secret'       // the secret string generated during installation
],
'system/cache' => [
  'caches' => [
    'cache' => [
      'storage' => 'auto'    // the cache method to be used, if enabled
    ]
  ],
  'nocache' => false         // the cache state - you can disable it entirely by setting to 'true'
],
'system/finder' => [
  'storage' => '/storage'    // the relative path to the storage folder - e.g. media files will be stored here
],
'application' => [
  'debug' => false           // the debug mode state - enable while developing to get debug output
],
'debug' => [
  'enabled' => false         // the debug toolbar state - enable it to get information, about requests, memory usage etc
]