Updating

New releases are installed from the admin

Applies to LBM 1.x Updated 22 November 2026

New releases are installed from the admin, over the copy you have, with a backup first and a way back if anything fails. Nothing is ever installed without somebody asking.

Open Settings > Utilities > Update.

How an update works #

  1. The release is downloaded and checked twice: against the checksum in the release feed (it is the file the feed named), and against Laika IT's signature on the release's file list (it is the file we built). A release that fails either check is refused before anything changes. The signature check needs PHP's sodium extension.
  2. The database is dumped, and every file about to change is copied. The dump uses mysqldump and proc_open; on a host that has neither, the screen asks you to confirm you have a backup of your own.
  3. The files are swapped. The site is in maintenance for a few seconds, and scheduled tasks wait.
  4. The database update runs on the new code. If anything fails, the files and the database are put back. The same happens if the site will not start after the swap.

Never replaced: config/database.php, config/security.php, config/Shared.php (your connection and keys), config/app.php (your admin address), config/http.php (proxy settings) and everything under system/. A file of those the release adds is put in only if it is missing. The last few updates' backups are kept in system/Updates.

The feed is read once a day. Check for updates reads it now, and the screen shows the installed version, the available one and when it was last checked.

Installing an update #

  1. Back up your own database as well, if you can. The screen has an I have a backup of the database of my own box.
  2. Read the release notes on the Update screen.
  3. Press Install next to the version. The screen lists anything that stops it from being installed yet.

Files you changed #

If you changed a file that the release also changes:

  • it is replaced, because old code with new code is worse, and your copy is kept in the backup, with the change reported; except
  • .htaccess and nginx.conf: yours is kept, and the release's version is written beside it with .lbm-new added, for you to compare; and
  • a file the release no longer has is deleted only if you never changed it. A changed one is left in place.

Modules and plugins you added yourself are in no release's file list, so an update never touches them. A plugin you updated from laikait.com to a newer version than the release carries is not put back to the older one.

The screen lists the changes after the update. Put your changes in your own templates or plugins where you can, so updates do not touch them.

Update channels #

Choose a channel on the Update screen:

ChannelOffersUse it
Stablefinished releases onlyon a live billing site
Release candidatesrelease candidates and finished releaseson a staging copy that tries a release before it is final
Betaevery release, including beta previewsto try what is coming; never on a live billing site

If an update does not finish #

The Update screen says "Finishing the update" and offers Finish the update (to run the database update) or Go back to the old version. From the console:

php laika update:check      # read the release feed
php laika update:install    # install the available release (add --own-backup if you have your own database backup)
php laika update:finish     # run the database update after the files are in place
php laika update:rollback   # take the update back

If the site itself is down and nothing can be clicked, each update's folder under system/Updates has a rollback.php. Run it with php rollback.php from that folder: it puts the files back without loading the application.

If the screen reports database updates that have not run (the files were copied by hand, or an update was interrupted), run:

php laika migrate

Before you update a live site #

  • Read the release notes.
  • Update a staging copy first, with a developer licence.
  • Choose a quiet hour: the site is unavailable for a few seconds.

Something missing or wrong? Tell us or contact us.