How to locate Pagekit Configuration File

Updated on Dec 10, 2015

The Configuration File of your Pagekit based website is very important. It is used when restoring your website as you will need to manually connect the new database to your files. It can also be used to manually edit settings if you have trouble accessing the admin dashboard of your account.

If your Pagekit website is installed directly within the public_html/ directory of your account, the location of the file in would be public_html/config.php. You can access it via your cPanel File Manager and edit it by right clicking on it and selecting the edit feature.

This is how the default file looks like:

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

]
On this page...

    Pagekit Hosting

    • Free Pagekit Installation
    • 24/7 Pagekit Support
    • Free Domain Transfer
    • Hack-free Protection
    • Fast SSD Storage
    • Free Cloudflare CDN
    • Free Pagekit Transfer
    • Immediate Activation
    View More