System installation

Web server requirements:

  • Apache server with .htaccess либо NGINX

  • PHP 5.3.3 (or newer)

  • MySQL (and data management access)

Installation steps:

  1. Create a repository clone or download zip archive with the latest version.

  2. Place the files on your web server.

    When installing the site not in the root directory, you need to make changes in two places. In the files:

    • .htaccess => RewriteBase /subfolder/
    • cms\app\bootstrap.php => Kohana::init( array( 'base_url' => '/subfolder/', ... ) );
  3. Before installation, you must remove or clear the contents of the config.php file, if it is in the root of the site. You must also set write and read permissions for the following folders:

    • cms/application/cache
    • cms/application/logs
    • layouts
    • snippets
    • public
    • config.php (When installing, settings are written to this file, so it must be writable. You can create this file manually)
    Via the console, you can do it with the command chmod -R a + rwx ..., for example, chmod -R a + rwx cms / application / cache
  4. Open the home page through a browser. The system will start the process.

    If an error occurred ErrorException [ 2 ]: date() []: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. ... AT cms/app/bootstrap.php there is a string date_default_timezone_set( 'UTC' ), it is necessary to uncomment it. Available time zones

    Если возникла ошибка Call to a member function load() on a non-object in cms/application/classes/config.php on line 16

    It is necessary to fulfill point 3.

    If an error has occurred Fatal error: Undefined class Constant Log :: EMERGENCY in /cms/system/classes/kohana/kohana/exception.php on line 140

    PHP version lower than 5.3

  5. Fill in all required fields and click. To install
  6. After installing the system, you will find yourself on the login page, where your login and password will be specified.

Configuration Example for NGINX

server {
        charset        utf8;
        listen          80;
        root            /var/www;
        server_name     backend_node_1;
        autoindex off;
        location / {
                try_files $uri /index.php?$args;
        location = /index.php {
                fastcgi_index  index.php;
                fastcgi_param  KOHANA_ENV production;
                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                include        fastcgi_params;
        location ~ /\.ht {
            deny all;

If errors occur or if you just can not install the system,

Ask questions

System update

To upgrade the system to the new version you need:

  • 1.

    Download the latest version from Github

  • 2.

    Extract files from archive

  • 3.

    Update directories and files: cms, index.php

    At the time of the update, it is desirable to leave the old folder cmsBy simply renaming it, it will help in case of errors to return to the previous version of the system.

  • 4.

    Update database structure

    Starting from version 9 in KodiCMS there is a mechanism for comparing tables in the database and used by the current version of CMS, you can see the information in the admin panel on backend/update/if there are differences in the database schema, then SQL code will be shown that will help correct these differences

If errors occur during the update process,

Ask questions

blog comments powered by Disqus