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.0Requirements
- PHP 8.1+ with
mysqli,mbstring,json,zip,sodium; OPcache recommended - MySQL 8 or MariaDB 10.5+ (InnoDB, utf8mb4). MySQL 5.7 is not enough for new installations.
- Apache 2.4 with
mod_rewriteandAllowOverride All, or nginx - An empty database created in advance
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 installerB. Server with SSH
VPS or dedicated server; you run commands as the site user.
install.shC. Shared hosting
FTP only, fixed web root like public_html or www.
A. Local trial — release ZIP and web installer
- 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\. Createvar\andmodules\there if they are missing. - Point your local domain (e.g.
mysite.test) to thepublic/subfolder as document root. Everything else stays outside the web root. - Create an empty database, e.g.
mysite, collationutf8mb4_unicode_ci. - Open
http://mysite.test/install/. Access code: the content ofvar/install/token. Then environment → database → domain and site name (no licence on*.test) → owner → Demo site or empty CMS → plan → password → Install. - 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+.
- Download ret-setup.php and check its SHA-256 (Windows:
Get-FileHash ret-setup.php -Algorithm SHA256). - Upload it by FTP into the web root of the domain.
- 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. - 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.
- 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):
| File | What |
|---|---|
docs/GETTING-STARTED.md | Install and first steps: requirements, licence, three installation paths, troubleshooting |
docs/site/SITE-GUIDE.md | Developer guide: start, daily work, deploy to VPS and shared hosting, core updates |
docs/site/RET-CMS-SITE-AGENT.md | Full reference: template language, public API, content model, routing, forms, migrations. Also the brief for AI coding agents |
docs/site/feature-request.md | How to ask the core for what the API does not cover |
CHANGELOG.md | All releases; section “Site API” lists public API changes |
ARCHITECTURE.md, README.md | How 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 key | Fingerprint (SHA-256 of raw public key) |
|---|---|
release-primary-2026 | 098c9d9d22288476a98aeb2457eba9ee6a071a293df857f76bc1b2756767c58e |
release-backup-2026 | 4300fff70fe7772d64b7daec4f52abf29617d30d8573819bf9dae6be984f3d6c |
| File | SHA-256 | Since |
|---|---|---|
install.sh | eb54244d5d9ba657464ed1d06b89f273229473dae4fa2b951091648d2a313b6c | 0.26.1 |
ret-setup.php | a475797bea89b77d2dfa5002ed9660ce77845d20b20f5bf2187607a16f34035b | 0.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
| URL | What |
|---|---|
| /releases/latest.json | Latest stable version (signature: .sig) |
| /releases/index.json | All published versions, yanked flag (signature: .sig) |
/releases/X.Y.Z/ret-cms-X.Y.Z.zip, .tar.gz | Release archives |
/releases/X.Y.Z/ret-cms-X.Y.Z.json, .json.sig | Release metadata and signature |
/releases/X.Y.Z/SHA256SUMS | Archive checksums |
| /install.sh | Installer for servers with shell |
| /ret-setup.php | One-file installer for shared hosting |