Docs: Updates
Updates
How Tilspire's signed updates are verified, how to apply them from the admin panel or the command line, and the order to update core and modules in.
Tilspire updates itself in place — the core and every module you run, in one action — and checks every package before anything on your site changes.
Before you update, check Known issues for open problems and the release that fixes each one.
How signed updates work #
Every release is checked two ways before it's applied: its checksum must match the value published in the update manifest, and the package must carry a valid signature over its exact bytes. Both checks have to pass.
That combination matters because a checksum alone only proves a file wasn't corrupted in transit — it doesn't prove who produced it. The signature proves the package came from the holder of the release signing key. If either check fails, the update is rejected and nothing on your site changes.
One action updates everything #
Go to System ▸ Updates. When an update is waiting, the page shows the release, what’s in it, and Update this site. Since 1.16.0 that opens the update on its own full screen, in three steps — Check, Update and Result — with nothing else on it, so you always see where you are. Press Update everything in the second step: Tilspire downloads and verifies the new core and a package for each module you're entitled to, stages them all, and only then swaps them into place. If swapping the core fails partway through, it is rolled back.
Since 1.19.0 the dashboard shows a notice when an update is ready, with a Not now button. The update screen opens with a short summary, and the checks sit folded away until you open them. Release notes show their first lines, with Show more for the rest.
The modules that come with Tilspire always carry the same version number as the core, so a site that's up to date shows a single number. The Updates page names a module only when it isn't in step with the rest.
If a licensed module's files have gone missing — removed by a deploy, say — the next update fetches them again.
Since 1.18.0 the core and Feedback update together in one run, the core first (the step from 1.20 to 1.21.0 is the exception: see Updating to 1.21.0). A site whose Feedback licence has lapsed still gets the Feedback version its new core needs. Blog, Comments, Community and the other free modules travel inside the core package and update with it.
What happens when you press Update #
Since 1.15.0 every update, whether you start it or it runs on schedule, takes the same four steps:
- A pre-check, shown before you press anything: the release notes, what will change, whether your PHP, disk space and folders are ready, and whether a backup is recent. A red result stops the update; an amber one asks you to confirm you've read it.
- A snapshot of your database, encrypted, taken just before anything changes.
- The update itself, as described above.
- A health check afterwards, compared with the one taken before.
Keep that screen open while the update runs: it carries on if the page closes, but only that page shows how it ends. Until it starts, Leave without updating takes you back.
If the health check finds a problem, the Updates page offers to undo the update together with the database, for 24 hours. A scheduled update that fails its check undoes itself and emails you what happened.
Automatic updates #
The Updates page also sets what happens without you: Off, Security updates only, or All updates. Automatic updates run from a scheduled task:
php update.php --auto
Run it from your site's root folder, and on Windows set the scheduled task to start there too.
Unless automatic updates are off, that task also applies any database migrations that are waiting, the core's and each enabled module's.
You can also choose a weekly window, a day and an hour, so automatic updates only run when you expect them. Security releases follow the window too; you can always update at once yourself.
Security releases #
A release that fixes a security problem is marked as one in the manifest. Since 1.13.0, an update counts as a security update whenever any security release lies between the version you run and the newest one, even if you never saw that release offered — so a site set to Security updates only installs the newest release, which carries the fix, and the Updates page says which security release it was for. The changelog says which releases were security releases.
Undoing an update #
After an update, the Updates page offers Undo the last update: it puts back the release you had before, one step, from that release's own signed package, which the update kept and which is checked again before anything changes. Feedback goes back with the core. When the update changed the database, undo puts the database back from the snapshot taken before it, for 24 hours; after that the page says why it no longer can. A release you undo is not reinstalled by automatic updates; the next newer release is. The Updates page marks the undone release Held back; Update everything still installs it if you choose. Your first undoable update is the second one taken on 1.13.0 or later. An undo from 1.18.0 to 1.17.x drops any section address you renamed, since 1.17.x has no such setting. An undo from 1.19.0 does not move accounts back to the User role: they stay on Member.
Release channels #
Since 1.21.0 the Updates page has a Release channel setting, saved with Save channel:
- Stable, the default. A site updated from 1.20 reads Stable.
- Preview gets releases a week or two early. They may still change, so keep a backup.
- Internal is only for licences that include it. It is not shown without a licence key, or on a development address.
All three channels install the same signed package. It is built once and promoted from Internal to Preview to Stable, never rebuilt. A signed promotion statement moves it, and Stable and Preview sites check that statement before a release is offered. Security releases reach every channel, and automatic updates follow the channel you chose. If the channel cannot be read (a revoked licence, or the licence service being down), the site reads Stable and the page says why.
Switching never downgrades. If you move from Preview to Stable while running a newer build, you are offered nothing until Stable catches up. The Operator API can read the channel (GET updates); a credential can never change it. A 1.20 site reads only the Stable channel.
Build numbers #
Since 1.21.0 a release can have builds, written as the version plus the build: 1.21.0+3. A rebuild takes the next number, and a broken build keeps its number. An installed package shows 1.21.0+3; a source checkout shows the plain version. A package installs only if its build matches the feed. Once any build reaches Stable, that version takes no more builds. A later build of a security release is a security build too. Older updaters read only the plain version.
On Stable you see the plain 1.21.0; on Internal and Preview you see 1.21.0 (release candidate 3).
HTTPS only #
Since 1.21.0 the update feed and every package, redirects included, must be fetched over HTTPS. A site that uses its own feed must use an https address. The one exception is a loopback test feed, allowed by a development configuration file and never by a setting. The command-line updater installs only from a feed answer it fetched in that run, never a stored one.
What a release may require #
The manifest can name a minimum PHP version and, since 1.19.0, a minimum MariaDB version. Since 1.21.0 it carries min_mysql beside min_db: on MySQL the updater reads min_mysql and refuses a manifest that lacks it. If your server is older, the updater says so and leaves your site exactly as it is. Since 1.19.0, Tilspire needs PHP 8.2 and runs on 8.2 to 8.5. On an older PHP the update wizard stops at its PHP check until the site moves up. The manifest always offers the newest release, so a site on an older PHP receives no further updates until its PHP is upgraded.
A release can also name the module versions it needs, and it checks them before it downloads anything.
Updating to 1.18.0 on nginx #
Feedback's ticket attachments open only for the ticket's client and for staff who manage tickets. Apache reads the uploads folder's own guard; nginx ignores it, so add this rule to your site's nginx configuration:
location ^~ /uploads/tickets/ { return 404; }
Health warns if the folder can still be opened directly.
Nginx also never reads the root .htaccess, which sets how long browsers keep static files (a week with ?v=, an hour without). If you want those lifetimes there, add this optional rule (on Plesk, Apache & nginx ▸ additional nginx directives):
location ~* ^/(?!uploads/).+\.(css|js|woff2?|ttf|svg|png|jpe?g|gif|webp|avif|ico)$ {
expires 1h;
if ($arg_v) { expires 7d; }
}
The rule is not required. Without it, browsers guess a lifetime, as they did before 1.18.0.
Updating to 1.19.0 on nginx #
New uploads go into month folders, such as uploads/media/2026/10/. The root .htaccess has a new rule (2c) for the old flat addresses, /uploads/media/photo.jpg: where no such file exists, Tilspire answers with a permanent redirect to the file's real address, or with a 404. Nginx never reads .htaccess, so add the matching rule to your site's nginx configuration (on Plesk, Apache & nginx ▸ additional nginx directives):
location ~* "^/uploads/media/(?![^/]*\.(php|php\.|phtml|phps|php[0-9]|cgi|pl|py|jsp|asp|aspx|shtml|sh)$)(?<media_name>[A-Za-z0-9][A-Za-z0-9._-]*)$" {
try_files $uri /index.php?url=uploads/media/$media_name;
}
The rule is optional. Without it, only a theme that builds the flat address by hand breaks. Pictures in rich text, image() and picture() never do.
Updating to 1.20.0 on nginx #
Files that must never have a public address now live in uploads/private/, and the update copies Feedback's tracker attachments there. Apache reads that folder's own .htaccess. Nginx never does, so add this rule to your site's nginx configuration (on Plesk, Apache & nginx ▸ additional nginx directives), before you update if you can:
location ^~ /uploads/private/ { return 404; }
System ▸ Health asks for a protected file by its address and tells you if the rule is missing. A daily job removes each original attachment once its copy has been checked.
Updating to 1.20.2 #
Nothing needs doing on nginx. The shipped .htaccess gains a rule that lets Tilspire answer old image addresses of an imported site; nginx ignores it, and there those addresses stay a 404. Health now shows the protected folders amber, not red, where the nginx rules are missing. If a script or bookmark of yours fetches a scheduled backup by its old file name, it needs the new one: names now carry random characters.
Updating to 1.21.0 #
A licensed site updating from 1.20: the first Update installs the core and the free modules. Feedback stays at its 1.20 version until you press Update a second time, or the next automatic update runs, and it keeps working meanwhile. Until then a ticket opened while signed in is saved as a guest ticket, and a tracker deleted in between is deleted for good, not put in the bin. After the first update, press Update again and check that Feedback reads 1.21.0.
The recycle bin: from 1.21.0 deletes go to the bin. Its keep period, 30 days by default, counts from the update for items already there: old Comments Bin items, pages and posts left with only revisions, and Operator API deletions that were approved but not yet restored.
MySQL sites: make a fresh off-site archive after updating. Archives and snapshots made on MySQL since 1.15.0 lacked users.user_registered, users.user_lastseen and reactions.created_at. That is fixed; MariaDB was never affected.
What gets updated #
An update replaces exactly these paths: core/, migrations/, index.php, .htaccess, the starter theme at site/themes/default/, the free modules that come with every package (modules/blog/, modules/assistant/, modules/analytics/, modules/comments/, modules/importer/ and modules/forums/, which is Community), the update entry update.php, and the licence files — LICENSE, NOTICE, TRADEMARK.md, STABILITY.md and licenses/ — and the two guides, modules/README.md and site/themes/README.md. Feedback, the paid module, is updated from its own signed package.
Everything else is yours: your own theme, your configuration, your content and database, your uploads, and any third-party module. See Themes for why copying the starter theme, rather than editing it, is the right way to build your own.
What each part of Tilspire promises across 1.x is written down in STABILITY.md, which comes with every release.
Checking by hand #
The stable channel's manifest lives at updates.tilspire.com/stable/manifest.json. From the command line:
php update.php
php update.php --apply
The first only checks; --apply installs an available update, and --undo undoes the last one. Since 1.21.0 --apply and --auto install only from a feed answer fetched in that run. php update.php --verify-promotion checks that this site accepts the promotion statements its feed serves now, and prints one line each for Stable and Preview, ok or FAIL. See Command-line tools.