Cockpit 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
Cockpit 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 Configuration of Cockpit CMS

Cockpit CMS runs on PHP 8.1+ and supports SQLite (by default), MongoDB or PostgreSQL. Minimum requirements: PHP with extensions curl, gd, zip, intl.

Docker Compose

version: '3.8'
services:
  cockpit:
    image: agentejo/cockpit:latest
    ports:
      - "8080:80"
    volumes:
      - ./storage:/var/www/html/storage
      - ./config:/var/www/html/config
    environment:
      - COCKPIT_SESSION_NAME=cockpit_session
      - COCKPIT_SECRET_KEY=change-me-32-chars-minimum-length
    restart: unless-stopped

Nginx + PHP-FPM

server {
  listen 80;
  server_name cms.mysite.com;
  root /var/www/cockpit;
  index index.php;

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

  location ~ \.php$ {
    fastcgi_pass php-fpm:9000;
    fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
    include fastcgi_params;
  }

  # Protect storage
  location ~* /storage/(.*)$ {
    deny all;
  }
}

Configuration (config/config.php)

<?php
return [
  'app.name' => 'My CMS',
  'app.language' => 'en',

  // Database (SQLite by default — no setup required)
  // For MongoDB:
  'database' => [
    'server' => 'mongodb://localhost:27017',
    'options' => ['db' => 'cockpitdb'],
  ],

  // Email
  'mailer' => [
    'from'       => '[email protected]',
    'from_name'  => 'My Site',
    'transport'  => 'smtp',
    'host'       => 'smtp.mailgun.org',
    'user'       => '[email protected]',
    'password'   => 'password',
    'port'       => 587,
    'auth'       => true,
    'encryption' => 'tls',
  ],

  // File storage
  'filestorage' => [
    's3' => [
      'region'  => 'eu-west-1',
      'key'     => 'ACCESS_KEY',
      'secret'  => 'SECRET_KEY',
      'bucket'  => 'my-cockpit-media',
    ],
  ],
];

API Keys and Access

After installation: go to /install, create admin account. API tokens are created in Settings → API Access Tokens. It is recommended to create a separate read-only token for the frontend.

Setting up Cockpit on a prepared server takes 1–2 hours.