updating sitecake
Sitecake 4 updates itself. When a new version is available, you’ll see an in-editor popup, just press update. Still on Sitecake 2.5? Upgrade to 4 by hand, once.
Summary
- Log in as usual. Sitecake checks for a newer version automatically.
- If one is available, a toast appears with Update and Later buttons.
- Click Update and Sitecake downloads, installs, and reloads. Your configuration and password are untouched.
How it works
After you log in, Sitecake checks for a newer release in the background. If one exists, a toast notification offers Update or Later. Clicking Update:
- Downloads the new version.
- Backs up the current version folder.
- Extracts the new version alongside it.
-
Rewrites
sitecake.phpto point to the new version. - Reloads the page.
Your credentials.php,
editor.cnf, and config.php
files live outside the version folder and are never
touched by an update.
Dismissing the toast with Later just postpones it. You’ll be prompted again on a future login.
Upgrading from Sitecake 2.5
Sitecake 2.5 can’t update itself to version 4, so this one upgrade is done by hand. Your pages, images and password carry over.
Before you start, make sure that:
- Your host runs PHP 8.0 or newer. Sitecake 2.5 needed only PHP 5.6, so check this first. Most hosts let you switch the PHP version in their control panel.
- You have a license key, which Sitecake 4 asks for on a live domain. Get one on the pricing page; the email with your key also has the download link.
Then:
- Publish your changes. Log in to Sitecake 2.5 and publish anything you haven’t yet. Unpublished drafts can get lost in the upgrade.
- Back up your site. Download a copy of the whole website folder. If anything goes wrong, upload it back and you’re on 2.5 again.
-
Upload the new version folder.
Unzip Sitecake 4 on your computer and upload its
sitecake/4.x.x/folder into thesitecake/folder on your host, next to2.5.0/. -
Replace two files with the ones
from the ZIP:
sitecake.phpin your site root, andsitecake/config.php. The oldconfig.phpblocks WebP images; if you changed settings in it, copy them over. -
Log in. Open
yourdomain.com/sitecake.php, enter your license key, then your usual password. -
Clean up. Once everything
works, delete
sitecake/2.5.0/. If your site root hassitecake-temp/orsitecake-backup/folders, delete them too. Sitecake 4 usescms-temp/andcms-backup/instead.
Your site before the clean-up:
sitecake/
2.5.0/ ← delete when done
4.x.x/ ← new
config.php ← from the ZIP
credentials.php ← keep: your password
editor.cnf ← keep: your toolbar
sitecake.php ← from the ZIP
Don’t unzip the whole package over your
site. That resets your password to
admin and empties your
.scpages and .scignore
files.
White-label installs upgrade the same way, with
admin.php and cms/ in place
of sitecake.php and
sitecake/. After the upgrade, Sitecake
updates itself.