RET CMS

A compact, self-hosted PHP CMS for content sites. The engine lives in files and updates only from signed releases; your site — templates, page logic, content — lives in the database and is edited in the admin panel.

Latest release: 0.26.1 · 2026-12-06 · before 1.0
Download ZIP .tar.gz ret-setup.php install.sh

Requirements

Licence. RET CMS is proprietary software. Local development is free and needs no licence (localhost, *.test, *.local). A real domain needs a licence file site/license.key issued for it: without one the installer stops at the licence step and the admin panel does not open (the public site is never switched off). Licences: license@zamoshnikov.com.

Language: the installer, ret-setup.php and the admin panel are in Russian for now; English UI is next on the roadmap. Site guides are in English.

Install — choose your path

A. Try it locally

Laragon, XAMPP, MAMP, Docker — any computer with PHP and MySQL.

ZIP + web installer

B. Server with SSH

VPS or dedicated server; you run commands as the site user.

install.sh

C. Shared hosting

FTP only, fixed web root like public_html or www.

ret-setup.php
A. Local trial — release ZIP and web installer
  1. Download the release ZIP and unpack the contents of its ret-cms-X.Y.Z/ folder into your site folder, e.g. C:\laragon\www\mysite\. Create var\ and modules\ there if they are missing.
  2. Point your local domain (e.g. mysite.test) to the public/ subfolder as document root. Everything else stays outside the web root.
  3. Create an empty database, e.g. mysite, collation utf8mb4_unicode_ci.
  4. Open http://mysite.test/install/. Access code: the content of var/install/token. Then environment → database → domain and site name (no licence on *.test) → owner → Demo site or empty CMS → plan → password → Install.
  5. Open the admin panel: http://mysite.test/admin2/.

Command line instead (from the site folder): without --apply it only prints the plan.

php tools/install.php . --db-name mysite --db-user root --create-db --host mysite.test --owner-login admin --owner-email you@example.com --demo
php tools/install.php . --db-name mysite --db-user root --create-db --host mysite.test --owner-login admin --owner-email you@example.com --demo --apply
B. Server with SSH — install.sh

Run as the site user, not root. The script installs no packages, web server or database: it checks the environment, downloads the latest release, verifies its signature and runs the installer.

curl -fsSL https://retcms.com/install.sh -o install.sh
sha256sum install.sh        # compare with "Verify" below
bash install.sh --env       # environment check
bash install.sh --keys      # key fingerprints, compare with "Verify"
bash install.sh --nginx /var/www/example.com example.com > example.conf
bash install.sh /var/www/example.com --db-name … --db-user … --host example.com \
     --owner-login … --owner-email … --license site.key        # plan
# the same command with --apply                                # install

Then: document root → /var/www/example.com/public, HTTPS, write access for PHP to var/ and public/uploads/.

C. Shared hosting — ret-setup.php

Needs: the parent of your web root is reachable by FTP and is not public itself; an empty database from the hosting panel; MySQL 8 / MariaDB 10.5+.

  1. Download ret-setup.php and check its SHA-256 (Windows: Get-FileHash ret-setup.php -Algorithm SHA256).
  2. Upload it by FTP into the web root of the domain.
  3. Open https://your-domain/ret-setup.php. Create by FTP an empty file with the name the page shows, next to ret-setup.php, and press Check.
  4. Read the plan, confirm, press Install files. It downloads and verifies the latest signed release and lays it out: private folders next to the web root, public files into it.
  5. It continues in the web installer (as in A.4, without an access code). Have your licence file ready.

Build a site — Site Kit

A site is its own git repository on top of an installed core. Templates and schema are a package in the repo; editorial content lives in production. The core is never edited by the site.

php tools/site.php init . --package-id=com.example.site --name="Example"
git init && git add -A && git commit -m "Site skeleton"
php tools/package.php plan package/     # then: php tools/package.php apply package/
php tools/site.php check

Guides are inside every release archive (start with docs/GETTING-STARTED.md):

FileWhat
docs/GETTING-STARTED.mdInstall and first steps: requirements, licence, three installation paths, troubleshooting
docs/site/SITE-GUIDE.mdDeveloper guide: start, daily work, deploy to VPS and shared hosting, core updates
docs/site/RET-CMS-SITE-AGENT.mdFull reference: template language, public API, content model, routing, forms, migrations. Also the brief for AI coding agents
docs/site/feature-request.mdHow to ask the core for what the API does not cover
CHANGELOG.mdAll releases; section “Site API” lists public API changes
ARCHITECTURE.md, README.mdHow the engine works (README in Russian for now)

Update

php tools/update.php --check     # newer release, changelog, licence coverage
php tools/update.php --apply     # verify → back up DB → update → core migrations
php tools/release.php verify . --online

Verify downloads

Releases are signed offline (Ed25519). install.sh, ret-setup.php and tools/update.php check signatures themselves; a manual check matters only for the first file you run. The independent source of these values is github.com/retcms/retcms-trust, kept apart from this site on purpose.

Release keyFingerprint (SHA-256 of raw public key)
release-primary-2026098c9d9d22288476a98aeb2457eba9ee6a071a293df857f76bc1b2756767c58e
release-backup-20264300fff70fe7772d64b7daec4f52abf29617d30d8573819bf9dae6be984f3d6c
FileSHA-256Since
install.sheb54244d5d9ba657464ed1d06b89f273229473dae4fa2b951091648d2a313b6c0.26.1
ret-setup.phpa475797bea89b77d2dfa5002ed9660ce77845d20b20f5bf2187607a16f34035b0.26.1

A row stays valid for later releases until the file changes. Archive checksums: /releases/X.Y.Z/SHA256SUMS; signed metadata: ret-cms-X.Y.Z.json + .json.sig.

Public URLs

URLWhat
/releases/latest.jsonLatest stable version (signature: .sig)
/releases/index.jsonAll published versions, yanked flag (signature: .sig)
/releases/X.Y.Z/ret-cms-X.Y.Z.zip, .tar.gzRelease archives
/releases/X.Y.Z/ret-cms-X.Y.Z.json, .json.sigRelease metadata and signature
/releases/X.Y.Z/SHA256SUMSArchive checksums
/install.shInstaller for servers with shell
/ret-setup.phpOne-file installer for shared hosting