Buy me a coffee (opens new window) DE · DeutschDA · Dansk

← Counterglow overview

Install Counterglow

Four ways, one result: /panel asks for the first account and sets up two-factor sign-in.

Four ways to install

All four end in the same place: /panel asks for the first account and sets up two-factor sign-in. Then you choose who can see the site and pick a starter kit. PHP 8.4 or 8.5 is recommended; 8.2 gets security updates only until 31 December 2026, and from January 2027 Counterglow needs 8.3.

Release ZIP

For any web space with FTP.

  1. Download the ZIP and unpack it. Everything is in a folder counterglow/.

  2. Upload the contents of that folder to your web space and make content/, media/, site/ and logs/ writable.

  3. Open /panel. On your own computer, start the built-in server in the folder instead:

    php -S localhost:8000 router.php

Download Counterglow 1.9.1 ↓ZIP · 27.7 MB · SHA256SUMS (opens new window)

install.php

When you only want to upload one file.

  1. Upload install.php into the empty folder your domain points to and open /install.php.

  2. It checks the PHP version (with its end of support), extensions and write permissions, then lets you pick a version.

  3. It downloads the release from Codefloe, checks the Ed25519 signature and SHA-256, unpacks it into its own folder only, deletes itself and opens the set-up.

No connection from the server to Codefloe? Put the ZIP and its .sig next to install.php, or upload them in the installer. The installer belongs to the first browser that opens it and stops working an hour after the upload.

Download install.php ↓PHP · 34 KB · signature (install.php.sig) (opens new window)

install.php, server check: PHP version with its end of support, the extensions zip, sodium, json, dom, gd and mbstring, download, write permission, free space and a note about the web server.

Docker

For a server or a NAS with Docker.

  1. Unpack the release ZIP and start it in its folder. The image is built on your machine, from the official php:8.4-apache image; no registry, no account.

    docker compose up -d --build
  2. With your own domain and automatic HTTPS (Caddy), the domain must point to the machine and ports 80 and 443 must be open:

    DOMAIN=example.com docker compose -f compose.https.yml up -d --build
  3. Content, settings, media and logs live in four volumes. They are filled on the first start and never overwritten. On a NAS, replace them with folders and set PUID and PGID.

Then open http://localhost:8080/panel. To update, start the next release the same way; the volumes stay.

git

For developers who want to follow the history.

  1. Clone the repository and check out the release tag:

    git clone https://codefloe.com/GerberMedia/Counterglow-CMS.git
    cd Counterglow-CMS && git checkout v1.9.1
  2. Update by checking out the next tag. The panel’s updater leaves a git checkout alone.

Updates

System → Update in the panel, for admins.

  • Checked when you ask

    Counterglow looks for a new release when you press “Check for updates”, and at most once a day when an admin opens the overview. That check can be switched off. Nothing is installed by itself, and nothing about your site is sent.

  • Signed and backed up

    The update asks for your password again, refuses a wrong signature or an older version, and moves the replaced files into a backup first.

  • Undone on failure

    If a step fails halfway, everything is rolled back. “Back to a previous version” restores one of the last three backups.

  • Your files stay

    Only the software is replaced. content/, site/, media/, logs/ and themes you made yourself are not touched.

System → Update in the panel: installed version 1.4.0, newest release 1.5.0 and the start of its release notes.
Installing the update: what is replaced and what stays, the password field and the Install update button.

Signed releases

Every release ships the ZIP, install.php, an Ed25519 signature for each and SHA256SUMS. The installer and the panel check the signature themselves. To check a download by hand, use this public key:

DSqbRyvm4EK7pfbZA7agQKTZk44kDGRtZ7V9ledgFQE=
shasum -a 256 -c SHA256SUMS

The checksum only shows that the download is complete; the signature shows that it is the release. Commands for PHP and OpenSSL are in the README (opens new window).

A starter kit later or on a server

php system/cli.php starter blog --yes

The demo content is moved to site/backups/, never deleted.

Free, and it stays that way

Counterglow costs nothing and has no paid edition. If it saves you time, a coffee helps keep it going.

Buy me a coffee ↗ (opens new window)

Read the code, keep the folder.

Questions, ideas or bug reports? Write to me. hello@gerber.media