Server management
OS updates and maintenance
Keep the operating system patched without surprises: an update policy per class, a delay for regular updates, a snapshot first, checks before and after with automatic rollback, held packages, kernels that boot once first, emergency patches for critical CVEs, and maintenance windows customers can see.
On this page
A hosting server has to stay patched, but an update that breaks PHP or Postfix at three in the morning is worse than a week-old package. Berth manages the operating system's updates from the panel with the same care it applies to configuration changes: a check before, a check after, a way back, and clear rules about when the server may act on its own. This article covers OS packages; updating Berth itself is described in updating Berth.
The updates page
System → Updates shows:
- the pending updates, with security updates listed separately from regular ones,
- per PHP version one line to update that version as a whole (fpm, cli, common and the extensions belong together and move together),
- whether a reboot is needed and why, and what is currently holding a reboot back (a running update, backup, restore, site import or migration),
- services still running with old libraries after an update, with Restart services,
- held packages with their reason, and the history of every update run, from the panel and automatic, with the packages from and to.
Buttons: Install security updates, Update all and, per package, Only this one.
berth system updates
berth system update-run --mode security
berth system update-run --mode all
berth system update-run --mode selected --package openssl
berth system update-run --php 8.3
berth system runsOn AlmaLinux and Rocky Linux you can also apply a single advisory: berth system update-run --mode advisory --advisory ALSA-2026:1234.
The update policy
Updates → Policy, button Save policy, decides what the server does by itself. Each class has three settings: auto, notify or off.
| Setting | What it means |
|---|---|
| Security updates | Never wait. Installed in the next maintenance window when on auto. |
| Regular updates | Only go along after they have been published for a number of days (Delay), so a broken package is usually withdrawn before it reaches you. |
| Berth itself | auto installs patch versions of the panel; see updating Berth. |
| Never automatic | Package patterns, one per line, with * and ?. These always wait for you. |
| From third-party repositories only patch versions | From third-party repositories only patch versions go along automatically: PHP 8.3.11 to 8.3.12 yes, a new minor version waits for you. |
| Snapshot before every update | See below. |
| Restart services with old libraries | Restart affected services in the window, in a fixed order with a config test first. |
| Reboot when needed | Reboot in the window when nothing is running. |
| Emergency patch outside the window | See below. |
Once saved, the operating system's own unattended-upgrades or dnf-automatic follow the same policy, so the rules hold even while the panel is not running.
berth system update-policy
berth system update-policy --security auto --regular notify --delay 7 \
--exclude "mariadb-*,linux-image-*" --snapshot on --critical-now on --reboot onWhat happens during an update
Every run started by the panel, by hand or in a window, follows the same steps:
- Pre-check. Is there enough free space (in
/boottoo), is the package manager healthy (nothing interrupted or half installed, dependencies consistent, repositories without errors)?berth system preflight --fixmakes room when it is tight. - Snapshot, if enabled. With Proxmox VE linked, a snapshot of the whole VM; otherwise of the server's own volumes on LVM-thin, btrfs or ZFS. If the snapshot fails, the update does not start. See disks and snapshots.
- The update itself, as a system job with a live log.
- Post-check. Configuration tests of the web servers, PHP-FPM, mail and DNS, the state of the services, the server's own monitored sites for a while afterwards, and every site on an updated PHP version. Berth regularly takes a baseline of all sites that run PHP; a site that worked before the update and now returns a server error counts as a failed post-check. See Uptime and status pages.
- Rollback. If the post-check fails, the previous versions go back and the package is held, so the next run does not try it again. Services that fell over after the update (for example PHP-FPM after a broken pool) are started again after a config test. The run and the notice say what went back and why.
Downloaded packages are kept for a configurable number of days (--cache-days) so that rolling back works even when the repository no longer has the old version.
Held packages, versions and downgrades
berth system hold mariadb-server --reason "waiting for vendor certification"
berth system holds
berth system unhold mariadb-server
berth system versions nginx # versions it can go back to (repository and cache)
berth system downgrade nginx 1.26.3-3 --reason "regression in the new build"
berth system changelog opensslA hold needs a reason; it is shown next to the package and written to the activity log. On EL, downgrade --undo <transaction> reverts a whole dnf transaction. When dnf reports a damaged database, the updates page offers to rebuild it as a job.
Kernels
Updates → Kernel shows the running kernel, the default one and all installed ones. A new kernel is not made the default straight away: Boot once… starts it a single time; only if it comes up properly does it become the default. If it does not, the server falls back to the previous kernel at the next boot and the new one is held until you release it. Clean up removes old kernels after a dry run, always keeping the running one, the newest and one previous. Where the distribution offers a livepatch, its status is shown.
berth system kernels
berth system kernels --trial 6.12.48-1-amd64
berth system kernels --cleanup
berth system reboot-status
berth system reboot --plan --yes # reboot in the next maintenance windowEmergency patch for critical vulnerabilities
Waiting for the next window is not acceptable for a vulnerability that is being exploited right now. With Emergency patch outside the window on (the default), a vulnerability on CISA's Known Exploited Vulnerabilities list, a critical vulnerability that can be exploited over the network and has a fix, and every PHP security release are handled outside the window. While the fix is not yet in the repository, the panel keeps checking for it. As soon as it is there, the server updates immediately when security updates are on auto; otherwise you get one notice with a button. Held packages and Never automatic still apply, and the server never reboots by itself for an emergency patch. How Berth decides what is critical is described in vulnerability management.
Updates done in a terminal
If someone runs apt upgrade or dnf upgrade by hand, Berth notices the change and runs the same post-check. If that fails, the panel does not revert anything on its own (it did not make the change), but you get a critical notice saying what broke, and the updates page offers Revert to the previous versions…. That revert goes through the same safety net: tested beforehand, the state recorded, checked afterwards, and the packages held until you release them.
berth system update-revert <run>Installs and removals that the panel itself or a timer makes do not count as terminal changes.
Release upgrades
Moving to the next release of the operating system (for example Debian 13 to the next stable release) is never automatic. Updates → Release-upgrade runs a check first: free space, external repositories, known configuration changes, findings of the diagnosis. Starting it requires a snapshot and offers to announce maintenance to customers. After the reboot the server finishes by itself (Berth renders all configuration again, runs the diagnosis and a parity check) and the page shows a report of what changed. On AlmaLinux and Rocky Linux only the check runs here; the upgrade itself goes through ELevate (leapp) from the console. The alternative without an in-place upgrade is to move to a fresh server, see migration.
berth system release-upgrade # the check
berth system release-upgrade --statusRepositories
System → Repositories lists every package source with the key that signs it, with what needs attention at the top. From there you can:
- switch a source off or on; a repository of the operating system itself cannot be switched off;
- refresh a key: when the key at the vendor's fixed address has a new fingerprint, the panel shows it for approval, and you check it with the vendor before you approve it;
- choose a mirror near the server for the operating system's packages; security updates always come from the distribution's own repository;
- add a repository of your own, only over https and with its own key. You type the key's fingerprint from the vendor's site, and the panel checks that the downloaded key has exactly that fingerprint. Removing your own repository leaves the installed packages in place, but they no longer get updates.
berth system repos
berth system repos add --name vendor --uri https://repo.example.com/debian --suite trixie --component main \
--key-url https://repo.example.com/key.asc --fingerprint "…"
berth system repos mirror --mirror nl
berth system repos remove --name vendorSupport lifecycle
The card Lifecycle on System → Updates shows until when the operating system, and with --all the main software on it (kernel, PHP, web server, mail, containers and more), still receives security updates, and how long extended support runs after that. The panel notifies you 12, 6, 3 and 1 month before the end.
On Ubuntu the same card shows Ubuntu Pro: how many packages come from universe without security updates, and which updates are only available with Pro. Attach the server with a token from a file; the token goes into a file only root can read, never on the command line or in the activity log. After that, Pro updates go along with the normal security updates.
berth system lifecycle --all
berth system pro --token-file /root/pro.token
berth system pro --detachMaintenance windows
A maintenance window is the time in which the server may install updates, update WordPress sites and, if you allow it, reboot. Set them under System → Maintenance, section Windows, one per line, then Save windows:
di,do 02:00 120
ma-vr 03:00 60
dagelijks 04:00 90Each line is days, start time and length in minutes. Days can be written in any of the panel's languages, such as mon…sun or the Dutch ma di wo do vr za zo, as a list (di,do), a range (ma-vr) or every day (daily, dagelijks). The page draws the windows per weekday with a line at the current time. Tick Reboot when an update asks for it to let the server reboot in the window once nothing is running; otherwise the panel reports that a reboot is needed and you do it yourself.
berth maintenance windows --window "di,do 02:00 120" --reboot
berth maintenance show
berth maintenance in-window && echo "inside a window"Without any windows, updates run at the default times.
Announced maintenance
For work customers will notice, announce it on the same page: title, start, end, an optional explanation, and optionally an e-mail to every customer. Customers see it on their overview and on their status page, an outage during the window counts as planned, and the iCalendar feed lets you put it in a shared calendar.
berth maintenance plan --title "Kernel update and reboot" \
--start "2026-11-05 02:00" --end "2026-11-05 02:30" --notifyRelated
- Updating Berth
- Vulnerability management
- Disks and snapshots
- Fleet, for rolling updates across many servers