Kirby CMS Installation and Setup

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1 servicesAll 2065 services
Kirby CMS Installation and Setup
Simple
from 4 hours to 2 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Installation and Setup of Kirby CMS

Kirby doesn't require database — PHP 8.1+ and web server are enough. Installed via Composer or archive. License needed only for production, works without in development.

System Requirements

  • PHP 8.1 or higher
  • Extensions: mbstring, curl, gd or imagick, json, fileinfo
  • Apache with mod_rewrite or Nginx
  • Write access to content/, media/, site/accounts/ directories

Installation via Composer

composer create-project getkirby/plainkit my-site
cd my-site

For start with admin panel:

composer create-project getkirby/starterkit my-site

Structure after installation:

my-site/
├── content/          # content (no need outside web root)
├── kirby/            # CMS core (don't touch)
├── media/            # generated images (gitignore)
├── site/             # customization
└── index.php         # entry point

Nginx Setup

server {
    listen 80;
    server_name mysite.com;
    root /var/www/my-site;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        fastcgi_pass unix:/run/php/php8.2-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
    }

    # deny access to system directories
    location ~ ^/(kirby|site/accounts|site/sessions) {
        return 403;
    }

    # cache static
    location ~* \.(jpg|jpeg|png|webp|svg|css|js|woff2)$ {
        expires 30d;
        add_header Cache-Control "public, immutable";
    }
}

Apache Setup (.htaccess)

Kirby comes with ready .htaccess, but check few things:

RewriteEngine On
RewriteBase /

# deny direct access to system folders
RewriteRule ^kirby/.*$ - [F,L]
RewriteRule ^site/accounts/.*$ - [F,L]
RewriteRule ^site/sessions/.*$ - [F,L]

# routing
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]

Basic Config

<?php
// site/config/config.php
return [
    'debug'   => false, // true only in development
    'url'     => 'https://mysite.com',
    'locale'  => 'en_US.UTF-8',
    'timezone' => 'Europe/London',

    'languages' => true, // enable multilingual

    'panel' => [
        'install'     => false, // only on first setup
        'slug'        => 'admin', // panel URL
        'css'         => 'assets/admin.css',
    ],

    'cache' => [
        'pages' => [
            'active' => true,
        ],
    ],

    'thumbs' => [
        'driver' => 'im', // ImageMagick instead of GD
        'quality' => 85,
        'format'  => 'webp',
    ],
];

Create First User

After installation, panel available at /panel. On first visit Kirby offers to create administrator via browser. For automation (CI, Docker):

php vendor/bin/kirby create-user \
  --name="Admin" \
  --email="[email protected]" \
  --password="SecurePassword123" \
  --role="admin"

Or programmatically via site/config/install.php:

<?php
use Kirby\Cms\User;

User::create([
    'name'     => 'Admin',
    'email'    => '[email protected]',
    'password' => 'SecurePassword123',
    'role'     => 'admin',
]);

Multilingual Setup

// site/config/config.php
return [
    'languages' => true,
];

Then create languages via panel or files:

// site/languages/en.php
return [
    'code'      => 'en',
    'name'      => 'English',
    'default'   => true,
    'locale'    => 'en_US.UTF-8',
    'url'       => '/',
    'direction' => 'ltr',
    'translations' => [
        'read.more' => 'Read more',
        'published' => 'Published',
    ],
];

Content for English stored in about.en.txt, for Russian — in about.ru.txt.

Git and Deploy

In .gitignore minimal set:

/kirby
/media
/site/accounts
/site/sessions
/.env

kirby/ added as Composer dependency, not committed directly. Deploy via composer install --no-dev on server.

Development Timelines

Setup and basic configuration with Nginx, SSL, and panel — 2–4 hours. With multilingual, user roles, and custom config — 1 day.