[{"s":"what-is-berth","l":"en","t":"What is Berth?","d":"A self-hosted web hosting control panel in Go that keeps Plesk's on-disk layout, isolates every subscription, validates every change before it goes live, and manages the whole server from the browser.","c":"start","g":["overview","introduction","control panel","hosting panel","plesk alternative","cpanel alternative"],"h":[["who-berth-is-for","Who Berth is for"],["what-it-runs-on","What it runs on"],["what-it-covers","What it covers"],["websites-and-applications","Websites and applications"],["mail-and-dns","Mail and DNS"],["data-and-backups","Data and backups"],["moving-to-berth","Moving to Berth"],["security-monitoring-and-the-server","Security, monitoring and the server"],["business-and-automation","Business and automation"],["what-makes-it-different","What makes it different"],["plesk-compatible-on-disk","Plesk-compatible on disk"],["an-unprivileged-panel-and-a-small-root-agent","An unprivileged panel and a small root agent"],["every-change-is-validated-before-it-goes-live","Every change is validated before it goes live"],["real-isolation-per-subscription","Real isolation per subscription"],["never-a-terminal-for-routine-work","Never a terminal for routine work"],["tested-recovery","Tested recovery"],["licensing","Licensing"],["where-to-start","Where to start"]],"x":"Berth is a web hosting control panel that you install on your own server. It manages websites, PHP, certificates, mail, DNS, databases, backups and the server itself, for one administrator or for a hosting company with resellers and thousands of customers. This page explains who it is for, what it covers and what sets it apart, with links into every part of the library. Who Berth is for Hosting companies and resellers who want a panel for shared hosting with packages, resellers, white label and billing integration, and who are looking for a way off Plesk, cPanel or DirectAdmin without asking customers to change anything. Agencies and developers who host their own clients' sites and want WordPress, Joomla, Drupal, Node.js, Python, Git deploys and containers in one place. System administrators who want to run a server without opening a terminal for routine work: OS updates with rollback, services, logs, disks and diagnostics are all in the panel. Corporate and government IT that needs separation between tenants, an audit trail, four-eyes approvals, single sign-on and evidence for audits. What it runs on Berth runs on Debian 13, Ubuntu 24.04 and 26.04 LTS, and AlmaLinux and Rocky Linux 10, on amd64 and arm64. It is written in Go and uses the standard open-source stack: nginx in front of Apache, PHP-FPM, Postfix, Dovecot, rspamd, ClamAV, MariaDB, PostgreSQL, BIND, restic and Podman. See System requirements and Installing Berth. The panel speaks English, Dutch, German, French, Spanish, Polish, Ukrainian and Italian; each login chooses its own language, and mail from the panel goes out in the recipient's language. Everything in the panel is also available through the berth command line and the REST API. What it covers Websites and applications Domains, subscriptions, aliases, redirects and per-domain settings: Domains and subscriptions, Web server settings. PHP 5.6 to 8.5 per domain, with a separate PHP-FPM per subscription: PHP. Let's Encrypt and other certificate authorities, wildcards via DNS-01: Certificates. Page cache, object cache, WebP/AVIF and CDN integration: Caching and CDN. A per-domain security and performance score with fixes: Site quality scores. A vendor-verified installer for WordPress, Joomla, Drupal, Nextcloud and Matomo, with smart updates tested on a copy first and two-way staging: Software installer. Node.js and Python apps, Git deploy, rootless containers and scheduled tasks. Mail and DNS Mailboxes, aliases, forwarding and autoresponders: Mailboxes. DKIM, SPF, DMARC with report reading, MTA-STS, TLS-RPT and DANE: Mail authentication. Spam and antivirus, one outbound budget per subscription, webmail, built-in mailing lists, and mail import or Microsoft 365 / Google Workspace. DNS elsewhere with checking, through a provider's API, or on the server itself with DNSSEC: DNS. Data and backups MariaDB and PostgreSQL per subscription, with point-in-time restore: Databases. File manager, FTPS, SFTP and a sandboxed shell: Files, FTP and SSH. Deduplicated, encrypted backups with an hourly local history, S3 with Object Lock, an append-only NAS, fine-grained restore, weekly restore tests and full-server disaster recovery: Backups overview, Backup to S3, Backup to a NAS, Restoring data, Restore tests, Disaster recovery. Moving to Berth Whole Plesk, cPanel and DirectAdmin servers are taken over with passwords, mail UIDs and database hashes intact, and the cutover is an IP takeover: Migration overview, Migrating a server, Parity checks. Single accounts can be read from backup files: Importing backup files. Security, monitoring and the server Sign-in security with passkeys, single sign-on, malware scanning, a WAF, firewall and bans, vulnerability management and an audit trail with approvals. The overall design is in Security model. Uptime and status pages, statistics and metrics, notifications and alerts, logs and log drains. OS updates and maintenance, services and diagnostics, disks and snapshots, a rescue mode for when the panel itself is down, and Fleet for managing many Berth servers together. Business and automation Customers and packages, resellers and white label, WHMCS and HostBill. REST API with OpenAPI, the CLI, webhooks and extensions, an AI assistant and MCP endpoint, and Home Assistant. GDPR, NIS2 and incidents, and evidence for audits. What makes it different Plesk-compatible on disk Berth keeps Plesk's layout: websites in /var/www/vhosts/<domain>, Maildir under /var/qmail/mailnames, the same groups and the same uids and gids as the source server, and the same Dovecot folder namespace. A migration copies data into the place it already had, and mail clients do not download everything again. See On-disk layout. An unprivileged panel and a small root agent The panel daemon that serves the UI and the API runs as an ordinary user. Everything that needs root goes to a separate agent over a local socket, as one of a fixed set of typed operations, each checked against an explicit policy. There is no generic \"run this command\" operation. See Architecture. Every change is validated before it goes live Service configuration is rendered from the panel database, staged, checked with the service's own config test, swapped in atomically and only then reloaded. A change that fails the test is rolled back, and one customer's broken file is set aside so it cannot block anyone else. See How changes go live. Real isolation per subscription Each subscription gets its own systemd slice with CPU, memory, process and disk-IO limits, its own PHP-FPM, open_basedir, a disk quota, no access to the panel's or other subscriptions' local ports, optionally (per package) an outbound network fence and, for containers, its own user namespace. A hacked or overloaded site is contained within its own subscription as far as possible. See Isolation. Never a terminal for routine work OS updates with snapshots and rollback, emergency patches for actively exploited vulnerabilities, services, logs, disks, time and network checks, and a daily diagnosis with fix buttons are all in the panel. See OS updates and maintenance and Services and diagnostics. Tested recovery Backups are tested by restoring them in a sandbox every week. In a full disaster-recovery drill, 25 subscriptions with about 113 GB of sites, mail and databases came back from S3 in 79 minutes, with every database and every mailbox identical. Migration from Plesk has been rehearsed end to end on a production server with 25 accounts. Licensing One licence per server unlocks every feature, including Fleet; there are no editions. A new installation runs as a full 30-day trial without a licence, and Berth never takes sites, mail or databases offline over a licence. See Licence and trial. Where to start Check the system requirements. Install Berth. Follow First steps to set up the panel, a package, a customer and a domain. Read Architecture and How changes go live if you want to know how it works underneath."},{"s":"system-requirements","l":"en","t":"System requirements","d":"Supported operating systems and architectures, recommended CPU, memory and disk, and what you need before you install: a fresh server, a VPN, DNS names and outbound internet.","c":"start","g":["requirements","debian","ubuntu","almalinux","rocky linux","hardware","prerequisites"],"h":[["operating-systems","Operating systems"],["architecture","Architecture"],["hardware","Hardware"],["what-you-need-before-you-install","What you need before you install"],["for-mail","For mail"],["ports","Ports"],["next-step","Next step"]],"x":"Berth is installed on a fresh, dedicated server or virtual machine. This page lists the operating systems it supports, the hardware it needs in practice and the things to arrange before you run the installer, so the installation does not stop halfway. Operating systems Berth works through an OS adapter: the same panel, with the package names, service names and paths of each distribution translated for you. The installer refuses any other version. Operating system Supported Notes Debian 13 yes The primary platform. PHP from the Sury repository. Ubuntu 26.04 LTS yes Same package generation as Debian 13; PHP from Sury. Berth adds its own AppArmor rules where needed. Ubuntu 24.04 LTS yes Older package versions, which Berth adapts to. AlmaLinux 10 yes Packages from the OS, EPEL, Remi (PHP) and the rspamd repository, which the installer sets up. SELinux stays enforcing. Rocky Linux 10 yes As AlmaLinux 10. AlmaLinux 9, Rocky Linux 9 no Other distributions or versions no Two platform differences to be aware of: Package vulnerability scanning of OS packages works on every supported OS. Berth matches the installed packages against its own vulnerability database (OSV: the Debian security data, the Ubuntu Security Notices including Ubuntu Pro, and the AlmaLinux and Rocky Linux advisories). On Debian, debsecan adds a second check against the Debian security tracker, and on AlmaLinux and Rocky Linux the dnf errata do the same; Ubuntu has no such second check. The other parts of vulnerability management (PHP, Node.js, lockfiles, container images) work the same everywhere. Restoring onto a different OS is supported: a backup of a Debian server can be restored onto AlmaLinux or Ubuntu and the other way round. See Disaster recovery. Architecture Berth runs on amd64 (x8664) and arm64** (aarch64). Release packages exist for both. Hardware Berth itself sets no hard minimum. What you need depends on the number of sites, mailboxes and databases and on which parts you install. These are recommendations: Minimum Recommended for production CPU 2 vCPU 4 vCPU or more Memory 4 GB 8 GB or more Disk 40 GB SSD, large enough for sites, mail, databases and local backups Things that use noticeable resources: ClamAV (malware scanning, upload scanning, mail antivirus) keeps about 1 GB of memory while clamd runs. The realtime malware scan and upload scanning are switched on by default only on servers with at least 2 GB of memory. On a small server you can leave ClamAV out with --no-malware. Local backups stay on the same disk: by default the last 7 nightly archives per subscription, plus the hourly deduplicated history. Count that space in. See Backups overview. A PHP-FPM per subscription costs roughly 15 to 20 MB of memory per subscription and PHP version while idle. On a small server with many subscriptions you can choose to give only packages with limits their own FPM. See Isolation. PostgreSQL, Node.js, Python and Podman are installed only when a package allows them and they are first used. What you need before you install A fresh server. A clean installation of a supported OS, without another hosting panel or hand-made web server configuration. To move away from an existing panel, install Berth on a new server and migrate into it (see Migration overview). Root access. A VPN to the server: Tailscale or WireGuard. After installation, administrative SSH on port 22 is reachable only through a VPN interface, never from the internet. The installer refuses to run without a VPN interface, so set it up first and check that you can log in through it. Existing SSH sessions stay connected, so you do not lock yourself out mid-install. A fully qualified host name for the server, for example server.example.nl, with an A record (and AAAA if you use IPv6) pointing at the server. Berth uses it for the mail server and the server certificate. A name for the panel, for example panel.example.nl, also with an A record to the server. It may be the same as the host name. Webmail and Adminer can later get their own names next to it; the panel suggests webmail. and adminer. in front of the panel name. Outbound internet for packages, Let's Encrypt and the licence check. For networks without internet there is an offline bundle; see Installing Berth. For mail Ask your provider to set the reverse DNS (PTR record) of the server's IP address to the host name, and check that outbound traffic on port 25 is not blocked. Without those two, mail from the server is often rejected or marked as spam. Ports The panel's own firewall is switched on by a new installation, with the ports of the services you installed. If there is also a firewall in front of the server (at your provider or in your hypervisor), open the same ports there. Port Protocol Service 80, 443 TCP Websites, panel, webmail 443 UDP HTTP/3 (QUIC); open with the websites, used when HTTP/3 is switched on 25 TCP Receiving mail (SMTP) 465, 587 TCP Sending mail from mail clients 143, 993 TCP IMAP 110, 995 TCP POP3 4190 TCP ManageSieve (closed by default) 21 TCP FTP with mandatory TLS, plus a passive port range 53 TCP and UDP DNS for ACME delegation and the server's own DNS (open by default; close it under Firewall if you use neither) 41641 UDP Tailscale direct connections 3306, 5432 TCP MariaDB and PostgreSQL from outside, only for allowed hosts 22 TCP Administrative SSH, only through the VPN Customers use SFTP and SSH on a separate port, shown in the panel. Administrators never use the customer port, and customers never use port 22. On AlmaLinux and Rocky Linux the installer also opens the ports of the installed services in firewalld, if it is running. Next step When everything above is in place, continue with Installing Berth."},{"s":"install","l":"en","t":"Installing Berth","d":"Install Berth on a fresh server with the signed one-line command, a deb or rpm package, a release directory or an offline bundle, choose which parts to install, and claim the panel with the setup code.","c":"start","g":["install","installation","setup","berth install","offline","unattended"],"h":[["choosing-a-method","Choosing a method"],["installing-with-the-one-line-command","Installing with the one-line command"],["installing-from-a-deb-package-debian-ubuntu","Installing from a deb package (Debian, Ubuntu)"],["installing-from-an-rpm-package-almalinux-rocky-linux","Installing from an rpm package (AlmaLinux, Rocky Linux)"],["installing-from-a-release-directory","Installing from a release directory"],["installing-without-internet","Installing without internet"],["choosing-what-to-install","Choosing what to install"],["giving-the-panel-its-own-name","Giving the panel its own name"],["claiming-the-panel-with-the-setup-code","Claiming the panel with the setup code"],["checking-the-installation","Checking the installation"],["troubleshooting","Troubleshooting"],["removing-berth","Removing Berth"],["next-step","Next step"]],"x":"This page takes you from a fresh server to a running panel. Every installation method ends in the same command, berth install, which sets up the whole web stack and can safely be run again: what is already there stays, and what is missing is repaired. Check the system requirements first; in particular, the server needs a working VPN interface before you start. Choosing a method Method When Updating afterwards One-line command with a licence The usual way: a fresh server with internet and a licence code berth update deb package Debian or Ubuntu, if you prefer an apt repository apt-get update && apt-get install berth rpm package AlmaLinux or Rocky Linux 10 install the newer package with dnf Release directory You have the directory with the Berth binaries berth update --from … Offline bundle Isolated networks without internet a newer signed bundle All methods need root (or sudo), and you should be logged in through the VPN. Installing with the one-line command Log in to the server through the VPN. Copy the installation command from your licence email or the licence download page, which has your licence code filled in and a copy button, and paste it into the shell. Wait until the installation finishes. The last lines show a setup code: write it down, you need it for the first sign-in. The command downloads the installer and its signature, checks the signature against the Berth release key that is written into the command itself, and only then runs the installer. The installer in turn fetches the release manifest for your architecture, verifies its Ed25519 signature, checks the size and SHA-256 of the program archive against the manifest, records your licence and runs berth install. If any signature or checksum does not match, it stops and nothing on the server changes. Options go after --code \"$code\" on the last line of the command: Option Meaning --code CODE Your licence code (already filled in). --email ADDRESS Only for a licence that is tied to an email address. --hostname NAME Fully qualified name of the server. Default: the output of hostname -f. --php LIST PHP versions, for example 8.3,8.2. Default 8.3. --no-mail Without a mail server. Without a licence you can still install from a package or a release directory; the server then runs as a 30-day trial with every feature. See Licence and trial. Installing from a deb package (Debian, Ubuntu) Berth is also available as a deb package in a signed apt repository. The repository address is supplied separately, together with its public key. Put the repository's public key in /usr/share/keyrings/berth.asc. Add the repository in /etc/apt/sources.list.d/ with signed-by=/usr/share/keyrings/berth.asc. Install the package and set up the server (the package does not do the setup itself on first install): ``bash apt-get update apt-get install berth berth install --hostname server.example.nl --php 8.3 `` Record the licence: berth license activate --code <CODE>. Later package upgrades reconfigure the server by themselves, with the choices of the first installation. Installing from an rpm package (AlmaLinux, Rocky Linux) There is an rpm package for x86_64 and aarch64 with the same content: dnf install ./berth-<version>-1.<arch>.rpm berth install --hostname server.example.nl --php 8.3 berth license activate --code <CODE> Installing a newer package on a server that already runs Berth reconfigures it straight away with the previous choices. Installing from a release directory If you have the directory with the Berth programs (berth, berthd, berth-agent, berth-probe), copy it to the server and start the installation from there: sudo /root/berth/berth install --hostname server.example.nl --php 8.3,8.2 berth install places the programs and creates the systemd services berth-agent and berthd. Installing without internet For isolated networks, build one file with everything the installation needs on a server with internet that runs the same OS version and architecture as the target: sudo berth offline-bundle create --out berth-offline.tar --php 8.3,8.2 berth offline-bundle verify berth-offline.tar The bundle contains the packages of the whole web stack with their dependencies (including BIND, Node.js and Python), the Berth programs, wp-cli, the ClamAV virus definitions of that server, the latest WordPress (--apps adds Joomla, Drupal, Nextcloud or Matomo) and a manifest with the SHA-256 of every file. Install ClamAV and let it fetch definitions on the connected server first, or the mail virus scan and realtime malware scan cannot start offline. On the target server: tar xf berth-offline.tar sudo ./berth-offline/bin/berth install --offline berth-offline.tar --php 8.3,8.2 The installer checks the OS, the architecture and every file against the manifest, and uses the bundle as its only package source, also for later --reconfigure runs. A bundle signed with the Berth release key is verified against the key pinned in Berth. A bundle without that signature installs only with --offline-unsigned, and then nothing in it is checked for origin. Updating from a bundle (berth update --offline) always requires a signed one. Without internet, Let's Encrypt, virus definition updates, OS package vulnerability scanning and the WordPress vulnerability feed do not work. Use an internal certificate authority or upload certificates; see Certificates. Choosing what to install berth install installs the full hosting stack by default. The most useful options: Option Meaning --hostname NAME Server name for mail and the server certificate. --php 8.3,8.2 PHP versions to install, from 5.6 to 8.5. Default 8.3. --profile hosting or apps hosting (default) installs everything. apps is a server for applications only: agent, panel, MariaDB, apps, containers, monitoring, updates and vulnerability management, without Apache, PHP-FPM, mail, FTP, webmail, WAF and Adminer. --with / --without Add or leave out parts by name: adminer, auditd, fail2ban, ftp, mail, mail-antivirus, malware, malware-realtime, resolver, spam, waf, web, webmail, wordpress. --no-mail, --no-spam, --no-webmail, --no-waf, --no-ftp, --no-malware, --no-adminer, --no-wordpress, --no-fail2ban, --no-auditd, --no-resolver, --no-web Leave a part out. Without the local resolver there is no DANE for outbound mail. --mail-antivirus Scan incoming mail with ClamAV. On by default on a new installation when clamd already runs for the upload or realtime scan. --malware-realtime, --upload-scan Realtime malware scan of webspaces and scanning of uploads through the WAF. On by default with enough memory; afterwards the choice under Security → Malware applies. --firewall Switch on the panel firewall on an existing server that has no firewall choice yet. A new installation always switches it on. --admin-login, --admin-email, --admin-password-file Unattended: create the first administrator straight away (password from a file, or - for stdin). No setup code is printed then. --psacln-gid, --psaserv-gid, --popuser-uid, --popuser-gid Group and user numbers, only for a migration where the numbers of the old server must be kept. See On-disk layout. --reconfigure Run again with the choices of the previous installation; options you give now take precedence. A profile is only a starting point: parts can be added later with --with or under System → Software, without reinstalling. To add a PHP version later without losing the other choices: berth install --reconfigure --php 8.3,8.2,7.4 Unattended installation, for example from cloud-init or Ansible: printf '%s\\n' \"$PASSWORD\" | berth install --hostname server.example.nl \\ --admin-login beheer --admin-email beheer@example.nl --admin-password-file - Giving the panel its own name The panel needs its own name with a valid certificate: for password reset by mail, for passkeys (which require https) and for ACME delegation. Point an A record (and AAAA) for the name at the server, wait until it resolves, then: berth panel hostname set panel.example.nl --tls --email admin@example.nl The panel is now at https://panel.example.nl/. You can also do this later under Settings → Panel, card Panel address. Webmail and Adminer never run on the panel's own address; see First steps. Mail clients and FTP use the certificate of the server host name, which is self-signed until you request a real one: berth tls issue --domain server.example.nl --email admin@example.nl Claiming the panel with the setup code As long as there is no administrator, the installation ends with a twelve-character setup code. Only someone with that code can claim the panel. Open the panel in a browser. Every page leads to Welcome to Berth. Enter the Setup code. Choose your own User name, Email address and Password (at least 12 characters; a sentence works well). Easily guessed names such as root, admin and superadmin are refused. Optionally fill in where server notifications go and a contact address for Let's Encrypt. Click Set up panel. You are now signed in as administrator. Lost the code? Create a new one on the server with berth admin setup-code; this works only while there is no administrator. Prefer the command line? Create the administrator directly: printf '%s\\n' \"$PASSWORD\" | berth admin create --login beheer --email beheer@example.nl The same welcome page also offers Restore from an external backup for a replacement server after a disaster; see Disaster recovery. Checking the installation berth doctor berth doctor checks the OS, accounts, directories, services, config tests, the agent, the API, the panel database and the SSH guard on port 22, and prints OK, WARN or FAIL with what to do. The same checks run daily in the panel under System → Diagnosis. See Services and diagnostics. Troubleshooting Problem What to do The OS is refused Only the versions in the requirements are supported. Use a clean installation of one of them. The installer refuses because there is no VPN interface Set up Tailscale or WireGuard first and connect through it. /etc/resolv.conf is managed by systemd-resolved or Tailscale The installer leaves it alone and says what to do. With Tailscale: tailscale set --accept-dns=false, then run the same berth install again. Without the local resolver, DANE for outbound mail does not work and the spam filter's DNS blocklists refuse public resolvers. The panel certificate fails The name must already point at the server and port 80 must be reachable. The panel stays on http in the meantime. Something else fails Run the same berth install again (it is safe; after a successful install berth install --reconfigure also works), then berth doctor. Removing Berth berth uninstall shows what would be removed; berth uninstall --yes removes the panel's daemons, timers, firewall, include files, rendered configuration and programs, so websites and mail are no longer served. Customer data always stays: webspaces, Maildirs, customer databases and backups; as long as the panel database is kept, installing Berth again puts every subscription back. Only --purge also removes the panel database and /etc/berth, including certificates and DKIM keys. Next step Continue with First steps."},{"s":"first-steps","l":"en","t":"First steps after installing","d":"Turn a fresh installation into a server ready for customers: the setup checklist, the panel's address and name, your own sign-in, notifications, backups, maintenance windows, the first package, customer and domain, and a final diagnosis.","c":"start","g":["getting started","setup","onboarding","checklist","first customer","panel name"],"h":[["1-look-around","1. Look around"],["2-work-through-the-setup-checklist","2. Work through the setup checklist"],["3-the-panel-s-address","3. The panel's address"],["webmail-and-adminer-names","Webmail and Adminer names"],["4-the-panel-s-name-and-branding","4. The panel's name and branding"],["5-secure-your-own-sign-in","5. Secure your own sign-in"],["6-notifications","6. Notifications"],["7-check-the-firewall","7. Check the firewall"],["8-backups-off-the-server","8. Backups off the server"],["9-maintenance-windows","9. Maintenance windows"],["10-licence","10. Licence"],["11-the-first-package-customer-and-domain","11. The first package, customer and domain"],["12-run-the-diagnosis","12. Run the diagnosis"]],"x":"You have installed Berth and claimed the panel with the setup code (see Installing Berth). This page walks through what to set up next, in a sensible order, so the server is ready for real customers. Each step links to the article that covers it in depth. 1. Look around After signing in you land on Overview. The sidebar has the hosting pages at the top (Domains, Software, Databases, Applications, Performance, Uptime, Backups and more) and the administrator block Admin below: Admin overview, Customers, Audit log, Backups, System, Fleet, Security and Settings. Resellers, Packages, Migration, PHP and the mail queue are on Admin overview; Access, Branding and Integrations are tabs under Settings. The search field in the menu finds domains, mailboxes, aliases, databases, subscriptions, customers and logins, and the search on the Settings page finds the setting you are looking for. At the top right of every page are three buttons: background tasks, pending actions and notifications. Pending collects everything someone needs to do: a reboot after a kernel update, a failed diagnosis, approvals waiting for you, a licence to sort out. The same overview is on the command line: berth status 2. Work through the setup checklist Settings → Panel starts with a Setup ring: the points a production server needs, each with a link to where you fix it. Own address with https. Send mail (sending mail works). Notifications to a recipient. Watchdog, which restarts services that stop. Monitoring from outside, through a secret health page or an outbound heartbeat. Terminal with fresh confirmation (the browser terminal opens only after a fresh confirmation, for every terminal on the server). Vulnerability reporting (a security contact for security.txt). Webmail and Adminer on their own names, when one of them still waits for DNS or a certificate. 3. The panel's address If you did not do it during installation, give the panel its own name with a certificate under Settings → Panel, card Panel address, or: berth panel hostname set panel.example.nl --tls --email admin@example.nl After saving, sign in again at the new address. Webmail and Adminer names Webmail (Roundcube) and Adminer never run on the panel's own address, so a flaw in either cannot act with your panel session. By default they get webmail.panel.example.nl and adminer.panel.example.nl. Add A (and AAAA) records for both names; the panel requests their certificates by itself once the names point at the server, and until then shows the DNS records it needs on Settings → Panel and in the pending items. Customers use webmail.<their domain>. berth panel webmail-host webmail.panel.example.nl berth panel adminer-host adminer.panel.example.nl 4. The panel's name and branding Settings → Branding sets the name customers see, the logo for light and dark mode, the main and accent colour, a favicon and the helpdesk email and URL. The brand appears in the panel, the login page, status pages, monthly reports, notification mails and webmail. berth brand --name \"Example Hosting\" --color '#0a5f8c' \\ --logo logo.png --logo-dark logo-dark.png \\ --support-email support@example.nl --support-url https://example.nl/help Resellers can have their own brand and their own panel address; see Resellers and white label. 5. Secure your own sign-in Two-step verification is optional and recommended: with only a leaked password nobody gets in. Under Account, choose Set up authenticator app and store the recovery codes, or Add passkey. With two or more passkeys you can sign in with a passkey alone. See Sign-in security. A second administrator means you are not the only way in. Create one under Access → Admins and auditors. An emergency account for when normal access fails (for example when single sign-on is down): berth admin break-glass --login nood. Store the password, shown once, on paper in a safe. With two administrators you can switch on four-eyes approval for destructive and security-sensitive actions. See Roles and permissions. 6. Notifications Settings → Notifications: where administrator notifications go, thresholds and office hours. Send a test notification. Account → My notifications → Link a channel: Slack, Microsoft Teams, Discord, ntfy, Matrix, Telegram, a signed webhook, SMS and more. See Notifications and alerts. 7. Check the firewall A new installation switches on the panel firewall with the ports of the installed services. Look at Security → Firewall to see what is open. Changes are applied with Apply and must be confirmed with Confirm; without confirmation the previous rules come back by themselves. See Firewall and bans. 8. Backups off the server Local archives and the hourly history start automatically, but a backup on the same disk does not survive the loss of the server. Set up an external place: Backups → Places → With one key for S3 at Scaleway, Backblaze B2, AWS, Wasabi or Hetzner, with versioning and Object Lock, or NAS for a Synology, Ugreen or TrueNAS in append-only mode. Backups → Schedules: apply a preset, Mostly external, Balanced or Mostly local, and check the disk estimate. Store the repository password shown once outside the server. Without it, the external backup cannot be read in a disaster recovery. berth backup preset list berth backup preset apply evenwichtig --dry-run See Backup to S3 and Backup to a NAS. 9. Maintenance windows OS updates and reboots that wait for a window happen only inside one. Set windows under System → Maintenance, card Maintenance windows, in the form days, start time and length in minutes: berth maintenance windows --window \"di,do 02:00 120\" --reboot Day names can be written in the panel's language, for example tue,thu or di,do. See OS updates and maintenance. 10. Licence If you installed without a licence code, the server runs as a 30-day trial with everything on. Record your licence under System, card Licence, or with berth license activate. See Licence and trial. 11. The first package, customer and domain Package: Packages → New package. A package is the template for subscriptions: limits for domains, mailboxes and databases, disk, PHP version, isolation limits, shell, apps and containers. ``bash berth plan set --name basis --php 8.3 --disk-mb 10240 --max-domains 5 --max-mailboxes 20 `` Customer: Customers → Add customer. ``bash printf '%s\\n' \"$PW\" | berth customer add --login acme --name \"Acme\" \\ --email info@acme.nl --password-stdin `` Domain: Domains → Add. Choose the customer and the package (which creates a subscription) or an existing subscription, the document root and whether to request a certificate straight away. ``bash berth customer create --domain acme.nl --plan basis --customer acme --tls --email info@acme.nl `` Then switch on mail for the domain and add a mailbox (Mailboxes), point DNS (DNS) and install an application (Software installer). Packages, subscriptions and overrides are explained in Customers and packages and Domains and subscriptions. Coming from another panel? Instead of creating customers by hand, take the whole server over; see Migration overview. 12. Run the diagnosis System → Diagnosis shows every check with OK, WARN or FAIL. A finding that Berth can repair has an Fix… button, which leads to Start repair. The same checks run daily and after every update. berth doctor berth doctor --json berth doctor exits with code 1 on any FAIL, so you can use it in your own monitoring. See Services and diagnostics."},{"s":"licence-and-trial","l":"en","t":"Licence and trial","d":"One licence per server unlocks every feature; a new server runs as a full 30-day trial, and without a valid licence Berth stops only new additions and updates, never existing sites, mail or databases.","c":"start","g":["licence","license","trial","activation","innokeys","pricing"],"h":[["one-licence-per-server-no-editions","One licence per server, no editions"],["the-30-day-trial","The 30-day trial"],["recording-a-licence","Recording a licence"],["how-checking-works","How checking works"],["what-each-state-means","What each state means"],["berth-never-takes-anything-offline","Berth never takes anything offline"],["removing-a-licence","Removing a licence"],["moving-to-a-new-server","Moving to a new server"],["updates-and-the-licence","Updates and the licence"]],"x":"Berth is licensed per server. A licence unlocks everything, there is no feature gating, and a server without a valid licence keeps hosting what it already hosts. This page explains the trial, how to record a licence, what each licence state means and what happens when you move to a new server. One licence per server, no editions There are no editions or feature tiers. One licence per server unlocks every part of Berth, including Fleet, resellers, white label, the API and the AI features. Prices are announced at launch. Licences are issued through InnoKEYS, the licensing service behind Berth. The licence code is what you need; the installation command in your licence email already contains it. The 30-day trial A new installation without a licence runs as a trial for 30 days, with every feature on. The licence card shows how many days are left. You can install, migrate and test exactly as with a licence; recording a licence later changes nothing on the server except lifting the time limit. Recording a licence In the panel: Go to System. The Licence card shows the state, the masked code, the validity, the last check and whether a newer Berth release is available. Enter the Licence code, and the email address only if your licence is tied to one. Click Save licence. The panel checks the code immediately. On the server: berth license activate --code <CODE> [--email <address>] berth license activate --code-file - # read the code from stdin, so it stays out of the process list berth license status # state as of the last check berth license check # check now, and look for a newer release With the one-line installation command, the licence is recorded during installation and you do not need to do this. The licence card also has a Buy licence button. How checking works The panel checks the licence when it starts and regularly after that. The licence service signs its answer, and Berth verifies that signature against a key pinned in Berth itself, so a forged answer is rejected. If the licence service is temporarily unreachable, the panel keeps working on the last valid answer for a grace period. When something needs attention, administrators see it under Pending and receive a notification. What each state means State on the licence card What works Trial: no licence, within 30 days of installation Everything. Valid Everything. Grace: the licence service cannot be reached for a while, or the licence has expired but is within its grace period Everything. After expiry, new Berth releases are not installed until the licence is renewed; rolling back to the previous version is always allowed. None after the trial, or Not valid No new customers, subscriptions, domains, resellers or imports, and no Berth updates. Everything that exists keeps working and stays manageable. Berth never takes anything offline Whatever the licence state, existing websites, mail, databases, DNS and backups keep running, and you can still manage them: change settings, add mailboxes and databases to existing subscriptions, restore data, apply OS updates. A licence problem only blocks growth (new customers, subscriptions, domains, resellers, imports) and updates of Berth itself. Recording a valid licence lifts the restriction immediately. Removing a licence The licence card has Remove licence in its danger zone, and the command line has berth license remove. The panel keeps working, but berth update can no longer fetch releases, and once the trial period is over the restrictions above apply. Moving to a new server A licence belongs to a server. When you replace a server, for example after a disaster recovery, check the licence card on the new server (berth license status) and confirm the licence again with berth license activate --code <CODE> if needed. A recovery drill server (restored with --drill) never activates or reports the licence and installs no updates, so a drill can never take over the real server's licence. Updates and the licence A licence is also what lets berth update download new releases. Every release is signed with the Berth release key and checked before anything is installed, independent of the licence. See Updating Berth."},{"s":"updating-berth","l":"en","t":"Updating Berth","d":"Update Berth from the panel or with berth update; every release is signature-checked first, falls back automatically when it is unhealthy, can be rolled back, and patch releases can install themselves in the maintenance window.","c":"start","g":["update","upgrade","rollback","release","berth update","downgrade"],"h":[["which-version-is-running","Which version is running?"],["before-you-update","Before you update"],["updating","Updating"],["your-own-release-source","Your own release source"],["without-internet","Without internet"],["what-an-update-checks-first","What an update checks first"],["what-happens-during-an-update","What happens during an update"],["automatic-fallback","Automatic fallback"],["rolling-back-by-hand","Rolling back by hand"],["automatic-updates","Automatic updates"],["after-updating","After updating"],["if-an-update-stopped-halfway","If an update stopped halfway"]],"x":"Berth updates itself as one signed unit: the panel, the agent, the CLI and the rendered configuration of every site move to the new release together. This page covers checking which version runs, updating by hand or automatically, what happens during an update, and how to go back. This article is about Berth itself. OS packages, PHP versions and kernels are updated separately; see OS updates and maintenance. Which version is running? In the panel: under System → Updates → Berth, which also shows whether a newer release is available, what is new in it, and whether it is a patch, a new version or a security update. The version is also on the System overview. On the server: berth version. Before you update Pick a quiet moment, preferably inside a maintenance window. Check that the last backups and the external copy succeeded under Backups. If the server is a virtual machine, a snapshot is a cheap extra safety net; the update policy can have Berth take one before every update it runs (see Disks and snapshots). Check the server: berth doctor. Updating Installed with Update with The one-line command with a licence berth update, or System → Updates → Berth deb package (Debian, Ubuntu) apt-get update && apt-get install berth rpm package (AlmaLinux, Rocky Linux) the newer package with dnf Your own source of signed releases berth update --from <directory or https address> Offline bundle berth update --offline <bundle> In the panel, System → Updates → Berth has a Update button that runs the update as a system job with a live log. On the command line: berth update --check # fetch and verify only, install nothing berth update # update to the newest release On a deb installation berth update refuses and points you to apt; the package reconfigures the server itself after installing. Your own release source With signed releases in a directory or on an https server of your own: berth update --from https://releases.example.nl/linux-{arch} {arch} becomes amd64 or arm64. Plain http is refused unless you pass --insecure-http, and never for automatic updates. Without internet berth update --offline berth-offline.tar installs from an offline bundle. The bundle is staged next to the current one and fully checked before anything changes: every file against the manifest, the Ed25519 signature against the pinned release key, and the OS and architecture. A bundle without a valid signature is refused. See Installing Berth. What an update checks first Before anything is installed, berth update downloads SHA256SUMS and its signature, verifies the Ed25519 signature against the release key pinned on the server, and then checks every file against the SHA-256 sums. If anything does not match, nothing changes. Two more rules protect against being pushed back to an old, vulnerable release: Only a newer version is installed. --force reinstalls the same version, for example when integrity checking reports that a panel binary changed. After every successful update, that version becomes the lowest allowed version. Installing anything below it requires an explicit --allow-downgrade. What happens during an update The current programs are kept aside. The new programs are put in place and berth-agent and berthd restart. The panel database is migrated. Before each schema migration the panel database is dumped, so there is always a copy from just before the change. berth install --reconfigure runs with the choices of the original installation, and every domain and the panel's own virtual host are rendered again, so new protections apply everywhere at once. Each file goes through the usual validation; see How changes go live. File integrity is checked against the checksums of the signed release. The panel is briefly unavailable while it restarts. Websites, mail and databases keep running. Automatic fallback Every update has a way back: After 90 seconds: if the agent or the panel is not healthy, the previous version is put back immediately and you are notified. For 24 hours afterwards: if the panel keeps crashing, the watchdog restores the previous version and skips the failed one until a newer release appears. A version that was rolled back this way is listed on the update page as Skipped after problems. Rolling back by hand To go back to the version from before the last update: In the panel: System → Updates → Berth, danger zone Restore previous version. Type terug to confirm. On the server: berth update --rollback. The version you rolled back from is then excluded from automatic updates until there is a newer one. Rolling back is always allowed, whatever the licence state. Database migrations only add, so the previous version can work with the migrated database. Automatic updates The update policy under System → Updates → Policy has a setting for Berth itself: Setting Behaviour auto Patch releases (for example 1.4.2 to 1.4.7) install themselves in the next maintenance window. A new minor or major version is announced, and you install it yourself. notify Every new release is announced; you install it yourself. off Berth is not updated automatically. A patch that fixes security vulnerabilities does not wait for the window. berth system update-policy --panel auto berth system update-policy --panel notify --snapshot on If you manage several servers, Fleet can roll a Berth update out in rings with a health gate. After updating berth doctor. Check System → Updates → Berth for the new version and the result of the last update. Optionally look at Security → Integrity, where the panel's binaries are compared with the checksums of the signed release. If an update stopped halfway Run the update again (berth update --force) or berth install --reconfigure. Both are safe: what is in place stays, and what is missing is repaired. If a service misbehaves afterwards, see Services and diagnostics. If the panel itself does not come up, the rescue mode works without the panel database."},{"s":"architecture","l":"en","t":"Architecture","d":"How Berth is built: an unprivileged panel daemon, a small root agent that accepts only typed and individually authorised operations, a subprocess per operation, modules with their own tables, a MariaDB panel database, an event bus, jobs and an OS adapter.","c":"concepts","g":["architecture","berthd","berth-agent","privilege separation","design","internals"],"h":[["the-four-programs","The four programs"],["berthd-the-unprivileged-panel","berthd: the unprivileged panel"],["berth-agent-a-small-root-service-with-a-closed-vocabulary","berth-agent: a small root service with a closed vocabulary"],["who-is-asking-peer-credentials","Who is asking: peer credentials"],["per-operation-policy","Per-operation policy"],["one-subprocess-per-operation","One subprocess per operation"],["modules","Modules"],["the-panel-database","The panel database"],["event-bus","Event bus"],["jobs-and-background-tasks","Jobs and background tasks"],["os-adapter","OS adapter"],["open-source-components-and-licensing","Open-source components and licensing"],["extensions-run-outside-the-panel","Extensions run outside the panel"],["further-reading","Further reading"]],"x":"Berth is split along one line: the part that talks to the internet never has root, and the part that has root never talks to the internet. This article describes the four programs, the protocol between the panel and the root agent, how each operation is authorised and executed, and the building blocks inside the panel: modules, the panel database, the event bus, jobs and the OS adapter. It is meant for administrators, auditors and developers who want to know what runs where and why. The four programs Program Runs as Role berthd the unprivileged user berth The panel: web UI, REST API with OpenAPI, the MCP endpoint for AI assistants, the modules and the panel database. Listens only on loopback, behind nginx. berth-agent root Carries out everything that needs root, on request, over a local unix socket. Accepts only a closed set of typed operations. berth the administrator, usually root The command line. Talks to the agent like the panel does, or runs in-process as root with --local when the agent itself is not running. berth-probe anyone, anywhere Measures domains from outside: HTTP, HTTPS, TLS, DNS, MX and STARTTLS, optionally IMAP, POP3, submission and FTP, and a few pages per site. Writes one JSON line per domain, compares two runs and builds a parity report. Used for migration parity checks. browser / API client / AI connector │ https ▼ nginx ──────────────► websites (Apache, PHP-FPM, apps, containers) │ loopback ▼ berthd (user berth) ── MariaDB: panel database \"berth\" │ unix socket: typed requests, one response each ▼ berth-agent (root) ── one worker subprocess per operation │ ▼ /etc/berth/rendered, systemd units, users, quotas, nftables, ... berthd: the unprivileged panel berthd runs as the system user berth under a systemd sandbox: NoNewPrivileges, ProtectSystem=strict, ProtectHome, PrivateTmp, PrivateDevices, protected kernel tunables, modules and control groups, RestrictSUIDSGID, and memory and task limits so a leak cannot take the server with it. It is not a member of the customer groups. It cannot read webspaces, Maildirs or customer databases directly; it reaches them only by asking the agent. Every API and UI request runs with panic recovery: a bug in one handler returns an error for that request, not a dead panel. The same applies to every background job. berth-agent: a small root service with a closed vocabulary The agent listens only on a local unix socket, never on the network. The wire format is deliberately plain: newline-delimited JSON, one request, one response. Each request names an operation and carries its parameters. There are a little over 300 operations, and each one is a Go type with its own Validate() method: enums for choices, bounds for numbers, strict patterns for domain names, user names and paths. The agent does not trust anything the panel sends; it validates every field again before acting. There is no generic \"run this command\" or \"write this file anywhere\" operation. Where the panel needs something new from root, a new typed operation has to be written for it. Derived data comes from the agent's own lookups, not from the request. For example, when the panel asks for a PHP-FPM pool or a web server virtual host, the agent renders the file itself from a typed specification and looks up the subscription's uid, sockets and certificate paths on its own, binding them to the subscription the request names. Who is asking: peer credentials The agent identifies the caller through the kernel, with SOPEERCRED on the socket, not from anything in the request. If the kernel cannot tell, the request is denied. A request may carry an actor* (which panel user asked for it), but the agent treats that as information for its audit trail only, never as authorisation. Root (the berth CLI run by an administrator, the installer, timers) may use every operation. Any other caller, in practice berthd, goes through an explicit policy. Per-operation policy Every operation has exactly one rule for non-root callers: allowed, with a written reason for why that is safe (what Validate() and the handler already limit); root only, for things the panel must never do itself, such as changing the hoster's server policy; checked, guarded by a named check, for example that a file operation stays inside the webspace of the subscription it names, that a service unit is not on the protected list, or that a quota value fits. An operation without a rule is denied to the panel. A test in the build fails when someone adds an operation without deciding its rule, and also when a rule names a check that does not exist. The result is a simple guarantee: even a fully compromised panel process can only do what the agent's policy allows it to do. Each operation also has a sensitivity class: read, access (new access to data: passwords, keys, sign-in links), export, destroy or security (anything else that changes the server). The agent keeps its own append-only audit trail of everything above read and of every denied request, chained with an HMAC key the panel never has, and anchors it against the panel's activity log so a rewritten log is detected. See Audit trail and approvals. One subprocess per operation The agent does not run operations in its own process. For each request it starts itself again as a worker subprocess, passes the request on stdin and reads the response from stdout. The worker validates the request exactly as the agent does. A handler that crashes, hangs or eats memory affects only that one process; the agent enforces a timeout and an output limit and kills the whole process group when either is exceeded. Concurrency is capped per subscription, per customer and per reseller, with a reserve that is always kept free for system work. One busy customer cannot occupy the agent for everyone else. Background work (backups, the hourly history, scans, statistics, migration syncs, image conversion) runs in a background slice at the lowest CPU and IO priority, so the panel, PHP and MariaDB come first whenever they need the CPU or the disk. Where the disk scheduler supports weights, Berth switches it to BFQ so the IO priority actually takes effect. Modules The panel is built from modules: customers, auth, databases, mail, web, TLS, cron, FTP, SSH access, backups, malware, uptime, statistics, log drains, incidents, the audit watchdog, migration, parity, containers, software, mailing lists, notices, alerts, system apps, vulnerabilities, AI, Fleet and more. berth modules lists them in start order. The core interface is small: a name, a description and dependencies. Optional abilities, such as database migrations, are separate interfaces that a module implements if it needs them. Each module owns its tables, with a prefix, and its own migrations. Modules start in dependency order. A module reports its health as Healthy, Degraded (the rest of the panel keeps running), Disabled or Migrating, during which the panel answers with a temporary error rather than half-migrated data. The panel database The panel database is the MariaDB schema berth, reached over a unix socket with socket authentication, so there is no database password to steal. It holds the desired state: customers, subscriptions, domains, mailboxes, schedules, settings. Before each schema migration it is dumped, and the last few dumps are kept. The agent does not need the database. Services run from the files rendered into /etc/berth/rendered/, so a stopped panel or database does not stop websites or mail. The rescue mode also works without the database. How desired state becomes configuration is described in How changes go live. Event bus Modules publish events such as domain.created or cert.renewed on an in-process bus, and other modules subscribe with patterns (domain.*). Delivery is synchronous and isolated per handler: a handler that fails or panics does not affect the others. Every event carries the correlation id of the request or job that caused it, so logs can be followed end to end. Audit events are also what webhooks and extensions receive. Jobs and background tasks System jobs: long root work, such as an OS upgrade or enabling disk quotas, runs in its own transient systemd unit with a live log, so it survives a panel restart. berth job lists and follows them. Background tasks: long panel work, such as a restore test or an installation, shows a bar at the top of the page with progress and details, and a safe stop where stopping cannot leave things half done. berth task list, berth task show, berth task stop. OS adapter All distribution differences live in one place, the OS adapter, with implementations for Debian, Ubuntu (24.04 has its own variant) and the EL family (AlmaLinux, Rocky Linux). The adapter knows package names, service names (apache2 or httpd), paths, the PHP repository (Sury or Remi), the web server user, config test commands, SELinux labels and AppArmor rules. The rest of Berth asks the adapter instead of hard-coding paths, which is also what makes disaster recovery onto a different OS possible. Open-source components and licensing Berth uses the standard Linux hosting stack: nginx, Apache, PHP-FPM, Postfix, Dovecot, OpenDKIM, rspamd, ClamAV, ModSecurity and Coraza with the OWASP Core Rule Set, nftables, fail2ban, MariaDB, PostgreSQL, BIND, unbound, ProFTPD, OpenSSH, Roundcube, Adminer, restic, Valkey and Podman. Libraries compiled into the Berth binaries are MIT, BSD, Apache or MPL licensed only; the build fails if a GPL or AGPL library slips in. GPL tools such as Postfix or ClamAV run as separate programs, as they would without Berth. Extensions run outside the panel Extensions are separate processes supervised by the panel, each with its own scoped key and its own sandboxed systemd service, not plugins loaded into berthd. A failing extension cannot crash the panel, and it sees only what its key and the administrator's consent allow. See Webhooks and extensions. Further reading How changes go live: render, stage, test, swap, reload. Isolation: what separates one subscription from another. Security model: the threat model and the defences together. On-disk layout: where everything lives on the server."},{"s":"how-changes-go-live","l":"en","t":"How changes go live","d":"Every configuration change is rendered from the panel database, staged, checked with the service's own config test, swapped in atomically and reloaded, with automatic rollback, quarantine of one customer's broken file and a change log with diffs.","c":"concepts","g":["configuration","validation","rollback","atomic","config test","change log","declarative"],"h":[["desired-state-not-patches","Desired state, not patches"],["the-five-steps","The five steps"],["batched-tests-for-busy-servers","Batched tests for busy servers"],["one-customer-s-mistake-affects-only-that-customer","One customer's mistake affects only that customer"],["the-change-log","The change log"],["customising-safely","Customising safely"],["repairing-drift","Repairing drift"],["why-this-matters","Why this matters"]],"x":"When you change a PHP version, add an alias or switch on mail for a domain, Berth does not edit configuration files in place. It writes complete files from the desired state in the panel database, tests them with the service's own checker, and only then makes them live. A change that does not pass is rolled back before any service sees it. This article explains that pipeline, what happens when one customer's file breaks, and where you can see every change afterwards. Desired state, not patches The panel database holds what the server should look like: domains, aliases, certificates, PHP settings, mailboxes, DNS records. Configuration files are always rendered in full from that state, through templates that have golden-file tests. Berth does not patch lines in the files it owns, so there is no drift between \"what the panel thinks\" and \"what is on disk\" that builds up over time. If someone does edit a rendered file by hand, the next apply or berth repair --areas config simply writes the correct version again. The one exception is Postfix, which has no include mechanism: a hoster's own additions set parameters from a fixed list with postconf -e, still tested and rolled back on failure. Rendered files live under /etc/berth/rendered/, one directory per service (and per PHP version for PHP-FPM). Each service's own configuration contains only a small include file that points there, so the distribution's packaged config stays intact. Your own additions go in /etc/berth/local/, which Berth includes but never overwrites. See On-disk layout. You can also edit those additions in the panel, under System → Configuration (berth system local-config): one managed addition per service (nginx, Apache, PHP-FPM per version, Postfix, Dovecot, MariaDB, sysctl, journald and logrotate). Berth refuses directives that would let a program run as root. Each change runs through the service's own test and goes back automatically unless you confirm within a few minutes that the service still runs and answers. Earlier versions can be applied again, and a hand edit on disk can be adopted as the new addition. For the web server virtual hosts and PHP-FPM pools, the agent renders the files itself from typed specifications instead of receiving finished text from the panel, and binds paths, sockets and the run-as user to the subscription the request is for. See Architecture. The five steps Every apply is a small transaction carried out by the root agent: Stage. The new files are written next to the current ones under a temporary name that the service's include patterns do not read. The old content is kept for the diff. Swap. The new files replace the old ones with an atomic rename, and the previous version of each file is kept. A reader sees either the old file or the new one, never half of each. Test. The OS adapter runs the service's own configuration test against the full configuration: Service Test nginx nginx -t Apache apache2ctl configtest (Debian, Ubuntu) or httpd -t (AlmaLinux, Rocky) PHP-FPM php-fpm -t, separately for each subscription's own FPM Postfix postfix check Dovecot doveconf -n, with Sieve scripts compiled before they are put in place BIND named-checkzone, per zone Roll back on failure. If the test fails, the previous files go back and the service is not reloaded. The change is reported as failed with the test output; nothing live has changed. Reload. If the test passes, the service is reloaded in a safe order; PHP-FPM reloads let running requests finish. nginx is restarted instead when a change alters its shared memory zones (rate-limit or cache zones), which a reload cannot take over, and after every nginx reload Berth checks that the new configuration was really accepted, restarting nginx if it was silently refused. Only one apply runs per service at a time, including applies started by timers and by berth repair, so two changes can never see each other's half-swapped files. Batched tests for busy servers nginx -t reads the configuration of every site on the server, so ten customers saving at the same moment would mean ten full tests. Applies that wait for the same service are therefore collected: whoever gets the lock stages and swaps all waiting changes, runs one test and one reload, and gives each its own result. If that combined test fails, everything is rolled back and each change tests itself, so one broken change still cannot block the others; it costs at most one extra test. One customer's mistake affects only that customer A configuration test checks the whole service, so a single invalid file can make every apply on the server fail. That happens most often with a file that became invalid without being changed: a certificate that was removed, a directory that no longer exists, an IP address the server can no longer bind. Berth handles that case explicitly. When a test fails, the agent rolls back and checks whether the configuration from before the change also fails. If it does, the problem is not the new change but a file that was already broken. The agent finds that file from the test output and sets it aside under a .berth-quarantine name that the includes do not read, keeping its content for inspection. Then it tests again and lets the original change through. Only a file in the service's rendered directory can be quarantined, never a file that belongs to the change being applied. If the test still fails after quarantining, everything goes back: Berth prefers touching nothing over touching too much. A quarantined file raises an alert for the administrator, a warning in berth doctor and a notice to the customer whose domain it is. Until it is fixed, that one site or pool is left out of the configuration, while every other site keeps working and keeps accepting changes. The quarantine is lifted automatically as soon as a valid version of that file is applied or the domain is removed. DNS works the same way per zone: a zone that fails named-checkzone keeps serving its previous version. The change log Audit log → Changes lists every configuration the panel writes that actually changes something: which file, who caused it, when, and whether the service's test passed. Open a change to see the full diff and the steps (stage, swap, test, reload) with their duration and the exact command, including attempts that were rolled back. You can search by domain or any text in the diff. berth admin changes --limit 50 berth admin changes --contains acme.nl The broader activity log, with its tamper-evident hash chain, is described in Audit trail and approvals. Customising safely Several layers let you change what Berth renders without giving up validation: Per-domain web server directives (Custom web server rules): extra nginx or Apache directives for one domain. Off by default per package; validated before activation; the agent binds paths, sockets and ports to the subscription's own webspace and refuses dangerous directives. See Web server settings. Template fragments for hosters: files under /etc/berth/local/sjablonen/ that hook into named points of the nginx, Apache and PHP-FPM templates, optionally per package. berth sjablonen check validates them before use, and berth domain reprovision applies them. Server policy: root-only TOML files in beleid.d under /etc/berth with hard limits that neither packages nor the panel can loosen. Unknown keys or invalid values make the agent refuse the whole file and keep the last valid policy, and berth doctor reports it. berth beleid show and berth beleid check; the panel shows the policy read-only at Server policy. Repairing drift If a server has been changed by hand, or a restore left something inconsistent, berth repair puts it back into the state the panel knows: berth repair --dry-run # show what would happen berth repair --areas config # rewrite every domain, mail and the panel from the database berth repair # config, permissions, services and the SSH guard berth doctor runs before and after. In the panel: System → Diagnosis, Fix… on a finding. See Services and diagnostics. Why this matters A typo, a missing certificate or a bad directive never takes the web server or mail down for everyone. Every change is reversible and visible, with the exact diff. Updates of Berth itself re-render every site through the same pipeline, so new protections apply everywhere without risk; see Updating Berth."},{"s":"isolation","l":"en","t":"Isolation between subscriptions","d":"What keeps one customer from affecting another: a systemd slice with one resource budget per subscription, a PHP-FPM per subscription, PHP hardening, disk quotas, an outbound network fence, hidden processes and rootless containers in their own user namespace.","c":"concepts","g":["isolation","multi-tenant","cgroups","resource limits","quota","sandbox","noisy neighbour"],"h":[["a-system-user-per-subscription","A system user per subscription"],["a-systemd-slice-with-one-budget","A systemd slice with one budget"],["php-fpm-per-subscription","PHP-FPM per subscription"],["disk-quota","Disk quota"],["outbound-network-fence","Outbound network fence"],["processes-are-hidden","Processes are hidden"],["shell-sftp-and-the-browser-terminal","Shell, SFTP and the browser terminal"],["containers-in-a-user-namespace","Containers in a user namespace"],["databases-on-a-shared-server","Databases on a shared server"],["web-facing-helpers-run-on-their-own","Web-facing helpers run on their own"],["where-to-see-it","Where to see it"]],"x":"On a shared server, the question is not whether a site will be hacked, overloaded or misconfigured, but what that does to everyone else. Berth's answer is that it should only affect the subscription it happens in. This article explains each layer of separation, from CPU and memory to disk, network, processes and containers, and where you set the limits. A subscription is the unit of isolation: one system user with its webspace, domains, mailboxes and databases, created from a package. A customer can have several subscriptions. See Domains and subscriptions. A system user per subscription Every subscription has its own Linux user and runs everything as that user: PHP, Node.js and Python apps, scheduled tasks, the file manager, SFTP, the shell and containers. Files in the webspace belong to that user. Other subscriptions cannot read them: the webspace root belongs to root and is open only to the web server group, and the document root belongs to the subscription. A system user ID is handed out only once, so a new subscription never inherits files or rights that a removed one left behind. See On-disk layout. A systemd slice with one budget Each subscription runs in its own systemd slice, a cgroup with its own limits. Inside it: the subscription's own PHP-FPM, one per PHP version it uses; its Node.js and Python apps and their background workers; its object cache (a Valkey instance on a unix socket); its browser terminal and SSH sessions; its scheduled tasks; its containers. All of these share one budget. Web traffic, a cron job and an SSH session of the same subscription draw from the same CPU, memory, process and disk-IO limits, so a subscription cannot get twice its package by spreading work across services. Limit Meaning CPU Without a package limit, subscriptions share the CPU equally when the server is busy, and one site may use more when it is quiet, up to a ceiling of 90 % of all cores by default. A package can set a fixed cap instead, as a percentage of one core (200 means two cores). Memory Hard limit, with swap capped per subscription as well; usage is measured as PSS, so shared pages are counted fairly. Processes Processes and threads together. A fork bomb stops at this limit. Disk IO Read/write throughput in MB/s and operations per second. In a package, 0 means the server default and -1 means deliberately no limit. The server default is set under Packages → Limits per subscription: CPU as a ceiling and memory as a share of the server, so a server that grows gives every subscription more. Changing a limit takes effect immediately; nothing restarts. berth plan set --name basis --cpu-percent 100 --memory-mb 1024 --max-processes 256 berth plan isolation-defaults --cpu-share 90 --memory-share 50 berth subscription isolation --sysuser acme As memory gets close to the limit, the kernel first slows the subscription down; only at the limit does it stop a process, while the rest of the site keeps running. Because swap is capped too, one site that runs out of memory cannot push the whole server into swapping, and the database and the shared system services keep a guaranteed amount of memory. The alert engine notifies the administrator, the customer and the reseller when a subscription sits at its memory or process limit or is throttled on CPU for a sustained period. Per-app limits narrow this further: inside a subscription, each app can have its own CPU, memory, process and IO limit, never above the subscription's own (berth app limits, or Apps → Limits on the domain). Background work of the panel itself (backups, scans, statistics) runs in a separate low-priority slice, and the root agent caps how much work it does at once per subscription, per customer and per reseller. One customer's large restore cannot crowd out everyone else's panel actions. PHP-FPM per subscription Every subscription gets its own PHP-FPM master per PHP version, inside its slice. A PHP memory leak, a scraper hammering a slow page or a pool full of stuck requests affects only that subscription, not other sites on the same PHP version. An idle FPM costs roughly 15 to 20 MB of memory per subscription and version. On a small server with many subscriptions you can choose Only packages with limits, and the rest share one FPM per version. PHP is hardened by default: openbasedir is the subscription's home, and security.limitextensions allows only .php. Process functions such as exec, system and procopen are disabled. The package option PHP may start processes* (--php-shell) allows them. mail() is off per package by default (--php-mail allows it), and when allowed it goes through Berth's mail gate, which counts it against the subscription's outbound budget. See Outbound mail. expose_php is off, session cookies are hardened, and FPM runs with its own /tmp inside the subscription's webspace and a private view of /proc. See PHP. Disk quota The disk space of a package is enforced by the file system where possible: File system How What counts xfs with pquota, ext4 with the quota and project features Project quota Webspace, Maildirs, MariaDB databases and container storage of the subscription together ext4 without the project feature (the Debian and Ubuntu default) Per-user quota What the subscription's user writes in its webspace; mail, databases and containers are measured and enforced separately btrfs, ZFS, network file systems Measure only Measured hourly and reported The package value is the soft limit; the hard limit is slightly higher, and a subscription above the soft limit has a week of grace. At the hard limit, the file system refuses new files for that subscription only, so a customer or a hijacked site cannot fill the server's disk. Packages also limit the number of files and folders (inodes): by default 100 per MB of disk space, at least 250,000, so a cache or session folder with millions of tiny files cannot exhaust the file system (berth plan set --inodes; -1 means no limit). Temporary files and logs count as well. Each subscription gets its own /tmp and /var/tmp inside its webspace, for PHP, apps and the shell, and on Debian and Ubuntu for scheduled tasks too, so they count towards its quota and cannot fill the server's shared /tmp. PHP error and slow logs are rotated as soon as they grow large. Space that still falls outside the quota is capped: a domain's log folder that runs away is cut back with a notice, and a subscription's files in the shared temporary directories are removed above a limit (berth quota shared runs the same check by hand). What the file system does not cover, Berth enforces itself: Databases over the hard limit are write-locked: MariaDB databases can still be read and cleaned up with DELETE, DROP and TRUNCATE; PostgreSQL databases become read-only. The lock lifts by itself once usage is back under the package. Containers over the hard limit are stopped, and the site falls back to its normal content; they start again when space is freed. Mailboxes have their own quota, enforced by Dovecot. Quota is switched on under System → Disks → Disk quota with a dry run first, or berth quota enable --dry-run and berth quota enable. Berth never remounts a file system itself; when a mount option is needed, it takes effect at the next reboot. See Disks and snapshots. Outbound network fence Two layers control what a subscription can reach on the network. Always on, for every subscription: No subscription can reach the panel's internal services over loopback: the panel API, the rescue service, the admin terminal, or the internal mail signing and spam services. A hacked site cannot talk to the panel from the inside. Ports of apps and containers on loopback answer only their own subscription and nginx. Another subscription is refused, and the attempt is shown to the customer. Outbound SMTP on port 25 from sites is closed by default; mail goes through authenticated submission and the outbound budget. New outbound connections and concurrent connections per subscription are limited, configurable per package. Restricted mode, per package (Restrict outbound traffic): sites, apps, scheduled tasks, SSH sessions and containers can reach only the web, DNS and the server's own services. Exceptions are set per subscription. The customer sees what was blocked under Outbound traffic. A hacked site in restricted mode cannot become a spam relay or join a botnet. berth plan set --name basis --egress-restricted berth egress allow --subscription acme --proto tcp --ports 22 --dest 198.51.100.20 berth egress show --subscription acme Processes are hidden /proc is mounted with hidepid=invisible. A customer sees only their own processes, in ps, top, the terminal and from PHP; command lines, environments and working directories of other subscriptions are invisible. PHP-FPM, apps and the object cache get their own /proc view from systemd as well. Shell, SFTP and the browser terminal SFTP without shell is chrooted into the subscription's home. The shell and the browser terminal run as a transient systemd unit inside the subscription's slice, with its limits, and see only the subscription's own webspaces. SSH keys are managed by the panel and stored outside the webspace, so a PHP script cannot plant a key. Customers use a separate SSH port; administrative SSH on port 22 is reachable only through the VPN. See Files, FTP and SSH. Containers in a user namespace Containers run with rootless Podman, without a Docker daemon. Each subscription has its own user namespace, so root inside a container maps to an unprivileged range on the host that belongs to that subscription alone. Containers run inside the subscription's slice and budget, from root-owned Quadlet units the customer cannot edit. Never privileged; no host network, PID or IPC namespace. no-new-privileges, a seccomp profile, and an optional read-only root file system. Ports are published only on loopback; nginx is the only way in. Volumes and images count toward the subscription's disk quota. See Containers. Databases on a shared server MariaDB and PostgreSQL are shared services, so Berth separates customers inside them: database and user names carry the subscription prefix, a database user can be granted rights only on databases of its own subscription (checked in the panel and again in the agent), connections are limited per user and per subscription, and every database user has a query-time limit so one runaway query cannot hold the server. See Databases. Web-facing helpers run on their own Webmail and Adminer run on their own host names, never on the panel's address, and each as its own system user. The file manager in the panel runs as the subscription's user. A flaw in one of them does not reach the panel session or another customer's files. Where to see it Per subscription: limits, live usage and its own PHP-FPMs on the subscription's usage page, or berth subscription isolation --sysuser <name>. Server-wide: Statistics for CPU, memory and IO per subscription with peaks; see Statistics and metrics. The alerts: System → Problems. For the design of the root agent that enforces all of this, see Architecture and Security model."},{"s":"roles-and-permissions","l":"en","t":"Roles and permissions","d":"Who can do what in Berth: administrators, resellers, customers and auditors, restricted logins with per-area rights, an emergency account, four-eyes approval for sensitive actions and temporary just-in-time elevation.","c":"concepts","g":["roles","permissions","rbac","auditor","reseller","four-eyes","break-glass","least privilege"],"h":[["the-roles","The roles"],["administrators","Administrators"],["auditors","Auditors"],["resellers","Resellers"],["customers-and-their-restricted-logins","Customers and their restricted logins"],["api-tokens","API tokens"],["four-eyes-approval","Four-eyes approval"],["just-in-time-elevation","Just-in-time elevation"],["the-emergency-account","The emergency account"],["narrowing-sign-in-further","Narrowing sign-in further"],["reviewing-access","Reviewing access"]],"x":"Berth has a small number of roles with clear boundaries, plus a few mechanisms that limit what even an administrator can do alone. This article describes each role, the restricted logins customers give to colleagues and web developers, and the controls for sensitive actions: four-eyes approval, just-in-time elevation and the emergency account. Everything a role can do in the panel, it can also do through the REST API; every change lands in the activity log. The berth command line on the server runs as root and is meant for the server's administrators. The roles Role Sees Can Administrator Everything Everything, including server settings. Auditor Everything an administrator sees Change nothing except their own account. Can request temporary administrator rights. Reseller Their own customers Manage their customers, subscriptions, domains and logins, within their own limits. Customer (the owner) Their own subscriptions Manage their domains, mail, databases, files, backups and logins, within their package. Restricted login What the customer assigns Only the chosen areas, optionally for one subscription. Emergency account Everything An administrator for when normal access fails; every sign-in is reported. Each role has its own dashboard. In the panel, administrators and auditors are listed together under Access → Admins and auditors; \"staff\" is a grouping, not a separate role. Administrators Administrators manage the whole server: customers, resellers, packages, system settings, security, backups and migrations. Create one under Access → Admins and auditors, or on the server: printf '%s\\n' \"$PW\" | berth admin create --login jan --email jan@example.nl Without a password, the panel generates one and shows it once. You cannot disable yourself or the last administrator. An administrator can sign in as a customer from the customer page: a bar at the top of every page shows that you are working as that customer. Your administrator session ends when you start; the Back to admin button signs you out, and you sign in again as yourself. This is logged. Auditors An auditor sees everything an administrator sees and changes nothing, for example for an accountant, a security officer or a regulator. Read-only means looking, not taking. An auditor does not download customer content or secrets: no files from a webspace, no backup archives, no database dumps, no migration export files, no customer data exports, no customer mail (list archives, queued messages, the mail catcher) and no .env files. Values of environment variables and secrets in a .env, and addresses that contain a token (status page links, heartbeat URLs, webhooks), are shown as (hidden). What an auditor does see: every list and setting, logs, the activity log, the access review, certificates and incidents (including CSV exports) and the evidence pack. printf '%s\\n' \"$PW\" | berth admin create --login accountant --role auditor Resellers A reseller sells hosting on: they manage their own customers, those customers' subscriptions, domains and logins, can sign in as their customers, suspend them and move subscriptions between them. Limits apply across all their customers together: customers, subscriptions, domains, mailboxes, databases and disk space. Optionally a reseller may oversell disk, create their own packages and use their own brand and panel address. Everything at server level stays with the administrator: system settings, firewall, backup storage, PHP versions, certificate authorities, single sign-on and other resellers. See Resellers and white label. Customers and their restricted logins A customer owns one or more subscriptions and manages everything inside them within the package. A customer should never share their own password: instead they give a web developer, colleague or bookkeeper a restricted login with only the areas they need. The activity log then shows who did what. In the panel: Users → Add login for the customer, or the Logins tab on the customer page for an administrator. Choose the areas: Area Gives access to Websites and settings (domains) Domain settings, redirects, protected folders Files, SFTP and FTP (files) File manager, SFTP, FTP, Git, apps, containers, terminal Databases (databases) Databases Mail (mail) Mailboxes and aliases WordPress (wordpress) WordPress management Backups (backups) Making and restoring backups Statistics and logs (stats) Usage, statistics, logs, uptime Scheduled tasks (cron) Scheduled tasks Security (security) WAF, malware scan, outbound traffic Optionally limit the login to one subscription. A restricted login can never manage logins, add or remove domains, or connect an AI assistant. New parts of the panel are closed to restricted logins until a permission explicitly covers them. berth customer login add --customer acme --login webbouwer --email dev@acme.nl \\ --perms files,databases,wordpress --sysuser acme berth customer login set --customer acme --login webbouwer --disabled API tokens API tokens act with the rights of the login that created them, narrowed by a scope: full, ai:read, ai:write, ai:full, provisioning (for billing systems), metrics, probe and monitor:read. A token can be limited to one subscription, expires (by default after a year) and is stored only as a hash. No token can manage tokens or two-step verification, and sensitive operations need an explicit sensitive scope or a fresh re-authentication. See REST API and AI assistant and MCP. Four-eyes approval With four-eyes switched on, a sensitive action by one administrator becomes a request that a second administrator must approve. Switch it on under Access, card Four-eyes for sensitive actions, or berth approvals four-eyes on. It requires at least two administrators. Covered actions include: deleting a customer, a domain with its files, or a database; restoring a backup over the original (a whole account, parts or files), and deleting a backup; removing an IP address from the server, and changing the firewall; weakening sign-in security, and switching four-eyes off; creating an administrator, or resetting another administrator's password or second factor. When a new administrator is approved, they receive a reset link on their own email address and choose their own password; the requester never sees it. So nobody can create a second administrator to approve their own requests. Another administrator approves under Security → Approvals, or with berth approvals list and berth approvals approve. The action then runs in the name of the requester. A request expires after 24 hours. An administrator's API or AI token that is limited to one subscription also falls under four-eyes. Root on the server and the emergency account are outside four-eyes by design: they are the way back in when the panel's own controls are the problem. Both are logged. Just-in-time elevation Nobody needs permanent administrator rights for occasional work. An auditor requests administrator rights for 1 to 8 hours, with a reason, under Account, card Temporary administrator. Another administrator approves the request under Security → Approvals. The auditor is then an administrator until the time runs out, or until they or an administrator end it: berth admin elevation-end --login accountant The emergency account An emergency account (break-glass) is for when normal access fails, for example when the single sign-on provider is down: berth admin break-glass --login nood The password is long, random and shown once: store it on paper in a safe or a sealed envelope. The emergency account does not need a second factor, so it works even when the second factor is the problem. In return, every sign-in is recorded in the activity log and notified to all administrators, a session lasts at most an hour, and API tokens do not work with it. --off turns it back into a normal administrator. Narrowing sign-in further Allowed addresses per login: under Account, Sign in only from, or berth admin allowed-ips --login <login> --set 203.0.113.0/24. Single sign-on only: logins linked to a provider can be restricted to signing in through it. See Single sign-on. Two-step verification and passkeys are optional and recommended for everyone. See Sign-in security. Reviewing access Access, card All accounts, lists every account with its role, second factor, last sign-in, sessions and API tokens, with a CSV export for periodic access reviews: berth admin access berth admin sessions list --login jan berth admin disable --login jan Disabling a login ends its sessions immediately. The audit watchdog reports unusual events such as privilege changes, impersonation, use of the emergency account and sign-ins from a new country."},{"s":"on-disk-layout","l":"en","t":"On-disk layout","d":"Where Berth keeps websites, logs, mail and configuration: the Plesk-compatible paths under /var/www/vhosts and /var/qmail/mailnames, the users and groups with their uids and gids, the Dovecot folder namespace, and the rendered configuration under /etc/berth.","c":"concepts","g":["file layout","paths","plesk compatible","maildir","uid gid","vhosts","directories"],"h":[["overview","Overview"],["webspaces-under-var-www-vhosts","Webspaces under /var/www/vhosts"],["logs-under-var-www-vhosts-system","Logs under /var/www/vhosts/system"],["users-and-groups","Users and groups"],["keeping-ids-from-a-migration-source","Keeping ids from a migration source"],["mail-under-var-qmail-mailnames","Mail under /var/qmail/mailnames"],["etc-berth","/etc/berth"],["etc-berth-rendered","/etc/berth/rendered"],["etc-berth-local","/etc/berth/local"],["programs","Programs"],["backups-and-other-data","Backups and other data"],["what-berth-does-not-touch","What Berth does not touch"]],"x":"Berth uses the same directory layout as Plesk. That is deliberate: a server migrated from Plesk keeps its data in the place it already had, scripts and backups that know Plesk paths keep working, and administrators who know Plesk find their way at once. This article lists where everything lives and who owns it. Overview Path What /var/www/vhosts/<domain> Webspace of a subscription (home directory of its system user) /var/www/vhosts/<domain>/httpdocs Default document root /var/www/vhosts/system/<domain>/logs Web server and PHP logs per domain /var/qmail/mailnames/<domain>/<mailbox>/Maildir Mail, one Maildir per mailbox /etc/berth Panel settings, certificates, DKIM keys, licence, installation choices /etc/berth/rendered Configuration rendered by Berth, one directory per service /etc/berth/local Your own additions to service configuration /var/lib/berth/backups Local backup archives per subscription MariaDB schema berth The panel database Webspaces under /var/www/vhosts Each subscription has a system user whose home is its webspace, /var/www/vhosts/<domain>, named after the subscription's first domain. Inside: Path Owner Mode Purpose /var/www/vhosts/<domain> root:psaserv 0750 The webspace itself. Owned by root because SFTP chroots into it; the web server reaches it through the psaserv group. httpdocs/ <sysuser>:psacln 0750 Document root of the site. httpdocs/error_docs/ the subscription Custom error pages (403, 404, 500, 50x), used when enabled for the domain. tmp/ <sysuser>:psacln 0750 PHP upload directory and session storage, and /tmp and /var/tmp of the subscription's PHP-FPM, apps and shell (counts towards the disk quota). Details worth knowing: Custom document roots are supported, for example httpdocs/public for Laravel. Root creates only the first directory under the webspace; deeper directories are created as the subscription user, so a symbolic link placed by a customer can never redirect a root operation. Several domains in one webspace: a domain can have its own webspace, or share the webspace of another domain in the same subscription with its own document root. Migrated accounts keep their source layout, for example domains/<domain>/public_html from DirectAdmin. Other subscriptions cannot read a webspace: they are in the psacln group, which has no access to the webspace root. Logs under /var/www/vhosts/system Per domain, logs are in /var/www/vhosts/system/<domain>/logs, as in Plesk: File Content proxyaccesslog, proxyaccessssl_log nginx access logs (http and https) proxyerrorlog nginx errors accesslog, errorlog Apache phperrorlog, phpslowlog PHP errors and slow requests modsec_audit.log WAF events for the domain The log directory belongs to root and is readable by the web server and, through an ACL, by the subscription's own user, not by other subscriptions: logs contain visitor addresses and sometimes URLs with tokens. Root ownership also stops a customer process from planting a symbolic link that the web server would follow as root. Customers search their own logs under Statistics → Logs. See Logs and log drains. Users and groups Account Default id Purpose group psacln gid 1001 All subscription users (the customers' group) group psaserv gid 1002 The web servers (nginx, Apache), which need to enter webspaces user and group popuser uid 30, gid 31 Owner of all Maildirs; Dovecot and delivery run mail as this user user berth system account The unprivileged panel daemon berthd one user per subscription assigned at creation, never reused Runs everything of that subscription: PHP, apps, cron, SFTP, shell, containers If gid 1001 or 1002 is already taken (a cloud image often has a group ubuntu on 1001), the installer picks the first free id above it. Keeping ids from a migration source When you migrate a server, the new server should use the same uids and gids as the old one, so file ownership in copied data, archives and NFS mounts stays correct. Set them at installation, with the numbers from the source server: berth install --psacln-gid <gid> --psaserv-gid <gid> --popuser-uid <uid> --popuser-gid <gid> Subscription users are created with the same name and uid as on the source. An id that is already in use on the new server gives a clear error instead of a silent mismatch. See Migrating a server. Mail under /var/qmail/mailnames Each mailbox is a Maildir at /var/qmail/mailnames/<domain>/<mailbox>/Maildir, owned by popuser, exactly as on Plesk. Dovecot is configured to match: Namespace INBOX. with separator ., so a folder is INBOX.Archive and a subfolder INBOX.Archive.2026. Mail clients that were set up against Plesk see the same folder names. Folder names in UTF-8 on disk, as Plesk writes them, so folders with accents or an ampersand migrated from Plesk open normally. Special folders Drafts, Sent, Trash and Junk are created and subscribed automatically, with their IMAP special-use flags. UIDs are preserved on migration: the dovecot-uidlist with its UIDVALIDITY is copied along, so mail clients do not download every message again after the move. Mailbox passwords are stored as SHA512-CRYPT; hashes migrated from the source keep working. Autoresponder, forwarding and spam filter rules are Sieve scripts kept next to the Maildir and rendered from the panel database. See Mailboxes. /etc/berth /etc/berth holds everything that makes the server this server: settings, certificates, DKIM keys, the licence, the choices of the installation (used by berth install --reconfigure and package upgrades) and the server policy in beleid.d. It is part of every server-settings backup and of disaster recovery. /etc/berth/rendered Berth renders the configuration of each service into its own directory here: /etc/berth/rendered/ nginx/vhosts/<domain>.conf apache/vhosts/<domain>.conf php-fpm-8.3/pools/... one directory per PHP version postfix/ maps for domains, mailboxes, aliases, limits dovecot/ opendkim/ proftpd/ berth-waf/ webmail/ ... Each service's own configuration contains only a small include file that points into this tree, so the configuration shipped by the distribution stays in place. Files are always rendered whole from the panel database, tested and swapped in atomically; see How changes go live. Do not edit files here by hand: the next apply or berth repair --areas config writes them again from the database. A file that the configuration test singled out as broken gets a .berth-quarantine suffix, which the includes do not read; its content stays for inspection. /etc/berth/local Your own additions for nginx, Apache, Postfix and Dovecot go in /etc/berth/local/, which the services include but Berth never overwrites. Template fragments for the hoster live in /etc/berth/local/sjablonen/; see How changes go live and template fragments. Both are kept in server-settings backups. You can also edit these additions in the panel, under System → Configuration (berth system local-config). There is one managed addition per service: nginx, Apache, PHP-FPM per version, Postfix, Dovecot, MariaDB, sysctl, journald and logrotate. Directives that would run code as root or touch files that do not belong to the service are refused. Each change runs through the service's own configuration test, and after a minute Berth checks that the service still runs and answers; unless you confirm the change within a few minutes, the previous content goes back automatically. Every version is kept and can be applied again, and an edit made by hand on disk can be adopted as the managed addition. berth system local-config list berth system local-config check nginx --file extra.conf # forbidden directives and the diff, nothing written berth system local-config apply nginx --file extra.conf --note \"longer timeout\" berth system local-config confirm nginx berth system local-config adopt postfix # take over a hand edit berth system local-config apply-version nginx 3 Programs Installed with Programs The one-line command or a release directory /usr/local/sbin/berth, berthd, berth-agent, berth-probe deb or rpm package /usr/lib/berth/, with berth in /usr/sbin The systemd units berth-agent.service and berthd.service start them. Backups and other data Local archives per subscription: /var/lib/berth/backups. By default the last 7 nightly archives stay on the server. The hourly history is a deduplicated restic repository per subscription on the same server. Container storage (images, layers, volumes) is kept per subscription, outside the webspace, and counts toward the subscription's disk quota. See Backups overview. What Berth does not touch berth uninstall removes the panel's programs, units, includes and rendered configuration, and puts back the original configuration of each service. It never removes customer data: /var/www/vhosts, the Maildirs, customer databases and backups stay. Only --purge also removes the panel database and /etc/berth."},{"s":"domains-and-subscriptions","l":"en","t":"Domains and subscriptions","d":"Add a website, choose its own or a shared webspace and document root, set aliases and a preview address, switch a site off, and change many domains at once.","c":"sites","g":["domain","subscription","webspace","docroot","subdomain","alias","vhost"],"h":[["customers-subscriptions-and-domains","Customers, subscriptions and domains"],["add-a-domain","Add a domain"],["subdomains","Subdomains"],["domain-claim-protection","Domain-claim protection"],["the-domain-page","The domain page"],["change-the-document-root","Change the document root"],["aliases-and-the-preferred-name","Aliases and the preferred name"],["preview-address","Preview address"],["give-a-domain-its-own-ip-address","Give a domain its own IP address"],["switch-one-website-off","Switch one website off"],["move-a-domain-to-another-subscription","Move a domain to another subscription"],["delete-a-domain","Delete a domain"],["reserved-for-30-days","Reserved for 30 days"],["change-many-domains-at-once","Change many domains at once"],["when-a-domain-is-half-created","When a domain is half created"]],"x":"Every website in Berth is a domain that belongs to a subscription. This article explains how the two relate, how to add a domain from the panel or the CLI, and what you can change afterwards: document root, aliases, preview address, switching a site off and bulk changes across many domains. Customers, subscriptions and domains Berth uses three levels, the same way Plesk does: A customer is a person or organisation with one or more panel logins. A subscription is a hosting account on a package. It has its own Linux system user, its own PHP-FPM, its own resource slice and quota, and the limits of its package (domains, mailboxes, databases, disk space). See Customers and packages and Isolation. A domain is a website (and usually a mail domain) inside a subscription. A subscription can hold several domains; each one counts towards the package's domain limit. On disk, a domain's files live under /var/www/vhosts/<domain>/, with the website in httpdocs/ by default. The layout matches Plesk, so files, scripts and tools that expect that structure keep working. On-disk layout has the full picture. Add a domain The domain must point at the server in DNS before you can request a certificate for it. Everything else works before that, and a preview address (below) lets you look at the site first. Go to Domains → Add. The page is called \"Add domain\". Enter the domain name without www, for example example.com. Choose the customer and the package. Leaving the customer empty creates a new customer named after the domain. Choose whether the domain gets its own subscription or joins an existing subscription of the same customer (an extra domain under the same system user). Optionally choose where the website's files live: its own webspace (the default), or the webspace of another domain in the same subscription, like an additional domain in Plesk. Optionally change the document root. The default is httpdocs; frameworks such as Laravel and Symfony want httpdocs/public. Tick Request a certificate now for HTTPS with Let's Encrypt, and HSTS if the site is ready for it. Click Add. On the command line, customer, subscription and first domain are one step. Running it again is safe: berth customer create --domain example.com --plan basis --customer acme \\ --docroot httpdocs/public --tls --email admin@example.com To add a domain to an existing subscription, name its system user with --sysuser. To put the files in another domain's webspace, add --webspace: berth customer create --domain example.nl --sysuser acme --webspace example.com --tls --email admin@example.com Other useful flags are --hsts, --no-redirect (keep plain HTTP working on port 80) and --ip / --ipv6 for a site that needs its own address. Customers and resellers can add domains themselves while their package has room. They see the same form, limited to their own subscriptions. Subdomains A subdomain such as shop.example.com is an ordinary domain in Berth. Add it like any other domain, in the same subscription, and choose either its own webspace or a folder inside the parent's webspace. There is no separate \"subdomain\" object, so everything in this library about domains applies to subdomains too. Domain-claim protection On a shared server, the domain you add decides who receives its mail and who can request its certificates. Berth therefore refuses some names when a customer or reseller adds them (an administrator can still add them): a public suffix such as co.uk, the domain of a large mail provider, a name of the server itself: its host name, the mail and webmail names, the Adminer address, the panel address, the base of preview addresses, or their parent domain, a parent domain or subdomain of a domain that belongs to another customer, the mail domain of a login, customer or reseller that is not theirs, a domain that was deleted less than 30 days ago and is still reserved for another customer (see Reserved for 30 days). This stops one customer from catching another customer's password-reset mail or certificates. In addition, the root agent keeps its own register of which subscription serves which domain, so a configuration for a domain can only be written for the subscription that owns it. The domain page Domains → example.com is the home of one website. It has tabs for Overview, Mail, Files, Backups, Statistics and groups the settings on the overview in sections: Section What you find there Website Document root, IP address, preview address Certificate and HTTPS Request, renew or upload a certificate; see Certificates Settings Names and aliases, PHP, HTTPS redirect and HSTS, security headers Speed PHP processes, page cache, object cache, static files, CDN; see Caching and CDN Security WAF, write lock, per-visitor limits, geoblocking, hotlink protection; see Web server settings Developers Environment variables and secrets, custom web server rules Danger zone Move, switch off, delete Buttons at the top lead to logs, scheduled tasks, Git, apps, containers, WordPress and the other tools of the domain. Test connection, also at the top, checks from the server what a visitor runs into: whether the name resolves, whether the port answers, whether the certificate is right and whether the mail server introduces itself properly. Customers can use it too, so they can rule out the server before they call you. Change the document root Under Website → Document root, pick another folder inside the webspace, for example httpdocs/public. The files stay where they are; only the web server configuration changes. berth domain docroot example.com httpdocs/public Aliases and the preferred name Under Settings → Names you add extra names for the same website, such as www.example.com or an old brand domain, and choose the preferred name: with or without www. The other name redirects to it, so search engines see one address. Each alias must point at the server in DNS. berth domain alias --domain example.com --add www.example.com --add example.nl berth domain alias --domain example.com --remove example.nl Preview address A preview address lets you (or your customer) look at a site before DNS is switched, which is handy during a migration. Turn it on under Website → Preview address. The site gets an extra address that already points at the server; search engines ignore it. berth domain preview --domain example.com --on By default the address is under sslip.io, a public service that resolves a name containing an IP address to that IP. An administrator can set an own base under Settings → Panel → Preview addresses, for example preview.example.nl, after creating a wildcard record *.preview.example.nl that points at the server. Give a domain its own IP address By default a domain uses the subscription's address, which is usually the server's main address. An administrator can give one domain its own IPv4 (and optionally IPv6) address of the server: berth domain ip --domain example.com --ipv4 203.0.113.25 --ipv6 2001:db8::25 berth domain ip --domain example.com # back to the subscription's address For a whole subscription, use berth subscription ip. Switch one website off Sometimes a single site has to go offline, for example after a compromise or an unpaid invoice, without suspending the whole subscription. Under Danger zone → Switch website off: visitors see a suspension page, the domain's apps are stopped, optionally its mailboxes are closed as well, files, databases, FTP and SSH stay as they are, so the site can be cleaned up or exported. berth domain disable --domain example.com --reason \"Being cleaned after a malware find\" berth domain disable --domain example.com --mail # also close the mailboxes berth domain enable --domain example.com The reason is visible to both the administrator and the customer. To suspend everything of a subscription (websites, SSH/SFTP, cron, FTP and mail), use berth subscription suspend instead. Move a domain to another subscription Danger zone → Move to another subscription moves a domain with its files, PHP pool and access. Because a move hands one customer's files to another subscription, the button in the panel only creates a request. Root approves or rejects it on the server, or through rescue mode: berth domain move-requests berth domain move-approve <id> After approval the panel carries out the move. A compromised panel process therefore cannot pull a customer's files into a subscription of its own. Delete a domain Danger zone → Delete domain removes the configuration. Administrators and resellers can tick Also delete files, logs and certificate; on the command line that is --purge. A customer who deletes a domain keeps the files; the hosting company removes them. berth domain remove --domain example.com berth domain remove --domain example.com --purge Make sure a recent backup exists first; see Backups overview. Reserved for 30 days After deletion the name and its aliases stay reserved for the same customer for 30 days, because DNS often still points here. During that time no other customer can add the name, so nobody can catch the previous owner's mail or request a certificate for it; that customer (or their reseller) and an administrator can add it again. Reservations are listed and released on the command line: berth domain reservations # names that are still reserved berth domain release --domain example.com # free one early for someone else Change many domains at once Domains → Several at once applies one action to a selection of domains, with the outcome per domain: set the PHP version, request certificates (in batches), switch the HTTP-to-HTTPS redirect or HSTS on or off, switch the page cache on or off, apply the recommended static-file cache times, or go back to the defaults, switch the WAF on, or to detection only. berth domain bulk --action php --value 8.4 --domains example.com,example.nl berth domain bulk --action hsts_on --all When a domain is half created Creating a domain touches several services. If one step fails (a DNS check, a certificate, a service reload), the domain is marked as unfinished instead of being left half-configured. The panel retries unfinished domains in the background; you can also do it yourself: berth domain retry --domain example.com # create it again from the stored settings berth domain reprovision --domain example.com # re-render its configuration Each change goes through the same render, validate and swap pipeline as everything else; see How changes go live."},{"s":"php","l":"en","t":"PHP versions, settings and PHP-FPM","d":"Run PHP 5.6 to 8.5 side by side, choose a version and php.ini values per domain, tune PHP-FPM per subscription, watch OPcache, add extensions or ionCube, and update a PHP version as one unit.","c":"sites","g":["php","php-fpm","php.ini","opcache","ioncube","extensions","version"],"h":[["supported-versions","Supported versions"],["add-or-remove-a-version","Add or remove a version"],["choose-the-php-version-of-a-domain","Choose the PHP version of a domain"],["php-ini-per-domain","php.ini per domain"],["defaults-and-locking-in-the-package","Defaults and locking in the package"],["hard-limits-from-the-server-policy","Hard limits from the server policy"],["php-fpm-per-subscription","PHP-FPM per subscription"],["process-model","Process model"],["opcache-dashboard","OPcache dashboard"],["extensions-and-ioncube","Extensions and ionCube"],["hardening-defaults","Hardening defaults"],["updating-php-as-one-unit","Updating PHP as one unit"],["related","Related"]],"x":"Berth runs several PHP versions next to each other and lets every domain pick its own. Each subscription gets its own PHP-FPM, so one busy or broken site cannot starve the others. This article covers versions, per-domain settings, the FPM process model, OPcache, extensions and how PHP is kept up to date. Supported versions PHP 5.6 up to 8.5 can be installed. Packages come from the established third-party repositories: Sury on Debian and Ubuntu, Remi on AlmaLinux and Rocky Linux. Versions that no longer receive security fixes (such as 7.4, 8.0 and 8.1) stay available, so an old site can move to Berth first and be upgraded afterwards. The panel marks them as outdated, shows the date of the last security fix, and warns on the domain page and in the site quality score. Add or remove a version An administrator manages versions under System → Software, or on the command line: berth php version list # installed and available versions, end of support, who uses them berth php version add 8.4 berth php version remove 7.4 # refused while a domain, package, webmail or Adminer still uses it Adding a version runs as a system job with its own live log. If someone installs a PHP version by hand outside the panel (for example apt install php8.4-fpm), Berth detects it and offers Adopt PHP 8.4. It never assigns such a version to a domain by itself. Choose the PHP version of a domain On the domain page, open Settings → PHP, pick the version and save. An empty choice follows the package default. berth domain php --domain example.com --version 8.3 berth domain php --domain example.com --version \"\" # back to the package default To move many domains at once, use Domains → Several at once or berth domain bulk --action php --value 8.4 --domains …. php.ini per domain Under the same PHP section you set php.ini values for one website. An empty field follows the package. Typical keys: Setting Example memory_limit 256M uploadmaxfilesize, postmaxsize 64M maxexecutiontime, maxinputtime 60 maxinputvars 3000 date.timezone Europe/Amsterdam session.gc_maxlifetime 1440 error_reporting EALL & ~EDEPRECATED displayerrors, logerrors, shortopentag, OPcache, allowurlfopen on or off A .user.ini in the website is honoured as well. Defaults and locking in the package The package sets the defaults for every domain on it: berth plan set --name basis --php 8.3 \\ --php-setting memory_limit=256M --php-setting upload_max_filesize=64M berth plan set --name managed --php 8.3 --php-locked With PHP settings locked (--php-locked) customers can no longer change the PHP version or php.ini of their domains; the administrator still can. For a single subscription, deviate from the package with an override: berth subscription override --sysuser acme --php memory_limit=512M berth subscription override --sysuser acme --set php_version=8.4 Hard limits from the server policy A hosting company may want limits that no package, override or panel action can loosen, for example a maximum memory_limit or an allow-list of PHP versions. Those live in the root-only server policy (berth beleid), described in Web server settings. PHP-FPM per subscription Every subscription runs its own PHP-FPM master per PHP version, inside the subscription's systemd slice. Its processes run as the subscription's system user and count towards its CPU, memory and task limits. An idle pool costs very little memory. On servers with many small sites, the option Only packages with limits keeps the own FPM for packages that have resource limits and lets the rest share an FPM per version. The pools are rendered and tested by the root agent itself from a typed specification, and a reload never cuts off running requests: requests in flight may finish, new ones wait briefly in the queue. See How changes go live. Process model Model When to use it ondemand (default) Most sites. Processes start when requests arrive and stop when idle. dynamic Busy sites that benefit from a few processes kept warm. static A fixed number of processes; for predictable, heavy load. The package sets the model and the maximum number of PHP processes per domain. An administrator can deviate per domain under Speed → PHP processes: berth plan set --name basis --fpm-pm ondemand --fpm-max-children 5 berth domain fpm --domain example.com --pm dynamic --max-children 12 berth domain fpm --domain example.com --reset The same section shows how many processes are busy, the peak since the last start, memory use and slow requests, with advice when the pool was full. A slow request log is kept per domain; open it from the section or with berth domain logs --domain example.com --kind php_slow. OPcache dashboard Admin → PHP shows, per PHP version, the occupancy of every pool (full pools, slow requests) and the OPcache state: memory used, cached files, interned strings, hit rate, with advice when the cache is too small. OPcache memory, the number of files, interned strings and JIT are configurable per version: berth php status berth php opcache --version 8.3 --memory 256 --files 20000 --jit --jit-buffer 64 Because OPcache is shared by the sites on one PHP version, functions such as opcachereset() and opcacheget_status() are not available to websites. PHP picks up new code by itself after an upload. Extensions and ionCube Extra PHP extensions, such as apcu, are added per version under System → Software → PHP 8.3. Only extensions from Berth's built-in list for the operating system are offered. berth php ext add 8.3 apcu berth php ext remove 8.3 apcu Sites encrypted with ionCube need the ionCube Loader. Berth downloads it only from ionCube over HTTPS, checks it against a SHA-256 you supply (or pins the hash of what ionCube delivers now), test-loads it, and enables it as the first Zend extension, followed by a config test and a PHP-FPM reload: berth php ioncube install 8.3 --accept-license --sha256 <hash> berth php ioncube status 8.3 The loader is covered by ionCube's own licence; --accept-license confirms you have read it. Extension and ionCube changes reload PHP-FPM, including the own FPMs of every subscription on that version. Hardening defaults Every pool starts hardened. The defaults are: open_basedir limited to the subscription's home, security.limit_extensions set to .php, process functions (exec, system, proc_open and similar) and the OPcache control functions disabled, mail() off in new packages: a hacked site cannot send spam through it, and mail() returns false. Sites send mail over SMTP with a mailbox instead (WP Mail SMTP, PHPMailer), expose_php off, hardened session cookies, each subscription's FPM with its own /tmp: the webspace's tmp/ folder, which counts towards the subscription's disk space; other processes on the server are hidden. Two package switches relax this when a site really needs it: Package option Effect Allow PHP mail() (--php-mail) PHP may send with mail(), within an hourly recipient budget per subscription PHP may start processes (--php-shell) Process functions are allowed Hidden files such as .env, .git and .htaccess, and the private folders of web shops, are never served to visitors; .well-known is. Updating PHP as one unit The automatic security updates include PHP from Sury or Remi, within a version only patch releases. All packages of one PHP version (fpm, cli, common and the extensions) always move together: System → Updates shows one line per version, for example \"PHP 8.3: 8.3.26 → 8.3.27, 15 packages\", with Update PHP 8.3. The update runs with a check before and after; if the check fails, all packages go back together. The check afterwards requests every site on the updated version again: a site that worked before the update and now returns a server error makes the update count as failed. See OS updates and maintenance and every site is watched for server errors. Related Domains and subscriptions Isolation for slices, quotas and outbound traffic Software installer for WordPress and other PHP applications Customers and packages"},{"s":"certificates","l":"en","t":"Certificates and HTTPS","d":"Get free certificates from Let's Encrypt automatically, use wildcards via DNS-01, switch to another ACME CA or upload your own certificate, and keep an inventory of everything that expires.","c":"sites","g":["tls","ssl","https","certificate","lets-encrypt","acme","wildcard"],"h":[["automatic-certificates","Automatic certificates"],["request-a-certificate-for-a-domain","Request a certificate for a domain"],["renewal","Renewal"],["validation-methods-and-wildcards","Validation methods and wildcards"],["other-certificate-authorities","Other certificate authorities"],["your-own-certificate","Your own certificate"],["create-the-key-and-csr-in-the-panel","Create the key and CSR in the panel"],["go-back-to-the-previous-certificate","Go back to the previous certificate"],["tls-profile","TLS profile"],["certificates-for-mail-and-webmail","Certificates for mail and webmail"],["certificate-inventory","Certificate inventory"],["when-a-certificate-does-not-work","When a certificate does not work"]],"x":"Every website on Berth can have HTTPS without manual work. Certificates come from Let's Encrypt by default, renew themselves, and are used for the website as well as for the domain's mail and webmail names. This article covers requesting and renewing certificates, wildcards, other certificate authorities, your own certificates, the TLS profile and troubleshooting. Automatic certificates With automatic certificates on (the default), a daily round requests a certificate for every domain whose DNS points at the server and does not have one yet. A customer who adds a domain and points it at the server gets HTTPS within a day without doing anything. HTTPS then works, but plain HTTP is not redirected until the site owner chooses Redirect HTTP to HTTPS, so a site that is not ready for HTTPS does not break. berth tls auto # show the setting berth tls auto --on=false # turn automatic certificates off Request a certificate for a domain On the domain page, open Certificate and HTTPS: Under Names on the certificate tick Also www. and, if the domain allows DNS-01, Wildcard \\.*. Optionally tick Enable HSTS. Browsers then use only HTTPS for the domain; enable it once everything works over HTTPS. Click Request certificate. It takes a few seconds. By default port 80 then redirects to HTTPS. Tick Do not redirect HTTP to HTTPS if you need plain HTTP to keep working. On the command line, a certificate is requested over HTTP-01 for an existing domain: berth tls issue --domain example.com --san www.example.com --email admin@example.com berth tls issue --domain example.com --san www.example.com --hsts berth tls status --domain example.com When you add a domain with berth customer create … --tls, the certificate is requested in the same step. All certificates of the server come from one shared account at the certificate authority, which limits how many new certificates that account may order. To keep one customer from using up that allowance for everyone, requests by customers and resellers are paced: one request at a time per domain, and a limited number of new certificates per customer and per reseller per hour. Renewals, automatic certificates and requests by an administrator do not count. Renewal Certificates renew automatically every day once they are within 30 days of expiry, reusing the names of the current certificate. If a renewal fails, you get an alert so it does not expire unnoticed. Manual renewal: berth tls renew --domain example.com berth tls renew --all --days 30 Validation methods and wildcards Method How it works When to use it HTTP-01 Let's Encrypt fetches a token from http://<domain>/.well-known/acme-challenge/ The default; port 80 of the domain must reach this server DNS-01 via a DNS provider The panel sets a TXT record at the linked provider Wildcards, or sites behind a proxy DNS-01 on the panel's own DNS The record is set in the zone the server hosts Wildcards when Berth runs your DNS DNS-01 via delegation One NS record delegates _acme-challenge.<domain> to the server's own responder Wildcards while the zone stays at a provider Berth cannot reach Wildcard certificates (*.example.com) always need DNS-01. Linking a DNS provider or running your own zone is described in DNS. Delegation is useful when the DNS of a domain is somewhere else and you cannot or do not want to give the panel API access. You add one record once at the provider, and the server answers the challenge itself: berth tls delegation --domain example.com --on berth tls delegation --domain example.com --check # checks publicly that the NS record is in place Port 53 (UDP and TCP) of the server must be reachable from outside for delegation. New Let's Encrypt keys are ECDSA P-256 by default. Other certificate authorities Besides Let's Encrypt, Berth can request certificates over ACME from: ZeroSSL (DV), Sectigo DV, OV and EV, DigiCert, Google Trust Services, Buypass Go SSL, an internal ACME CA with your own root certificate. Paid CAs use External Account Binding (EAB): you get a key ID and an HMAC key from the CA. Set them up under Security → Certificates → Certificate authorities: berth tls ca list berth tls ca set --preset sectigo-ov --eab-kid <kid> --eab-hmac-file - --email admin@example.com berth tls ca domain --domain example.com --ca sectigo-ov With --customers, customers may choose that CA for their own domains. A domain switches to the chosen CA from its next request or renewal. For an internal CA, pass its root certificate with --ca-cert; browsers outside your organisation will then show a warning. Your own certificate For a certificate bought elsewhere, open Certificate and HTTPS → Certificate from the supplier and either paste certificate, intermediate certificates and key as PEM, or choose a PKCS#12 file (for example an export from Windows) with its password. The panel checks that the key matches, that the names fit the domain, that it is valid, and that the chain ends at a trusted root. It puts the chain in the right order and uses the certificate for the website and the domain's mail names. berth tls upload --domain example.com --cert cert.pem --chain bundle.pem --key key.pem berth tls upload --domain example.com --pfx example.p12 --password-file - An uploaded certificate is not renewed automatically. The certificate inventory shows when it expires, and the panel warns in time. Create the key and CSR in the panel If the CA needs a certificate signing request, let the panel make it: Create request. The private key is generated on the server and never leaves it; you send only the CSR to the supplier. Fill in organisation, unit, city, province and country for OV or EV; leave them empty for domain validation only. berth tls csr --domain example.com --name www.example.com --key-type ecdsa-p256 --org \"Acme B.V.\" --country NL --out example.csr berth tls upload --domain example.com --cert cert.pem --chain bundle.pem # no --key: uses the pending request Go back to the previous certificate Uploading or replacing a certificate keeps the old one as the previous version. If the new one turns out wrong, Restore previous version puts it back after the same checks; running it again swaps them back. berth tls restore-previous --domain example.com To move from a bought certificate to a free one, use Switch to Let's Encrypt. TLS profile The TLS settings of all websites follow the guidelines of the Dutch NCSC for TLS. The profile Good allows TLS 1.2 and 1.3 with modern ciphers, which is what internet.nl expects. Sufficient adds older ciphers for old clients. berth tls profile berth tls profile --set goed The profile applies to the websites. Postfix and Dovecot accept only TLS 1.2 and 1.3, whichever profile is chosen. Certificates for mail and webmail Each domain can have its own mail.<domain> and webmail.<domain> names, so mail clients see the customer's own name instead of the server's. Postfix and Dovecot pick the right certificate per name (SNI); a wildcard certificate on the domain covers them as well. See Webmail and mail clients. Certificate inventory Security → Certificates lists every certificate on the server, websites, panel and mail, with the one that expires first at the top. CSV for audits exports the list. berth tls inventory When a certificate does not work Per domain, Certificate: diagnosis compares the certificate the server actually serves with the file on disk, and explains why a request failed: DNS that points elsewhere, port 80 that does not reach the server, a CAA record that forbids the CA, a rate limit at the CA. berth tls diagnose --fix # reload what differs and check again berth tls diagnose example.com --acme # why a request for this domain failed The domain's quality score also flags a missing or expiring certificate, a missing redirect and missing HSTS. For HSTS duration and the other security headers, see Web server settings."},{"s":"caching-and-cdn","l":"en","t":"Caching, compression and CDN","d":"Make sites fast with the nginx page cache or microcaching, a private Valkey object cache per subscription, long browser cache times with WebP and AVIF, a Cloudflare or Bunny CDN, HTTP/2, HTTP/3 and Brotli.","c":"sites","g":["cache","page cache","valkey","redis","cdn","webp","http3"],"h":[["how-a-request-travels","How a request travels"],["page-cache","Page cache"],["choose-a-cache-time","Choose a cache time"],["stale-content-and-stampedes","Stale content and stampedes"],["purge","Purge"],["object-cache-valkey","Object cache (Valkey)"],["static-files-and-browser-cache-times","Static files and browser cache times"],["webp-and-avif","WebP and AVIF"],["when-htaccess-must-apply-to-static-files","When .htaccess must apply to static files"],["cdn-cloudflare-or-bunny","CDN: Cloudflare or Bunny"],["protocols-and-compression","Protocols and compression"],["check-the-effect","Check the effect"]],"x":"A Berth website has several speed layers that you switch on per domain: a page cache in nginx, an object cache for the application, browser cache times for static files with modern image formats, and an optional CDN in front. This article explains what each layer does, when to use it, and how it stays correct when content changes. All of these settings live on the domain page under Speed. Customers can manage them for their own domains. How a request travels nginx accepts every request. It serves static files (images, CSS, JavaScript, fonts, downloads) itself and passes the rest to Apache, which runs PHP through the subscription's own PHP-FPM. The page cache sits in nginx, in front of Apache and PHP; the object cache sits behind PHP, in front of the database. visitor ─► CDN (optional) ─► nginx ─┬─► static file from disk (browser cache times, WebP/AVIF) ├─► page cache HIT └─► Apache ─► PHP-FPM ─┬─► object cache (Valkey) └─► MariaDB / PostgreSQL Page cache With the page cache on, nginx stores the pages your site produces and serves them itself for the chosen time, without PHP or the database. That makes pages much faster and keeps a site standing during a traffic peak. What is never cached: visitors who are logged in, form submissions and other non-GET requests, URLs with a query string (searches, filters); with microcaching these are cached too, for the few seconds you chose, shopping carts and checkout, admin pages such as /wp-admin, responses that set a cookie or ask for no-store themselves. WordPress and WooCommerce are recognised automatically. The response header X-Cache shows whether a page came from the cache (HIT). Choose a cache time Open Speed → Page cache, switch it on and choose a Cache time: Option Times Good for Microcaching 1, 5 or 10 seconds Dynamic sites: content stays practically live, while a burst of identical requests is answered from one PHP run Page cache 5, 10 or 30 minutes, 1 or 4 hours, 1 day Sites whose pages change a few times a day or less berth domain cache --domain example.com --on --ttl 30 # 30 minutes berth domain cache --domain example.com --on --seconds 5 # microcaching berth domain cache --domain example.com --off Stale content and stampedes The cache is configured so that a site stays up when the application has trouble. When a cached page expires, the first visitor triggers a refresh in the background while others still get the previous version; only one request at a time fills an entry. If PHP answers with an error or times out, nginx keeps serving the last good version. Purge After a change, visitors see the new version after the cache time at the latest, or immediately after Clear cache. berth domain cache --domain example.com --purge For WordPress, a small plugin clears the affected pages as soon as you publish or change something, so you rarely need the button. If a CDN is linked, clearing the page cache clears the CDN too. Object cache (Valkey) Applications such as WordPress, WooCommerce and Laravel can keep the results of expensive database queries in an object cache. Berth gives every subscription its own Valkey (the open-source continuation of Redis): reachable only by the subscription's own websites, over a unix socket, no password needed, and each website gets its own key prefix, memory only: nothing is written to disk, it runs inside the subscription's resource slice, so it counts towards its memory limit. Switch it on under Speed → Object cache and pick a size (from 32 MB up). The section shows memory use, number of keys and the hit rate. Clear object cache flushes it. berth subscription objectcache --sysuser acme --on --size 128 berth subscription objectcache --sysuser acme --flush WordPress is linked with one button on the WordPress page (Object cache → Link WordPress). That installs the Redis Object Cache plugin and writes the connection into wp-config.php. berth wp objectcache --domain example.com --link Other applications connect with any Redis client to the socket path shown in the section. The package option Object cache (own Valkey per subscription) decides whether a subscription may have one; it is on by default. Static files and browser cache times Under Speed → Static files you choose how long browsers may keep files, per type: images, CSS and JavaScript, fonts, video and audio, documents and downloads. Options run from off and no-cache through 1 hour, 1 day, 7 days and 30 days to 1 year. The default is 7 days for everything. Long times (30 days, 1 year) are faster, but a changed file with the same name reaches visitors later. WordPress and most frameworks put a version number in the URLs of CSS and JavaScript, which makes 1 year safe for those. berth domain static --domain example.com --images 30d --css-js 1y --fonts 1y berth domain static --domain example.com --reset WebP and AVIF With Offer WebP and AVIF on, the panel creates a smaller WebP and AVIF version of every JPEG and PNG (photo.jpg.webp, photo.jpg.avif), but only when it is actually smaller. nginx serves it to browsers that ask for it; others get the original, which always stays in place. New images are converted every night, or immediately with Convert now. berth domain static --domain example.com --modern-images on berth domain images convert --domain example.com berth domain images status --domain example.com When .htaccess must apply to static files Because nginx serves static files itself, rules in .htaccess (a password on a download folder, Deny from all, a hotlink rule) do not apply to them. Plesk behaves the same way. If you rely on such rules, switch on Everything via Apache. All files then go through Apache. It is a little slower, and it cannot be combined with WebP/AVIF. berth domain static --domain example.com --via-apache on CDN: Cloudflare or Bunny If a site sits behind Cloudflare or Bunny, link it under Speed → CDN. Choose the provider, enter the zone ID (Cloudflare) or pull zone ID (Bunny) and an API key. Two things change: Real visitor addresses. nginx takes the visitor's address from the CDN's header, but only from the provider's published address ranges, which the panel refreshes daily. Logs, statistics, PHP, the WAF and bans all see the real visitor instead of the CDN. Purging. Clearing the page cache, or publishing in WordPress, also clears the cache at the CDN. Clear CDN does it by hand. The API key only needs the right to purge the cache. For Cloudflare that is Zone · Cache Purge and Zone · Read. berth domain cdn --domain example.com --provider cloudflare --zone <zone-id> --token-file - berth domain cdn --domain example.com --purge berth domain cdn --domain example.com --provider off berth cdn refresh # refresh the providers' address lists now Protocols and compression HTTP/2 is always on for HTTPS sites. HTTP/3 (QUIC over UDP port 443) is a server-wide switch, off by default. An administrator turns it on under Settings → Panel → HTTP/3. It applies to every site with a certificate and to the panel; browsers that cannot use it fall back to HTTP/2. The panel's own firewall opens UDP 443 by itself, but a firewall in front of the server must allow it as well. Compression: nginx compresses text responses, including PHP output from Apache, with Brotli for browsers that support it and gzip for the rest, and serves pre-compressed .br files when they exist. TCP tuning: the server uses BBR congestion control with fair queueing, and does not fall back to a slow start on an idle keep-alive connection. That helps visitors on mobile and long-distance connections. Where the kernel does not support it, the setting is left out. Check the effect The domain's quality score has a performance part that checks most of the above: page cache, object cache for WordPress, static cache times, WebP/AVIF, HTTP/3, a recent PHP version and whether PHP processes ran out. With Core Web Vitals measurement on, it shows real-world loading figures too. Busy PHP pools are covered in PHP, and per-site traffic and response codes in Statistics and metrics."},{"s":"web-server-settings","l":"en","t":"Web server settings","d":"How the nginx and Apache stack works, and how to set redirects, HSTS, security headers, protected folders, hotlink protection, error pages, custom directives, per-visitor limits, geoblocking and the write lock.","c":"sites","g":["nginx","apache","htaccess","redirect","hsts","headers","geoblocking"],"h":[["the-stack-nginx-in-front-apache-behind","The stack: nginx in front, Apache behind"],["https-redirect-and-hsts","HTTPS redirect and HSTS"],["security-headers","Security headers"],["redirects","Redirects"],["protected-folders","Protected folders"],["hotlink-protection","Hotlink protection"],["error-pages","Error pages"],["htaccess",".htaccess"],["custom-nginx-and-apache-rules","Custom nginx and Apache rules"],["per-visitor-limits","Per-visitor limits"],["geoblocking","Geoblocking"],["write-lock","Write lock"],["rules-for-every-site","Rules for every site"],["server-policy","Server policy"],["template-fragments","Template fragments"],["related","Related"]],"x":"This article covers the per-domain web server settings in Berth: redirects and HTTPS, security headers, protected folders, hotlink protection and error pages, custom nginx and Apache rules, rate limits per visitor, geoblocking and the write lock. It also explains the server policy and template fragments that let an administrator set rules for every site at once. Most settings are on the domain page under Settings, Security and Developers. Customers can change them for their own domains unless noted otherwise. The stack: nginx in front, Apache behind Berth uses the same arrangement as Plesk: nginx accepts all HTTP and HTTPS traffic, terminates TLS, serves static files, runs the page cache and applies redirects, headers, per-visitor limits and geoblocking. Apache sits behind nginx and handles what needs PHP or .htaccess. It passes PHP to the subscription's own PHP-FPM through modproxyfcgi. For HTTPS requests nginx talks to Apache over TLS on the loopback interface. A site therefore sees exactly what it saw on Plesk: HTTPS=on, port 443 and the https scheme, in PHP and in mod_rewrite. Common .htaccess rules that send HTTP to HTTPS (RewriteCond %{HTTPS} off, WordPress, Really Simple SSL) do not cause a redirect loop. Every vhost is rendered from the database, tested with nginx -t and apachectl configtest before it is activated, and rolled back if the test fails. If one domain's configuration becomes invalid later, only that file is set aside and everyone else's changes still go through. See How changes go live. HTTPS redirect and HSTS Under Settings → HTTPS: Redirect HTTP to HTTPS sends every plain HTTP request to HTTPS. HSTS tells browsers to use only HTTPS for the domain from then on. Enable it once everything works over HTTPS. You choose the duration (half a year, one year by default, or two years) and whether it covers subdomains (includeSubDomains). internet.nl and the NCSC ask for at least a year. HSTS and the redirect can also be set when requesting a certificate (berth tls issue --hsts, --no-redirect) or for many domains at once: berth domain bulk --action redirect_on --domains example.com,example.nl berth domain bulk --action hsts_on --all Security headers Settings → Security headers adds response headers, one per line as Name: value. Allowed are Content-Security-Policy, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, Cross-Origin-Opener-Policy, Cross-Origin-Resource-Policy, X-Robots-Tag and Cache-Control. X-Content-Type-Options: nosniff Referrer-Policy: strict-origin-when-cross-origin Content-Security-Policy: default-src 'self'; img-src 'self' data: The internet.nl check can add the recommended set with one click. An administrator can also require headers on every site through the server policy. Redirects The Redirects page of a domain offers two kinds: Forward the whole domain to another address, for example after a rebrand. Choose the status code (301, 302, 307 or 308) and whether to keep the path and query. Redirect individual paths, such as /old to /new, or everything under /old/* to a new location. berth domain forward --domain example.nl --url https://example.com --code 301 --keep-path berth domain forward --domain example.nl --off berth domain redirect add --domain example.com --from /old/* --to /new/ --keep-path berth domain redirect list --domain example.com Protected folders Protected folders puts HTTP Basic authentication on a folder or on the whole site, with users you create there. Passwords are stored as bcrypt hashes. berth domain protect add --domain example.com --path private --title \"Staff only\" berth domain protect list --domain example.com berth domain protect user-add --domain example.com --id 1 --user anna # password generated An empty path protects the whole website, which is useful for a site under construction. Hotlink protection Security → Hotlink protection stops other websites from embedding your images and video and using your bandwidth. They get an error instead of your file. Opening a file directly keeps working, as do browsers that send no referrer. Your own domain and aliases are always allowed; add other sites that may embed, for example google.com for Google Images. berth domain hotlink --domain example.com --on --ext jpg,png,webp,mp4 --allow google.com Error pages With custom error pages on, the panel places example files for 403, 404, 500 and other codes in httpdocs/error_docs/. Edit them to match the site. berth domain errorpages --domain example.com --on .htaccess .htaccess files work as on any Apache host: rewrites and redirects, ErrorDocument, headers and environment variables, handlers and MIME types, caching, authentication and a limited Options. .htaccess cannot enable CGI or server-side includes, and cannot change how PHP is passed to PHP-FPM. That covers what CMSs, plug-ins and frameworks ship with, while keeping the riskiest directives out of reach of a compromised site. .htaccess may not switch on FollowSymLinks (Apache answers with a 500); use SymLinksIfOwnerMatch instead. Sites migrated or imported into Berth have this rewritten automatically. Because nginx serves static files directly, .htaccess rules do not apply to images, PDFs and other static files. If you need that (a password on a download folder, an .htaccess hotlink rule), switch on Everything via Apache; see Caching and CDN. Custom nginx and Apache rules For things the panel has no setting for, such as an extra location block or a proxypass to an app, a domain can carry its own nginx and Apache directives: Developers → Custom web server rules*. nginx rules go into the domain's server block, Apache rules into its VirtualHost. berth domain directives --domain example.com --nginx nginx-extra.conf berth domain directives --domain example.com --apache - < apache-extra.conf berth domain directives --domain example.com --clear Rules are tested before they go live; on an error the previous configuration stays. Every change to a domain reloads the web servers, so changes by customers and resellers that rewrite the web server configuration are paced per account: someone who changes settings in a rapid loop gets a busy, try again shortly answer (429) for a moment. Because custom rules are free-form configuration, they are guarded: Off by default per package. The administrator can always set them. Customers and resellers can only when their package has Allow custom web server rules (berth plan set … --custom-web-directives) or their subscription has that override. A reseller can only enable it in his own packages when the administrator gives him that right. Bound to the subscription. The agent refuses directives that the root processes would execute (loading modules, piped logs, log files outside the domain's log folder), and binds alias, root, proxy_pass and similar to the subscription's own webspace, sockets and ports. Switching it off breaks nothing. Existing rules keep working; the customer can no longer see or change them, only the administrator can. Per-visitor limits Security → Per-visitor limits slows down bots and login attacks. Visitors who ask too much get a short 429 Too Many Requests. Limits count per IP address (behind a CDN, the real visitor's address); IPv6 addresses count per /64, so one host cannot dodge the limit by rotating addresses. Limit Options Limit login attempts On by default: a fixed limit per address on WordPress wp-login.php and xmlrpc.php, and on Joomla and Drupal logins Requests per second per address No limit, 10, 30 or 100 for the whole site, with bursts of twice that Concurrent connections per address 0 (no limit) or 10–1000 Own paths A path, a limit per minute (10, 60, 300 or 1200), optionally counting only POST berth domain ratelimit --domain example.com --login --site 30 --path \"/api/ 300\" --path \"/contact 10 post\" berth domain ratelimit --domain example.com --off Each call sets the full list again, so name every limit you want to keep. How often limits were hit shows up in the package health; see Site quality scores. Geoblocking Security → Geoblocking either blocks visitors from chosen countries or admits only chosen countries. Blocked visitors get a 403. Let's Encrypt's validation requests and addresses without a country (private networks) are always allowed. Only the account owner can change it. berth domain geo --domain example.com --block RU,CN berth domain geo --domain example.com --allow NL,BE berth domain geo --domain example.com --off Country data comes from DB-IP Lite (CC BY 4.0) and is updated by the panel. An administrator can add own ranges and can geoblock the panel itself; status pages stay reachable: berth geoip status printf '198.51.100.0/24 NL\\n' | berth geoip overrides berth geoip panel --allow NL,BE,DE Write lock A write lock makes a subscription's websites read-only, so an intruder who gets in through a vulnerable plugin cannot leave a backdoor. Switch it on under Security → Write lock. While it is on: no PHP script, SFTP or FTP account or scheduled task can change files in the document roots, only the writable exceptions you list stay writable (by default wp-content/uploads and wp-content/cache), ownership and permissions do not change; the document roots are mounted read-only. For an update, lift the lock temporarily for 15 minutes, an hour, four hours or a day; it goes back on by itself, or immediately with Lock again now. The panel's own tools (file manager, WordPress management, restore) lift it briefly when they need to write. The lock applies to the whole subscription. berth lock on --subscription acme --exceptions wp-content/uploads,wp-content/cache berth lock unlock --subscription acme --for 1h berth lock relock --subscription acme berth lock status --subscription acme Rules for every site Two root-only mechanisms let a hosting company set web server rules for all sites, which neither packages nor a compromised panel can loosen. Server policy The server policy holds hard limits in TOML files under /etc/berth/beleid.d/. The agent applies them to every PHP pool and vhost; the panel can only read them (Admin → Server policy). Keys include: Key Effect web.custom_directives toegestaan (allowed), alleen_beheerder (administrator only) or nooit (never) web.headers_required Headers set on every site; a domain cannot override them php.mail toegestaan (allowed) or nooit (never): mail() off everywhere php.disablefunctionsextra Extra functions disabled in every pool php.max.memorylimit, php.max.uploadmaxfilesize, php.max.postmaxsize, php.max.maxexecution_time Upper bounds for php.ini values php.versions_allowed The only PHP versions offered sudo berth beleid show sudo berth beleid set web.headers_required 'X-Frame-Options: SAMEORIGIN' 'Referrer-Policy: strict-origin' sudo berth beleid set php.max.memory_limit 512M sudo berth beleid check An unknown key or invalid value makes the whole policy invalid: the last valid version keeps applying, and berth doctor and the policy page show the error. Imports from Plesk, cPanel or another Berth server pass through the same policy. Template fragments For configuration the panel does not know, root can place a fragment on a fixed hook in the templates, for all domains or only those of one package: in the nginx server block, in location /, before the proxy to Apache, in the Apache VirtualHost, or at the end of the PHP-FPM pool. The agent fills in variables such as {domein}, {webroot}, {sysuser}, {php_socket} and {logs}, refuses pool fragments that would touch the subscription's sandbox, and the normal config test decides whether it goes live. The fragments are root-owned files in /etc/berth/local/sjablonen/<template>/<hook>.conf, or <hook>.<package>.conf for one package only. Typical uses: a header or location for every site, a longer timeout for one package, an extra PHP-FPM setting. berth sjablonen check <file> validates a file before you put it in place, berth sjablonen check checks the whole folder, and berth sjablonen list shows which fragment"},{"s":"site-quality-scores","l":"en","t":"Site quality scores and package health","d":"See a security and performance score per domain with one-click fixes, run an internet.nl-style checklist for web and mail, measure Core Web Vitals, and find out when a site was overloaded.","c":"sites","g":["score","internet.nl","core web vitals","pagespeed","performance","health"],"h":[["the-score-of-a-domain","The score of a domain"],["security-checks","Security checks"],["performance-checks","Performance checks"],["internet-nl-checklist","internet.nl checklist"],["core-web-vitals","Core Web Vitals"],["package-health-and-overload-notices","Package health and overload notices"],["related","Related"]],"x":"Berth checks every website against a list of good practices and turns the result into two numbers, a security score and a performance score. Each open item says why it matters and links to the place where you fix it, often with one button. Next to that, an internet.nl-style checklist covers the standards Dutch government and many organisations ask for, Core Web Vitals show how fast a site loads for real visitors, and package health tells a customer when the site was overloaded. The score of a domain Open a domain and choose Score, or see all domains at once under Domains → Scores, with the lowest scores first. Every check has a weight (1 to 3) and a status: in order, could be better, not in order, or not applicable. Recommendations are listed heaviest first. berth domain score --domain example.com berth domain score --all Security checks Check What it looks at Website over HTTPS A valid certificate, and how long until it expires HTTP redirects to HTTPS Plain HTTP visitors are sent to HTTPS HSTS Browsers are told to use only HTTPS TLS settings (NCSC) The server's TLS profile is Good Web application firewall The WAF is on and blocking, not only reporting Security headers The recommended response headers are present PHP version receives security updates The site's PHP version is not past its end of life, or about to be No malware found The latest malware scan of the webspace is recent and clean Recent backup The subscription has a recent backup WordPress security checklist Open items in the WordPress hardening checklist internet.nl The result of the internet.nl checklist below Performance checks Check What it looks at HTTP/3 Enabled on the server Page cache On for the domain Core Web Vitals The latest PageSpeed measurement, when measuring is on Static files cached long Images, CSS and JavaScript may be kept longer than 7 days WebP and AVIF Modern image formats are offered Recent PHP version PHP 8.3 or newer, which is noticeably faster Enough PHP processes The PHP-FPM pool did not run full Object cache for WordPress WordPress uses the subscription's Valkey No slow database queries Slow queries in the subscription's databases Most fixes are on the domain page; see Certificates, Web server settings, Caching and CDN and PHP. internet.nl checklist internet.nl is the Dutch test for modern internet standards, used by government and many organisations as a benchmark. Each domain has an Internet.nl tab that runs the same kinds of checks from the server itself, for the website and for mail. Whatever the panel manages, it fixes with one button; when the DNS is at a provider the panel cannot change, it shows the exact record to set. Part Checks Website IPv6 address, name servers reachable over IPv6, DNSSEC, HTTPS, redirect to HTTPS, HSTS, TLS versions and ciphers (NCSC), security headers, security.txt Mail MX record, mail server reachable over IPv6, DNSSEC for the mail domain, SPF, DKIM, DMARC, STARTTLS and TLS settings, DANE One-click fixes are available for the redirect, HSTS, security headers, IPv6, security.txt, DMARC, DANE and DNSSEC: berth domain internetnl --domain example.com berth domain internetnl --domain example.com --fix headers berth domain internetnl --domain example.com --fix dmarc berth domain internetnl --domain example.com --json The DMARC fix is careful: it moves the policy to p=reject only when at least 98 % of the domain's mail passes DMARC according to the received reports, and to p=quarantine otherwise, so legitimate mail is not lost. See Mail authentication. security.txt (RFC 9116) needs a contact address first. The administrator sets it under Settings → Panel → Vulnerability reporting. The panel's checklist is a quick, local way to get everything green. For an official result to show to a client or auditor, run the public test on internet.nl afterwards. Core Web Vitals Core Web Vitals are Google's measurements of how fast and stable a page loads on a phone. Berth measures them once a week per domain through Google's PageSpeed Insights API, only for domains where you switch it on: the address of the site is sent to Google for each measurement. On the domain's Score page, section Core Web Vitals: Measure weekly turns it on, Measure now runs a measurement immediately, Stop measuring stops it. The page shows loading (LCP), layout shift (CLS), responsiveness (INP), blocking time (TBT) and time to first byte (TTFB), each against Google's thresholds, plus a year of weekly LCP history. Field data from real Chrome users (CrUX) is used when Google has it; otherwise the lab measurement counts, with Total Blocking Time standing in for INP. Without an API key the low free quota of PageSpeed Insights applies. An administrator can store a Google API key for all sites on the server; it is kept encrypted. berth webvitals --domain example.com --on berth webvitals --domain example.com --measure berth webvitals --key-file - # store the PageSpeed Insights API key from stdin The results count towards the performance score and appear in the monthly report. Package health and overload notices A site that is too slow at peak times often shows it only in the logs. Berth turns those signals into plain language. Over the last seven days, hour by hour, it looks at: requests refused because the site or subscription reached its limit towards the web server (the site could not keep up), error pages 502 to 504, 429 responses the site gave itself, hours in which all PHP processes were busy, processes stopped at the memory limit, and time throttled at the CPU limit, database connections that were closed or ran out, visitors and login attempts slowed down by the per-visitor limits, shown for information since that is usually bots. An hour in which a signal stood out counts as a moment; a single refused bot request does not. The customer sees a card Health of your package on the overview, for example \"your website was overloaded at times (5 times in the last 7 days)\", with a link to the logs. When it happens repeatedly, the customer gets a notification, at most once in a while. Administrators and resellers see the same signals per subscription with the technical detail, and can sort subscriptions by overload under Statistics → Performance. The customer can search the access and error logs of the period under Statistics → Logs. Often the fix is a page cache, a higher PHP process limit or a larger package; see Caching and CDN, PHP and Statistics and metrics. Related Notifications and alerts for how notices reach customers and administrators Malware scanning and WAF Backups overview"},{"s":"software-installer","l":"en","t":"Software installer","d":"Install WordPress, Joomla, Drupal, Nextcloud or Matomo from the vendor's verified package, adopt existing installations, check their core files against the official release, repair and quarantine, log in with one click and harden them.","c":"apps","g":["wordpress","joomla","drupal","nextcloud","matomo","installer","cms"],"h":[["how-it-works","How it works"],["install-an-application","Install an application"],["when-is-a-folder-suitable","When is a folder suitable?"],["from-the-command-line","From the command line"],["existing-installations","Existing installations"],["integrity-compare-with-the-official-release","Integrity: compare with the official release"],["repair-and-quarantine","Repair and quarantine"],["known-vulnerabilities","Known vulnerabilities"],["one-click-login","One-click login"],["hardening","Hardening"],["duplicate-an-installation","Duplicate an installation"],["related","Related"]],"x":"Berth has its own software installer for the common PHP applications: WordPress, Joomla, Drupal, Nextcloud and Matomo. It does more than unpack an archive. Every installation is downloaded from the vendor and checked against the vendor's own hash, and the panel keeps watching it afterwards: core files are compared with the official release every night, known vulnerabilities are reported, and changed files can be repaired without deleting anything. How it works All five applications sit behind one common layer, with a driver per application. What works for one application appears in the same place for the others, and a driver says plainly what it cannot do (yet). Everything runs as the subscription's system user, through a fixed set of agent operations. There are no free-form commands and no code from elsewhere. The tools are each application's own: wp-cli for WordPress, the Joomla console, drush and Composer for Drupal, occ for Nextcloud, the Matomo console. Software comes only from the official source and is checked against the hash that source publishes. The verified archive is kept as a reference package, which is also the yardstick for integrity checks and the source for repairs. A way back for risky steps. Before an update or restore the panel takes a snapshot when the website is below the policy's size limit (2 GB by default); otherwise the nightly backup is the way back. Repairs keep the old files in quarantine. WordPress Joomla Drupal Nextcloud Matomo Install from verified package yes yes yes yes yes Integrity check and repair yes yes yes yes yes Automatic updates core, plugins, themes core core, modules core (within major) core (within major) Smart updates yes core core no no Staging both ways both ways both ways copy only no One-click login yes yes yes yes no Duplicate to another domain yes yes yes yes no Hardening checklist yes yes yes yes yes Install an application Go to Software → Install. The page is called \"Install software\". Choose the application, the website, and optionally a subfolder such as blog. The panel checks the folder straight away and shows one of three states: Empty: nothing there, only the Berth start page or a host's placeholder files. Empty enough: other files are present but nothing collides; they stay. Not possible here: with the reason and the files in the way. Fill in the site name and the administrator, and optionally a password. Click Continue. A review shows exactly what will happen: software and version, address and folder, the new database, the administrator, and what happens to each name already in the folder. Click Install. The installation runs as a background task with its steps and a live log: check the folder, fetch and verify the package, place it, create the database, install, harden, register. It cannot be stopped halfway, because a half-installed site is a broken site. If it fails, the task removes what it created and puts any moved host files back. A generated password is shown only to the person who installed, and only once. When is a folder suitable? The same rule is applied by the live check and again by the agent just before placing files: There must be no software in the folder or in its subfolders: no other WordPress, Joomla, Drupal, Nextcloud or Matomo, and no other recognised application such as Laravel, Magento, TYPO3, Moodle, a Node app or a Git checkout. It must not be inside another installation's own folders (for example wp-content of a WordPress in the document root). Next to it, such as /blog beside a WordPress, is fine. Nothing may collide with a name in the package. The exceptions are the Berth start page, which is replaced, and loose placeholder files from a previous host (index.html, .htaccess, robots.txt, favicon.ico and the like), which move to a quarantine folder outside the website and can be restored from the installation's page. From the command line Each application has its own command group: berth wp install --domain example.com --title \"Acme\" --admin-user beheer \\ --admin-email admin@example.com --locale en_GB berth joomla install --domain example.nl --site-name \"Acme\" --admin-user beheer --admin-email admin@example.com berth drupal install --domain example.org --site-name \"Acme\" --admin-user beheer --admin-email admin@example.com --profile standard berth nextcloud install --domain cloud.example.com --admin-user beheer --admin-email admin@example.com berth matomo install --domain stats.example.com --admin-user beheer --admin-email admin@example.com --site-url https://example.com The administrator account may not be called admin. An empty password is generated and shown once. WordPress can be installed in nlNL, enUS, enGB, deDE or fr_FR; Drupal in Dutch or English. --force (installing over existing files) exists only on the CLI and API. Nextcloud gets its data folder next to the document root, outside the website, plus its system cron. Matomo gets its database, super user, HTTPS and hourly archiving through cron. Existing installations Installations that already exist, for example after a migration from Plesk, are recognised by their files and registered automatically by a daily scan. You can also scan now, adopt an installation in a specific folder, or detach one so the panel forgets it (files and database stay): berth software scan --all berth software list --domain example.com berth software adopt --domain example.com --path shop berth software forget --domain example.com --id 12 The overview under Software lists every installation with its version, available updates, known vulnerabilities and integrity state, as a table or as cards. Clicking a name opens all details: version and release date, folder, database, PHP version, update policy, last check, pending updates per plugin or extension, findings and the restore points. Integrity: compare with the official release Every night, and on demand, the panel compares each installation's core files with the reference package of the same version: changed files (a different hash), missing files, extra files in the core folders, such as an injected backdoor in wp-includes. User content (wp-content, images, sites//files) and configuration are not counted. For each differing file the detail view shows the expected SHA-256 and size from the package next to what was found**, with its modification time. WordPress plugins are checked against the checksums of wordpress.org as well, and Nextcloud also runs its own signature check. A change in the core sends a notification to the administrator, and to the customer when the package has customer notifications on. berth software verify --domain example.com --id 12 berth software verify --all The overview shows a chip: untouched or the number of changed files. Repair and quarantine Repair puts changed and missing core files back from the reference package, and moves extra files in the core folders to a quarantine folder outside the website, keeping their old paths. Nothing is ever deleted. The files that get replaced go into the quarantine too, so every repair can be undone. User content and configuration always stay as they are. berth software repair --domain example.com --id 12 berth software quarantine --domain example.com --id 12 # list repair rounds berth software quarantine --domain example.com --id 12 --restore <round> --files wp-includes/x.php berth software quarantine --domain example.com --id 12 --remove <round> If a site was actually compromised, repairing the core is only one step. Also run a malware scan, check users and plugins, and consider restoring only the software from a backup. Known vulnerabilities The overview flags installations, plugins, themes, extensions and modules with a known vulnerability, with the CVE and severity. Sources are the vendors' own advisories and, for WordPress, the Wordfence vulnerability feed; Drupal also uses composer audit. Security releases can be installed immediately even when normal updates wait; see Smart updates. The server-wide picture is in Vulnerability management. One-click login From the application's page, log in as an administrator without knowing the password. The panel creates a one-time link that works once and only for a short moment. This is available for WordPress, Joomla, Drupal and Nextcloud. berth wp login --domain example.com --user-id 1 berth joomla login --domain example.nl berth nextcloud login --domain cloud.example.com --username beheer Hardening Each application has a security checklist with one-click fixes for what can be fixed safely. WordPress is hardened right after installation. Application Checklist items WordPress file permissions of wp-config.php, debug output, the built-in file editor, salts, XML-RPC, no PHP in uploads, sensitive files, core and plugin files Joomla installation folder removed, configuration permissions, debug, error reporting, force SSL Drupal trusted host patterns, settings permissions, error level, pending database updates Nextcloud configuration permissions, debug, HTTPS, background jobs via cron, trusted domain, WebDAV and the WAF Matomo configuration permissions, private folders, HTTPS, trusted hosts check, archiving via cron berth wp security --domain example.com berth wp security --domain example.com --fix xmlrpc --fix file_edit berth joomla harden --domain example.nl The WordPress page also has a maintenance mode with its own page, debug on and off, and cache flushing. Duplicate an installation Duplicate makes an independent copy on another domain of the same subscription, or on an existing domain with an empty document root. The copy gets its own database, and addresses are rewritten. berth wp duplicate --domain example.com --target copy.example.com For a temporary copy to test changes on, use staging instead. Related Smart updates: update policy, smart updates and snapshots Staging PHP and Databases"},{"s":"smart-updates","l":"en","t":"Smart updates and update policy","d":"Let the panel update WordPress, Joomla, Drupal, Nextcloud and Matomo at night, test updates first on a temporary copy, delay normal releases while security fixes go out at once, and get back with a snapshot or by restoring only the software.","c":"apps","g":["updates","auto-update","smart updates","wordpress","snapshot","rollback"],"h":[["what-is-updated-automatically","What is updated automatically"],["smart-updates","Smart updates"],["pages-and-threshold","Pages and threshold"],["update-policy-in-layers","Update policy in layers"],["switch-updates-off-for-one-installation","Switch updates off for one installation"],["update-now-by-hand","Update now, by hand"],["snapshots-before-an-update","Snapshots before an update"],["restore-only-the-software","Restore only the software"],["containers","Containers"]],"x":"Keeping CMS installations up to date is the most effective protection against compromised sites, and the most common cause of broken ones. Berth handles both sides: it updates installations automatically at night, can test each update on a temporary copy before touching the live site, lets normal releases wait a few days while security fixes go out immediately, and always keeps a way back. This article covers what is updated, how smart updates decide, the layered update policy, updating by hand, snapshots, and restoring only the software from a backup. What is updated automatically What is updated is chosen per site, on the page of the application: Application Automatic updates WordPress Core (not, security and maintenance releases only, or all releases), plugins, themes Joomla Core Drupal Core and modules (security advisories for modules can go out immediately) Nextcloud Core, within the current major version Matomo Core, within the current major version When and whether it happens is set by the update policy. Automatic updates run at night, after the backup. If the site returns a server error afterwards, the panel puts everything back to the previous versions and sends a notification of what happened. berth wp auto-update --domain example.com --set --core minor --plugins --themes berth joomla auto-update --domain example.nl --set --core berth nextcloud auto-update --domain cloud.example.com --set --core berth wp auto-update --domain example.com --status # outcome of the last round Joomla extensions are updated by hand from the panel, with a snapshot first and an automatic rollback on error (berth joomla extensions-update). Smart updates A server error is easy to detect. A page that still loads but has lost its menu, its layout or its shop is not. Smart updates catch that. With Smart updates on (Test on a temporary copy first), an update round goes like this: The panel makes a temporary copy of the site on berth-update.<domain>, in the same subscription and behind a password. For WordPress the copy is anonymised: customers, commenters and orders are replaced by fake data. It fetches the chosen pages of the copy twice before the update. The difference between those two fetches is the page's natural variation (dates, rotating banners), so it does not count against the update. It runs the update on the copy and fetches the same pages again. It compares before and after, per page: the HTTP status, PHP errors and the error texts WordPress or PHP shows when something breaks, the visible text, the structure of the page (its elements), whether the stylesheets and scripts that loaded before still load. Only if every page is at least as similar as the threshold, the same versions are applied to the live site. Otherwise the update is held: live stays untouched, and you get a report with the comparison per page. The copy is removed. Smart updates do not take screenshots: that would need a full browser on the server. Comparing text, structure and assets catches the same kind of breakage without one. Pages and threshold On the WordPress page, under Automatic updates → Pages and threshold: Pages to compare: one path per line, up to 10. Left empty, WordPress uses the home page and the first four published pages; Joomla and Drupal use the home page. Threshold: the minimum similarity, 50 to 100 %, default 90 %. berth wp auto-update --domain example.com --set --core minor --plugins --themes \\ --smart --page / --page /shop/ --page /contact/ --threshold 90 berth drupal auto-update --domain example.org --set --core --smart --pages / --threshold 90 berth wp auto-update --domain example.com --run # run the policy for this site now Smart updates are available for WordPress (core, plugins and themes) and for Joomla and Drupal core. Nextcloud core updates are automatic but not smart: its data folder is usually too large to copy for every update. Update policy in layers The update policy decides whether and when the panel updates. It has three layers: server → subscription → domain. Per setting, the most specific layer wins; inherit follows the layer above. Setting Meaning Default Update automatically On: the panel updates at night. Off: self-maintenance; nothing is updated automatically, but known vulnerabilities are still monitored and reported on Delay Normal releases wait this many days after publication (0 to 60), so the first problems of a new release surface elsewhere first 5 days Security updates Immediately, or after the same delay immediately Snapshot Up to which size of the website the panel takes a snapshot before a manual update 2,048 MB Customers may deviate Server only: customers may set their own subscriptions and domains Where to find it: Server: the policy card on the Software page (administrator). Subscription: Automatic updates on the customer page. Domain: the update policy link on the domain page, next to the website. Every setting shows where its value comes from (\"from the server\", \"from the subscription\"). If the hosting company has fixed the policy, customers see it but cannot change it. A restricted login with the software right can change a domain's policy, but cannot switch off automatic updates or security updates. berth software update-policy # server berth software update-policy --auto on --delay-days 5 --security-now on --customer-choice on berth software update-policy --subscription acme --delay-days 2 berth software update-policy --domain example.com --auto off berth software update-policy --domain example.com --reset Switch updates off for one installation To keep one installation entirely under manual control, switch automatic updating off for that installation. The panel then only monitors and notifies: berth software updates --domain example.com --id 12 --off Update now, by hand On the Software overview, Update now first shows a plan: which parts go from which version to which (core and/or extensions, selectable), whether a snapshot is taken first and why or why not, what visitors will notice during the update, and how to get back. After you confirm with Yes, update now, it runs as a background task in four steps: snapshot, core, plugins, themes, extensions or modules, check: scan the installation again, fetch the site, and compare the core with the official package. The progress shows in the installation's row and in the task bar at the top. A run that ends with a warning (the site does not answer, a different version than expected) is marked in the row. It cannot be stopped halfway, since that would leave a half-updated site. Snapshots before an update Before a manual update, the panel takes a snapshot: a partial backup with only the domain's webspace and the installation's database, no mail or containers. It is taken when the measured webspace is below the policy's snapshot limit. Snapshots are kept on the server for a week (at most three per subscription), are not sent to external backup locations and do not count towards the nightly rotation. Repairs do not need one: they already keep the replaced files in quarantine; see Software installer. Restore only the software When an update or a compromise has damaged one installation, restoring the whole subscription would also roll back mail, other sites and databases. Restore only the software brings back just that installation from a snapshot or a backup archive: files: the installation's folder comes back exactly as it was; other installations nested inside it, and document roots of other domains in the same webspace, stay as they are now; and/or its database. A fresh snapshot is taken first, so the restore itself can be undone. Afterwards the panel restores the application's file permissions, clears its cache, registers it again and checks the core. With four-eyes approval switched on, a second administrator approves the restore first; see Audit trail and approvals. In the panel, open the installation and use Restore from a backup → Restore…. On the command line: berth software backups --domain example.com --id 12 berth software restore --domain example.com --id 12 --archive <archive> --files --database Restoring requires the backups right. Encrypted archives with the customer's own key are shown but cannot be chosen here. For every other kind of restore, see Restoring data. Containers Containers with automatic updating are updated in the maintenance windows by the same round, with an automatic rollback when the new version does not start; see Containers."},{"s":"staging","l":"en","t":"Staging copies and pushing to live","d":"Make a shielded staging copy of a WordPress, Joomla, Drupal or Nextcloud site, test changes there, and push chosen files and tables back to live with a preview and a backup first.","c":"apps","g":["staging","wordpress","joomla","drupal","nextcloud","push to live","test site"],"h":[["what-a-staging-copy-is","What a staging copy is"],["create-a-staging-copy","Create a staging copy"],["push-a-wordpress-copy-to-live","Push a WordPress copy to live"],["anonymised-copies-and-live","Anonymised copies and live"],["push-a-joomla-or-drupal-copy-to-live","Push a Joomla or Drupal copy to live"],["why-nextcloud-copies-cannot-be-pushed-to-live","Why Nextcloud copies cannot be pushed to live"],["remove-a-staging-copy","Remove a staging copy"],["staging-duplicates-and-smart-updates","Staging, duplicates and smart updates"]],"x":"A staging copy is a second version of a site on another address, with its own database, where you try updates, a new theme or a plugin without risk. When you are happy, you push the changes back to the live site. Berth makes staging copies for WordPress, Joomla, Drupal and Nextcloud and shields them from search engines and the outside world; for WordPress it also replaces personal data with fake data by default. What a staging copy is It lives on another domain in the same subscription, by default staging.<domain>, with its own database. It is behind a password, marked noindex for search engines, and its outgoing mail is caught in the domain's mail catcher instead of being delivered (Nextcloud copies send no mail at all). For WordPress, personal data is anonymised by default: customers, commenters and orders are replaced by fake data, while administrator accounts stay so you can log in. Tick Keep real personal data only when you really need it, for example to reproduce a bug with a specific order. Joomla, Drupal and Nextcloud copies keep the data of live, shielded by the password. Making it again refreshes it from live. The copy counts towards the subscription's disk space. For WordPress the panel rewrites the site's addresses in the database; Joomla and Drupal mostly use relative links, and absolute links to the live address in content stay as they are. Application Create and refresh Push to live WordPress yes files and/or database, with a choice of tables and file parts Joomla yes files and/or database Drupal yes files and/or database Nextcloud yes, including a copy of the data folder no, by design Matomo no no Create a staging copy WordPress: on the WordPress page of the domain, section Staging and copy: Optionally enter the domain of the copy; empty means staging.example.com. Under Options you can choose Without password or Allow sending mail. Click Create staging copy, or Create or refresh staging copy when one exists. The password of the copy is shown once. If the staging name does not resolve yet, add a preview address so the copy works without a DNS record. berth wp staging create --domain example.com berth wp staging create --domain example.com --target test.example.com --preview berth wp staging create --domain example.com --keep-personal-data --allow-mail --no-protect Joomla, Drupal and Nextcloud have the same function on their own pages, and on the command line: berth joomla staging --domain example.nl berth drupal staging --domain example.org --target staging.example.org berth nextcloud staging --domain cloud.example.com A Nextcloud copy gets its own database and its own copy of the data folder (the users' files), with the configuration pointing to both. Push a WordPress copy to live On the copy's WordPress page, choose Choose and push to live…. You decide exactly what goes over; everything you do not choose stays on live as it is. Preview. The page shows which tables differ or are new on staging, and which files are new, changed or gone, per part. Files. Choose the parts to push: themes, plugins, uploads and/or core. Within a chosen part, files that exist on live but not on staging disappear from live. wp-config.php of live always stays. Database. Push all tables, none, or only the ones you tick. Chosen tables replace the same tables on live; other tables on live are untouched. The panel warns when you pick tables that belong together only partly (for example posts without their meta). Confirm by typing the name of the live site, then Push to live. Before anything is changed, the panel makes a backup of the subscription, which you can restore under Backups if needed. berth wp staging preview --domain staging.example.com berth wp staging publish --domain staging.example.com --files --part themes --part plugins --confirm example.com berth wp staging publish --domain staging.example.com --database --table wp_posts --table wp_postmeta --confirm example.com Orders, comments, form entries and new users that arrived on live after the copy was made are lost for every table you push. For a shop, push files and settings, and leave order and customer tables alone. Anonymised copies and live When the copy's database is anonymised, the tables with personal data, the options and the posts contain fake data. Those tables cannot be pushed to live; the page disables them. Everything else can. To push all tables, refresh the copy with real personal data first. Push a Joomla or Drupal copy to live For Joomla and Drupal you push the files and/or the whole database, with a backup first. The configuration file of live (configuration.php for Joomla, settings.php for Drupal) always stays. berth joomla staging-publish --domain staging.example.nl --files --database berth drupal staging-publish --domain staging.example.org --files Why Nextcloud copies cannot be pushed to live A Nextcloud database and its data folder belong together, and users keep changing both on live: new files, shares, calendar entries. Pushing a copy back would overwrite or orphan that work. Use the copy to try an upgrade or a new app, then do the same on live. Remove a staging copy Removing a copy deletes its domain, webspace and database. For WordPress you confirm on the command line with the name of the copy; for Joomla, Drupal and Nextcloud --domain names the copy: berth wp staging remove --domain staging.example.com --confirm staging.example.com berth joomla staging-remove --domain staging.example.nl berth nextcloud staging-remove --domain staging.cloud.example.com Staging, duplicates and smart updates A staging copy stays linked to its live site and can be pushed back. A duplicate is an independent copy on another domain, for example to start a new site from an existing one; see Software installer. A smart update makes its own short-lived copy on berth-update.<domain> to test an update, and removes it afterwards. You do not need a staging copy for that. For copies of a single database without personal data, for example to hand to a developer, see the anonymised copy in Databases."},{"s":"node-python-apps","l":"en","t":"Node.js and Python apps","d":"Run Node.js and Python applications next to PHP, on the whole site or a path, with per-app Node.js versions, zero-downtime restarts, health checks, background workers, resource limits and a Laravel toolkit.","c":"apps","g":["nodejs","python","apps","nextjs","flask","fastapi","laravel"],"h":[["how-an-app-runs","How an app runs"],["add-an-app","Add an app"],["templates","Templates"],["node-js-versions","Node.js versions"],["zero-downtime-restarts","Zero-downtime restarts"],["health-checks-and-the-watchdog","Health checks and the watchdog"],["status-logs-and-usage","Status, logs and usage"],["limits-per-app","Limits per app"],["environment-variables-and-secrets","Environment variables and secrets"],["laravel-toolkit","Laravel toolkit"],["deploying-code","Deploying code"],["system-apps","System apps"]],"x":"Besides PHP, a Berth website can run its own long-running processes: a Next.js or Nuxt front end, an Express or NestJS API, a Flask or FastAPI service, or a background worker that processes a queue. Each app is its own process, run by the server as the subscription's system user, and nginx sends the site (or one path) to it. Apps are available when the package allows them: Node.js and Python apps in the package (berth plan set --name dev --apps). How an app runs Each app is a separate service that the root agent starts as the subscription's system user, inside the subscription's resource slice. It counts towards the package's CPU, memory and process limits, together with PHP, cron and SSH. The panel picks a free local port and passes it in the environment variable PORT. Your app listens on that port on 127.0.0.1. nginx is the only way in. It forwards the chosen path to the app, with HTTPS, the WAF, per-visitor limits and the domain's other settings in front. App ports are reachable only from the server itself, and only for the app's own subscription. An app can take over the whole site (/) or one path such as /api/. The rest of the site is served as usual, so a PHP site and a Node API can share one domain. Background workers have no web address at all: a queue worker, a scheduler, a bot. Add an app On the domain page, open Apps and click Add app: Choose Node.js or Python, or a template. Choose the folder in the webspace that holds the code (default app) and the start command. Without a command, Node.js runs npm start and Python runs python app.py. Choose the path on the website: / for the whole site, or for example /api/. Leave it out for a background worker. Optionally add a build step (such as npm run build) and a health check path (such as /health). Install the dependencies and start the app. berth app add --domain example.com --name web --template nextjs --rolling berth app install --domain example.com --name web berth app start --domain example.com --name web Install runs npm ci (or npm install without a lock file) for Node.js, and creates a virtual environment with pip install -r requirements.txt for Python. The build step runs after the dependencies. A background worker: berth app add --domain example.com --name queue --runtime node --command \"node worker.js\" --worker --start Templates Templates fill in runtime, start command, build step and health check for common frameworks: Template Runtime Start command nextjs Node.js npx next start -p $PORT -H 127.0.0.1 nuxt Node.js node .output/server/index.mjs astro Node.js (Node adapter) node ./dist/server/entry.mjs express Node.js npm start nestjs Node.js node dist/main flask Python (gunicorn) gunicorn -b 127.0.0.1:$PORT app:app fastapi Python (uvicorn) uvicorn main:app --host 127.0.0.1 --port $PORT berth app templates --domain example.com Node.js versions Every app picks its own Node.js major version, for example 22 or 24. Berth downloads the official builds from nodejs.org, verifies their signatures, and keeps each major version up to date with the latest release daily; apps on it are restarted after an update. Value Meaning 22, 24, … That major version, always the newest release auto Read from .nvmrc, .node-version or engines.node in package.json system The Node.js of the operating system berth app set --domain example.com --name web --node auto berth app node-update # fetch the newest releases now and restart the affected apps Zero-downtime restarts With --rolling, a restart or deploy starts the new instance next to the old one, waits until it answers healthy, and only then switches traffic over. Visitors never see a gap. Without it, the app is stopped and started, which takes a moment. berth app set --domain example.com --name web --rolling berth app restart --domain example.com --name web Health checks and the watchdog With a health check path set, the panel regularly requests that path. An app that keeps running but stops answering is restarted automatically by the watchdog, a limited number of times; each restart is recorded in the activity log and sent as a notification. An app process that exits with an error is restarted by systemd. Status, logs and usage The Apps page shows each app's state, the latest log lines and Watch live. Usage history for CPU, memory and restarts is available per app: berth app list --domain example.com berth app logs --domain example.com --name web berth app metrics --domain example.com --name web --period 7d Limits per app All apps of a subscription share its budget. To keep one app with a memory leak or a heavy job from affecting the others and the website, give it its own lower limits under Limits at the app: CPU, in percent of one core, memory, in MB, tasks (processes and threads), disk throughput in MB/s and operations per second. Empty means no own limit. A limit cannot be higher than the subscription's, and memory can be at most 90 % of it; the panel shows what the subscription allows. New limits apply immediately without a restart, unless the app already uses more memory than the new limit; then the app is restarted. At the memory limit the kernel stops a process of the app and the panel starts it again (a hard limit, without swap). The page shows usage against each limit and how often the app hit it since its last start. Installing and building are not counted against the app's own limits, only against the subscription's. berth app limits --domain example.com --name web --cpu 50 --memory 256 --tasks 64 berth app limits --domain example.com --name web --clear Disk space used by an app counts towards the subscription's quota; there is no separate disk quota per app. See Isolation for the subscription-level limits. Environment variables and secrets Put configuration in the app's own .env in its folder, or, for secrets you do not want in the code, in the domain's environment: Developers → Environment (variables and secrets). Those values are available to PHP, to the domain's apps and background processes, and to scheduled tasks that load the environment. After saving, a value cannot be read back in the panel; the previous five values of each variable are kept so you can restore one. printf '%s' \"$API_KEY\" | berth domain env --domain example.com --set API_KEY berth domain env --domain example.com # names only, no values berth domain env --domain example.com --history API_KEY berth domain env --domain example.com --restore API_KEY --version 3 You can also set variables on the app itself with --env NAME=value on berth app add or berth app set; --env on set replaces the whole list. Laravel toolkit For Laravel sites, the domain has a Laravel page with the things a Laravel app needs on a server: Artisan commands from an allow-list, such as migrate --force, optimize, cache:clear, down and up, the scheduler (schedule:run every minute), queue workers as background processes running queue:work, an editor for the .env file. berth laravel show --domain example.com berth laravel artisan --domain example.com -- migrate --force berth laravel scheduler --domain example.com --on berth laravel worker --domain example.com --name queue Laravel itself runs on PHP; set the document root to httpdocs/public (see Domains and subscriptions). Deploying code Code reaches the app folder over SFTP, SSH with rsync or git, or through Git deploy, which can build and restart on every push. For applications that come as a container image instead, see Containers. System apps Some software belongs to the server rather than to a customer: an internal dashboard, a webhook receiver, a small API. Under System → System apps an administrator runs such an app without a domain or subscription: An app (Node.js or Python) is built from a public Git repository over https and runs as its own systemd unit, in a sandbox under its own system user. A container runs rootless with Podman under its own user, from an image of an allowed registry. Both listen only on the server itself (127.0.0.1) until you publish them. Publishing sets an address, a port and a matching firewall rule, optionally limited to certain addresses or networks, and can put the app on a host name of its own behind the panel's nginx, with a certificate from Let's Encrypt. Unpublishing takes it back to the server only. Installing and building run as a system job you can follow live. berth sysapp create dashboard --runtime node --source https://git.example.com/ops/dashboard.git \\ --health /health --memory 512 --install berth sysapp create status --kind container --image docker.io/library/nginx:alpine --container-port 80 berth sysapp publish dashboard --hostname dashboard.example.nl --email ops@example.nl berth sysapp list berth sysapp logs dashboard berth sysapp unpublish dashboard Deleting a system app removes its unit or container, host name and firewall rule; its code and data stay unless you add --purge."},{"s":"git-deploy","l":"en","t":"Git deploy","d":"Deploy a site from GitHub, GitLab, Gitea or your own Git server with a read-only deploy key and a webhook, or push straight to the server, with build actions, zero-downtime releases, rollback and a preview per branch.","c":"apps","g":["git","deploy","github","gitlab","webhook","ci","releases"],"h":[["add-a-repository","Add a repository"],["deploy-key-for-private-repositories","Deploy key for private repositories"],["deploy-on-every-push-webhook","Deploy on every push (webhook)"],["push-straight-to-the-server","Push straight to the server"],["zero-downtime-releases-and-rollback","Zero-downtime releases and rollback"],["presets","Presets"],["preview-per-branch","Preview per branch"],["watch-the-outcome","Watch the outcome"],["security-notes","Security notes"]],"x":"Git deploy rolls code from a repository out to a folder in the webspace: by hand with a button, automatically on every push through a webhook, or by pushing directly to the server. With releases on, each deploy goes into its own folder and the site switches over only when everything succeeded, so visitors never see a half-deployed site and you can go back with one click. Add a repository On the domain page, open Git and click Add repository: Enter the URL of the repository: https://… for a public repository, git@github.com:acme/site.git (SSH) for a private one; the panel then creates a deploy key, or choose to push to the server yourself (see below). Choose the branch (default main) and the target folder in the webspace. Empty means the domain's document root. Optionally fill in actions that run after every deploy, in the target folder, such as composer install --no-dev. Optionally pick a preset and switch on releases (below). berth git add --domain example.com --name site --url git@github.com:acme/site.git \\ --branch main --target httpdocs --actions \"composer install --no-dev\" --auto Files that are not in Git, such as uploads, stay where they are on every deploy. Deploy key for private repositories For an SSH URL, the panel generates a key pair per repository and shows the public deploy key. Add it to the repository as a read-only key: in GitHub under Settings → Deploy keys, in GitLab under Settings → Repository → Deploy keys, in Gitea under Settings → Deploy Keys. The private key stays on the server and only gives read access to that one repository. Deploy on every push (webhook) With Deploy automatically on, the panel shows a webhook address once. Note it down; the panel stores only a hash of its secret and cannot show it again. In GitHub, add it under Settings → Webhooks → Add webhook with content type application/json; GitLab and Gitea work the same way. Every push to the chosen branch is then deployed. berth git hook --domain example.com --name site --on # new address, shown once berth git hook --domain example.com --name site --off # the address stops working Switching it off and on again gives a new address, which is also how you rotate the secret. Without a webhook, deploy with Deploy now or: berth git deploy --domain example.com --name site Push straight to the server Instead of a remote repository, you can push to the panel over SSH, as you would to a Git host. Create the repository with push as its URL: berth git add --domain example.com --name site --url push --releases The Git page then shows the remote to add. Add it once, then push: git remote add server <address shown in the panel> git push server main You authenticate with your own SSH key (domain page, SFTP and SSH → SSH keys), so the package needs SSH access. Every push is deployed within half a minute. See Files, FTP and SSH. Zero-downtime releases and rollback With releases on, each deploy goes into its own folder <target>/releases/<time>, and a current link points at the active one. The document root is set to <target>/current (or <target>/current/public). A deploy that fails, including its actions, never becomes active. Shared paths stay across releases, for example storage, .env or public/uploads. They live once, outside the release folders, and each release links to them. Kept releases: the last few releases stay on disk (5 by default) so you can go back. Rollback switches current back to the previous release immediately. berth git add --domain example.com --name app --url git@github.com:acme/app.git \\ --releases --keep 5 --shared storage --shared .env --doc-output public berth git rollback --domain example.com --name app --doc-output points the document root at a folder inside the code after the first successful deploy, for example dist or public. Presets Presets fill in actions, releases, shared paths and the output folder for common setups: Preset Actions Site folder laravel composer install --no-dev --optimize-autoloader --no-interaction && php artisan migrate --force && php artisan optimize; storage and .env shared public/ npm-static (Vite, Astro, Eleventy, …) npm ci && npm run build dist/ nextjs-export (Next.js static export) npm ci && npm run build with output: 'export' out/ hugo hugo --minify (Hugo must be installed on the server) public/ berth git add --domain example.com --name site --url https://github.com/acme/site.git --preset npm-static --auto For a Node.js server rather than static output, deploy the code with Git and run it as an app. Preview per branch Every branch other than the main branch can get its own environment at <branch>.<preview base>, for example feature-login.preview.example.com. The preview base must be a domain of the subscription or a name below it, with a wildcard DNS record pointing at the server. Each preview lives in its own folder in the webspace and is deployed on every new commit of its branch; when a branch disappears, its preview goes too. berth git preview --domain example.com --name site --base preview.example.com berth git preview --domain example.com --name site --base \"\" # previews off; existing ones are removed Watch the outcome The Git page shows per repository the branch, how it deploys (button, webhook or push), the commit that is live, the last deploy and its output. A failed deploy keeps the previous version online and shows why. berth git list --domain example.com berth git remove --domain example.com --name site # repository and deploy key go; files stay Security notes Deploys and actions run as the subscription's system user, inside its resource limits, never as root. The deploy key is read-only and unique per repository; removing the repository removes the key. The webhook only triggers a fetch of the configured branch; it cannot pass code or commands. Secrets belong in the domain's environment (Developers → Environment) or in a shared .env, not in the repository; see Node.js and Python apps."},{"s":"containers","l":"en","t":"Containers with rootless Podman","d":"Run container images and compose stacks per subscription with rootless Podman, publish them on a site, path or subdomain, install apps from the catalogue, roll back or auto-update, and control registries, image vulnerabilities and disk quota.","c":"apps","g":["containers","podman","docker","compose","quadlet","images"],"h":[["how-containers-are-isolated","How containers are isolated"],["install-an-app-from-the-catalogue","Install an app from the catalogue"],["run-your-own-image","Run your own image"],["upload-an-image","Upload an image"],["health-checks","Health checks"],["publish-a-container","Publish a container"],["logs-terminal-and-databases","Logs, terminal and databases"],["updates-and-rollback","Updates and rollback"],["compose-stacks","Compose stacks"],["allowed-registries","Allowed registries"],["image-vulnerability-scanning","Image vulnerability scanning"],["disk-quota-and-backups","Disk quota and backups"],["containers-for-the-server-itself","Containers for the server itself"],["docker-already-on-the-server","Docker already on the server"]],"x":"Some applications are easiest to run as a container image: Ghost, n8n, Vaultwarden, an analytics tool, or your own service. Berth runs containers per subscription with rootless Podman, without a Docker daemon and without root rights, and publishes them through nginx on an address of the subscription. This article covers the isolation model, the catalogue, your own images and compose stacks, updates and rollback, registries, image scanning and quota. Containers are available when the package allows them: Containers in the package, with a maximum number and memory per container. berth plan set --name dev --containers --max-containers 5 --container-memory-mb 1024 berth container quota --subscription acme How containers are isolated Rootless Podman. There is no Docker daemon and no root-owned container engine that a customer can talk to. One user namespace per subscription, inside the subscription's resource slice. Container processes are mapped to unprivileged IDs of that subscription and count towards its CPU, memory and process limits. Units owned by root. Each container is a systemd Quadlet unit that the root agent writes; a customer cannot change the unit or its options. Never privileged. No host network, host PID or IPC namespaces, no extra capabilities, no devices. no-new-privileges and seccomp are always on, swap is off, and a read-only root filesystem is an option. Ports only on the loopback interface. nginx is the only way in, with HTTPS, the WAF and the domain's other settings in front. See Isolation and Security model for how this fits the rest of the server. Install an app from the catalogue On the domain page, open Containers and go to From the catalogue. Choose an app, the address to publish it on, and click to install. Where an app needs a database, the panel creates one in the subscription. App What it is Database Ghost Blog and newsletter SQLite n8n Workflows and automation Uptime Kuma Monitoring with status pages Gitea Git server with issues and pull requests SQLite Vaultwarden Password vault, works with the Bitwarden apps Nextcloud Files, calendar and contacts SQLite Matomo Web analytics MariaDB Umami Simple cookieless analytics PostgreSQL Strapi Headless CMS with REST and GraphQL MariaDB Plausible Cookieless analytics (Community Edition) PostgreSQL, plus a ClickHouse container berth container catalog berth container catalog install --subscription acme --app ghost --domain blog.example.com --path / Nextcloud and Matomo can also be installed as regular PHP applications with the software installer, which adds integrity checks and smart updates. Run your own image Add container takes an image, the port it listens on, and optionally memory and CPU limits, environment variables, named volumes, a command, a health check and a read-only root filesystem. Pull and start fetches the image and starts it. berth container add --subscription acme --name web --image docker.io/library/nginx:alpine \\ --port 80 --memory-mb 256 --volume data:/usr/share/nginx/html --read-only Volumes are named volumes; paths on the host cannot be mounted. Images are pinned to their digest when pulled, so a container never changes underneath you. Upload an image For an image that is not in a registry, use Upload own image with an archive from docker save, podman save or an OCI archive, then refer to it as localhost/<name>: berth container load --subscription acme --file myapp.tar berth container add --subscription acme --name myapp --image localhost/myapp:1.0 --port 8080 Health checks With a health check command, Podman runs it inside the container at an interval. A container that stays unhealthy is stopped and restarted by systemd. berth container set --subscription acme --name api --image ghcr.io/acme/api:2.3 --port 8080 \\ --health-cmd /app/healthcheck --health-interval 30 --health-retries 3 The command is given one argument per --health-cmd. container set restarts the container with all settings given again. Publish a container Publish makes a container reachable on an address of the subscription: the whole site of a domain (/), a path, such as /app/, or a subdomain of the subscription. If something already lives at that address, the panel asks to confirm (Publish anyway). The existing site is shadowed, not removed. When the container stops or fails, the address falls back to the original site, so visitors see the normal website rather than an error. berth container route add --subscription acme --name web --domain example.com --path /app/ berth container route remove --subscription acme --name web --id 7 Logs, terminal and databases Log → Watch live follows the container's output. Terminal opens a shell inside a running container. With Subscription databases reachable on, the container reaches the subscription's MariaDB and PostgreSQL databases at host name berth-host. berth container logs --subscription acme --name web --lines 200 berth container set … --databases on Updates and rollback After Pull the image again or a switch to another image, the panel remembers the previous version by digest. Back to the previous version restores it. With Update automatically on, the panel fetches a newer version of the same tag in the server's maintenance windows. If the container does not run afterwards, it goes back to the previous digest by itself. Choose a tag that only moves within a version you trust, such as :1.28 rather than :latest. berth container set --subscription acme --name web --image docker.io/library/nginx:1.28-alpine --port 80 --auto-update berth container rollback --subscription acme --name web berth container auto-update # run the round now, for all subscriptions Maintenance windows are described in OS updates and maintenance. Compose stacks A compose.yml with several services can be imported as a stack: one Quadlet pod per stack, with a container per service. The services share the pod and find each other by service name. Open Containers → Stack, paste the file under Compose file and check the preview, or use the CLI: berth container stack preview --subscription acme --file compose.yml berth container stack import --subscription acme --file compose.yml --name blog --var DB_PASSWORD=… --auto-update berth container stack update --subscription acme --name blog The file is read with compose-go, and anything Berth does not know is refused, not silently ignored. The preview lists exactly what Berth will create and what it refuses or ignores, with the reason: Refused: privileged, networkmode, pid, ipc, capadd, securityopt, devices, sysctls, build, envfile, secrets, configs, extends, volumes_from, access to the Docker or Podman API socket, and a few more. Build images elsewhere and pull them from an allowed registry; put values in environment. Ignored with a note: harmless keys that Berth handles itself, such as container_name, hostname, labels and logging (output goes to the panel's logs). Variables such as ${DB_PASSWORD} come only from what you pass with --var (or fill in on the page), never from the panel's own environment. If a stack import or update fails to start, the whole stack goes back to its previous state. Allowed registries The administrator decides which registries images may come from, for all customers, under Settings → Customers: berth container registries berth container registries --set docker.io --set ghcr.io --set quay.io Image vulnerability scanning When Check apps and containers is on in the vulnerability policy, the panel builds a software bill of materials (SBOM) for every container image and matches it against public vulnerability data, on the server itself. The policy New image with vulnerabilities decides what happens to a new image: warn: the image runs, and the daily round reports its vulnerabilities; refuse above the threshold: an image with vulnerabilities at or above the threshold (critical, or high and critical) is refused, as is one with a known exploited vulnerability. The policy is under Security → Vulnerabilities; see Vulnerability management. Disk quota and backups Images, volumes and whatever containers write count towards the package's disk space. When it is full, no new image can be pulled, and containers above the hard limit are stopped, with a notice on the page. Free space by removing unused images or volumes, or move to a larger package. Volumes are included in the subscription's backups. A removed container comes back when you restore the whole account. Containers for the server itself Everything above belongs to a subscription. A container that belongs to the server rather than to a customer, such as an internal dashboard or a webhook receiver, runs as a system app under System → System apps (berth sysapp). It also runs rootless, under its own user, and listens only on the server itself until an administrator publishes it on an address and port, or on a host name with its own certificate behind the panel. See system apps. Docker already on the server On a server that already runs Docker, existing containers can keep running next to Podman. System → Docker shows what Docker runs, with warnings in plain language, lets you start, stop and restart existing containers, and proposes a compose file per project to move it to a Berth stack. The Docker socket is used only by the root agent. berth docker inventory berth docker migrate # what can move and what Berth would refuse berth docker migrate --name shop # a compose file for berth container stack import"},{"s":"cron","l":"en","t":"Scheduled tasks (cron)","d":"Run a PHP script, fetch a URL or run a shell command on a schedule, inside the subscription's limits, never twice at once, with the result and output of the last runs.","c":"apps","g":["cron","scheduled tasks","crontab","php script","jobs"],"h":[["add-a-task","Add a task"],["three-kinds-of-task","Three kinds of task"],["php-script","PHP script"],["fetch-a-url","Fetch a URL"],["shell-command","Shell command"],["how-tasks-run","How tasks run"],["when-the-package-changes","When the package changes"],["results-and-output","Results and output"],["tasks-the-panel-manages-itself","Tasks the panel manages itself"],["tips","Tips"]],"x":"Scheduled tasks run something automatically at fixed times: a CMS's background jobs every quarter of an hour, a nightly export, a cleanup once a week. In Berth a task belongs to a subscription, runs as its system user within its resource limits, and keeps a log of its last runs so you can see whether it worked and what it printed. The package sets how many tasks a subscription may have (berth plan set … --max-cron). Add a task On the domain page, click Scheduled tasks, then Add task: Enter the schedule: five fields (minute, hour, day of month, month, day of week), for example /15 * for every quarter of an hour, or one of @hourly, @daily, @weekly. Choose what runs: a PHP script, a URL or a command (below). Optionally add a description, so you know later why the task exists. Click Add. Schedule Runs /15 * every 15 minutes 0 3 * every night at 03:00 30 6 1 Mondays at 06:30 0 0 1 the first day of every month at midnight @hourly, @daily, @weekly once an hour, a day, a week Three kinds of task PHP script A script in the webspace, for example httpdocs/cron.php, optionally with arguments. It runs with the PHP version, limits and environment of the domain you choose, exactly like the website does: the same php.ini values, the same environment variables and secrets. This is the right choice for almost every CMS or framework job. berth cron add --sysuser acme --domain example.com --schedule \"*/15 * * * *\" \\ --php-script httpdocs/cron.php --arg=--quiet --description \"Background jobs\" A PHP-script task can only be added for a domain that has PHP. Fetch a URL The panel requests an address over HTTP or HTTPS, the way a visitor would. This suits applications that expose a cron endpoint. Addresses on the server itself or in an internal network are only allowed for your own domains. berth cron add --sysuser acme --schedule \"@hourly\" --url https://example.com/cron/run Shell command Any command in the shell, for example a backup script or php8.3 artisan schedule:run. Tick Load the environment of … to give the command the same variables and secrets as a website. Commands are available only when the package allows shell access or lets PHP start processes; otherwise the choice is not offered. berth cron add --sysuser acme --schedule \"0 3 * * *\" \\ --command \"/var/www/vhosts/example.com/bin/export.sh\" --env-domain example.com How tasks run Tasks run as the subscription's system user and apply to all domains of the subscription. They run inside the subscription's resource slice, so CPU, memory and process limits of the package apply, and a runaway task cannot slow down other customers. A task never runs twice at the same time. If it is still running when its next turn comes, that turn is skipped. With the write lock on, tasks cannot write in the document roots, except in the writable exceptions. When the package changes If a package loses shell access (and PHP may not start processes), the panel suspends the subscription's command tasks instead of deleting them, with the reason shown at the task. They are kept and switch back on by themselves when the package allows them again. The same happens to a PHP-script task whose domain no longer has PHP. Results and output Each task shows its last run: succeeded or failed, when, how long it took, and on failure why, such as the exit code, a signal, or a message like \"HTTP 500\". Open Output of the last runs to see what the task wrote, stdout and stderr together. Berth keeps the last 10 runs per task: the last 16 KiB of output of the newest run, and the last 2 KiB of older ones. The beginning of a long output falls off. Output is not mailed; the log lives in the subscription's own folder and is removed together with the task. berth cron list --sysuser acme berth cron log --id 42 # the last runs of one task berth cron log --sysuser acme --runs 1 # the latest run of every task berth cron remove --id 42 Through the API, the same log is at GET /api/v1/cron/{id}/log; see REST API. Tasks the panel manages itself Some applications get their scheduler from the panel, so you do not need to add a task: Laravel: the scheduler (schedule:run every minute) and queue workers on the domain's Laravel page; see Node.js and Python apps. Nextcloud: background jobs through the system cron, set up at install. Matomo: archiving through cron every hour, set up at install. For long-running work that should not wait for a schedule, such as a queue consumer, use a background worker instead; see Node.js and Python apps. Tips Prefer a PHP script over a URL for CMS jobs: it does not depend on DNS, the certificate, the page cache or the per-visitor limits. Use absolute paths in commands. The working directory and PATH of a task are not those of an interactive shell. Make a task safe to run again. If a run fails halfway, the next run should pick up cleanly. Spread heavy nightly tasks over different minutes instead of starting them all at 0 0 *."},{"s":"mailboxes","l":"en","t":"Mailboxes, aliases and mail rules","d":"Switch mail on for a domain, create mailboxes with a quota, add aliases, a catch-all and domain aliases, set an autoresponder or forwarding, and use the mail catcher, mail log and mail queue.","c":"mail","g":["mail","mailbox","email account","alias","catch-all","autoresponder","forwarding"],"h":[["switching-mail-on-for-a-domain","Switching mail on for a domain"],["creating-a-mailbox","Creating a mailbox"],["quota","Quota"],["aliases-forwards-and-the-catch-all","Aliases, forwards and the catch-all"],["domain-aliases-with-mail","Domain aliases with mail"],["away-message-and-forwarding-per-mailbox","Away message and forwarding per mailbox"],["mail-catcher-for-test-sites","Mail catcher for test sites"],["mail-log-what-happened-to-a-message","Mail log: what happened to a message"],["mail-queue-administrator","Mail queue (administrator)"],["switching-mail-off","Switching mail off"]],"x":"Every domain in Berth can have its own mail: mailboxes with a quota, aliases and forwards, a catch-all, and per-mailbox rules for an away message or forwarding. This page covers the day-to-day work on the domain's mail page, the matching berth mail commands, and the tools for finding out what happened to a message. Mail runs on Postfix and Dovecot. Mailboxes are stored as Maildir under /var/qmail/mailnames/<domain>/<mailbox>, the same layout Plesk uses, so mail taken over from a Plesk server keeps its folders, flags and message UIDs. See On-disk layout. Switching mail on for a domain Mail is off for a new domain until you switch it on. Open the domain and go to the Mail tab. Click Enable mail for example.com. The panel creates a DKIM key and lists the DNS records the domain needs: MX, SPF, DKIM and DMARC, plus TLS-RPT. If the panel manages the DNS (on its own DNS server or through a linked provider) they are published for you; otherwise copy them to your DNS host from the card Mail DNS. Click Check the DNS records. The panel asks public resolvers and marks every record as correct, missing or weaker than recommended. berth mail enable --domain example.com berth mail status --domain example.com --check If the domain's MX already points somewhere else, the page says so before you switch mail on, and warns again if mail is on here while the MX points elsewhere: mail from outside would never arrive. For mail at Microsoft 365 or Google Workspace, leave mail off here and use the provider option instead. What each record does is explained in Mail authentication, and how records get published in DNS. Creating a mailbox On the Mail tab, click Add mailbox. Enter the part before the @: lowercase letters, digits, dot, hyphen, underscore or plus. Leave the password empty to let the panel generate a strong one, or choose your own of at least 12 characters. The password is shown once; copy it straight away. Optionally set a quota in MB. Click Add mailbox. berth mail account add --address info@example.com --quota-mb 2048 printf '%s\\n' \"$PW\" | berth mail account add --address sales@example.com --password-stdin Each mailbox in the list shows its message count, the space in use against its quota, and when and over which protocol (IMAP, POP3, SMTP) it last signed in. Open a mailbox for its settings. Under the mailbox you also find Mail log (that address's mail log), New password (berth mail account password --address …) and Delete…, which removes the mailbox and all its mail after a second confirmation. The package sets how many mailboxes a subscription may have and the default quota for new ones (berth plan set --max-mailboxes … --mailbox-quota-mb …, see Customers and packages). When the package is full, the form says so. Passwords are stored as SHA512-CRYPT hashes; hashes taken over from another panel keep working. Messages up to 50 MB are accepted. Quota The section Space of a mailbox holds its quota. An administrator can set 0 for unlimited; a customer can go up to what the package allows per mailbox. Dovecot enforces the quota: when a mailbox is full, new mail for it is refused already during the SMTP session, so the sending server reports it and this server sends no bounce. Mail is accepted again as soon as there is room, and the mail page shows a warning for mailboxes that are full or nearly full. The quota of an existing mailbox is changed in the panel or through the API (PATCH /api/v1/domains/{name}/mail/accounts/{local}). Aliases, forwards and the catch-all An alias is an address without its own mailbox: mail to it goes on to one or more other addresses, on this server or elsewhere. Under Aliases and forwarding, go to Add alias. Enter the address, and one or more targets, one per line. Leave the address empty for a catch-all: every unknown address at the domain then goes to the targets. berth mail alias add --domain example.com --local sales --target anna@example.com --target bob@example.nl berth mail alias add --domain example.com --local \"\" --target info@example.com # catch-all berth mail alias remove --domain example.com --id 12 Forwards to outside addresses count towards the subscription's outbound budget, like any other mail that leaves the server. Domain aliases with mail A website alias (for example example.nl as an alias of example.com) can also receive the main domain's mail. Mail to info@example.nl then lands in the mailbox info@example.com, and that mailbox may also send as info@example.nl. Unknown addresses are refused, and the main domain's catch-all also applies to the alias. Open More settings → Domain aliases with mail, pick the alias and click Enable mail for this alias. The card lists the DNS records the alias needs. Add the website alias itself first on the domain page. berth mail alias-domain --domain example.com --alias example.nl berth mail alias-domain --domain example.com --alias example.nl --remove Away message and forwarding per mailbox Each mailbox has a section Away and forwarding. The panel turns it into a Sieve script that Dovecot runs on delivery. Away message: switch on Reply automatically, fill in subject and text, and optionally a last day. Each sender gets at most one reply per day, so two autoresponders never answer each other in a loop. Forwarding: one or more addresses, one per line. Keep Also keep a copy in this mailbox on to keep the mail as well. Click Save rules. From the command line, calling rules without flags switches everything off: berth mail account rules --address info@example.com --autoreply \\ --subject \"Out of office\" --body \"Back on Monday.\" --until 2026-12-31 berth mail account rules --address info@example.com --forward anna@example.nl --keep Replies and forwarded mail are sent with the mailbox as envelope sender and count towards the outbound budget. The same mailbox page also has the per-mailbox spam filter and an OpenPGP key. Mail catcher for test sites On a staging site or during development you rarely want real customers to receive test mail. The Mail catcher, linked from the domain page, catches mail that the website sends through PHP (mail(), WordPress, Laravel, Symfony) and stores it instead of delivering it. Click Catch mail to switch it on. Caught messages appear in a list with sender, recipient and subject, and you can open each one with its headers and text. The newest 500 are kept; Remove all clears them. Send mail again switches the catcher off. See also Staging. Mail log: what happened to a message The Mail log tab of the mail page shows, per domain or per address, what happened to mail: delivered, deferred or refused, and who signed in. Lines that belong to the same message are merged, so you see one entry per message instead of a page of raw log lines. You can look back up to 30 days, and search for an address. Customers see only their own domains. berth mail log example.com --hours 48 berth mail log example.com --address info --hours 720 Mail queue (administrator) Admin → Mail queue lists mail that has not been delivered yet, with the reason. You can retry, hold, release or delete single messages, retry everything, or delete all deferred messages at once. The same page shows which mailboxes and subscriptions sent the most mail in the last hour; that part is described in Outbound mail. berth mail queue berth mail queue --retry 4F2A91C03B --hold 7D11E2A9F0 berth mail queue --flush Switching mail off At the bottom of the mail page, Danger zone → Disable mail takes the domain's mailboxes and aliases out of the configuration. The mail itself stays on disk, so switching mail on again brings it back. An administrator can also remove the content: berth mail disable --domain example.com # mail stays on disk berth mail disable --domain example.com --purge # also delete the Maildirs Backups include every mailbox; to get back a single mailbox or folder, see Restoring data."},{"s":"mail-authentication","l":"en","t":"Mail authentication: SPF, DKIM, DMARC, MTA-STS and DANE","d":"How Berth signs and protects a domain's mail with SPF, DKIM and DMARC, reads DMARC and TLS-RPT reports, moves DMARC to reject in one click once at least 98 % of mail passes, and adds MTA-STS, DANE and OpenPGP keys via WKD.","c":"mail","g":["spf","dkim","dmarc","dane","mta-sts","tls-rpt","deliverability"],"h":[["the-records-berth-recommends","The records Berth recommends"],["how-the-records-get-published","How the records get published"],["dkim","DKIM"],["dmarc-the-reports-and-moving-to-reject","DMARC, the reports and moving to reject"],["reading-the-reports","Reading the reports"],["one-click-reject","One-click reject"],["tls-rpt","TLS-RPT"],["mta-sts","MTA-STS"],["dane","DANE"],["inbound-tlsa-records-for-this-server","Inbound: TLSA records for this server"],["outbound-checking-other-servers","Outbound: checking other servers"],["openpgp-and-wkd","OpenPGP and WKD"],["what-is-not-included","What is not included"]],"x":"Receiving mail servers decide whether to trust your mail based on a handful of DNS records: SPF says which servers may send for the domain, DKIM signs each message, and DMARC tells receivers what to do when both fail. MTA-STS, TLS-RPT and DANE do the same for the encrypted connection between mail servers. Berth sets all of these up when you switch mail on, publishes them where it can, and reads the reports that come back so you can tighten the policy with confidence. The records Berth recommends When you switch mail on, the card Mail DNS on the domain's Mail tab lists these records: Record Name What it does MX example.com Incoming mail arrives at this server. SPF (TXT) example.com v=spf1 mx ~all: only the servers in the MX record may send for the domain. DKIM (TXT) berth._domainkey.example.com The public half of the domain's signing key. DMARC (TXT) _dmarc.example.com v=DMARC1; p=quarantine; rua=mailto:dmarc-rapport@example.com TLS-RPT (TXT) smtp.tls.example.com v=TLSRPTv1; rua=mailto:tlsrpt-rapport@example.com When the panel has HTTPS, an autodiscover SRV record for Outlook is added (see Webmail and mail clients), and with the domain's own mail hostnames switched on, the _mta-sts TXT record joins them (see MTA-STS below). When a subscription sends from its own outbound IP address, the recommended SPF record includes that address. Check the DNS records compares every record with what public resolvers return. It also catches the classic mistakes: two SPF records or two DMARC records (receivers then ignore all of them), or an existing record that is weaker than the recommendation. berth mail status --domain example.com --check How the records get published Berth handles DNS in three ways, which you can mix per domain (details in DNS): DNS on this server. The zone on Berth's own BIND server always contains the mail records; you don't have to do anything. Through a DNS provider's API (Cloudflare, TransIP, Hetzner, deSEC, OXXA, Route 53, DigitalOcean, or your own nameserver over RFC 2136). The panel writes MX, SPF, DKIM, DMARC, MTA-STS and autodiscover and leaves your other records alone. When an SPF or DMARC record already exists, it is merged rather than replaced, and the stricter existing DMARC policy is kept. DNS elsewhere. The panel shows the records to copy, each with a copy button, and checks them on request. DKIM Every mail domain gets its own 2048-bit RSA key, created when mail is switched on. All outgoing mail for the domain is signed with this key (by rspamd, or by OpenDKIM on servers without the spam filter), but only when the sender is entitled to the domain: the From: domain must match the envelope sender and, for mail sent with a login, the authenticated mailbox. A site or mailbox of one subscription can never get mail signed with another subscription's domain; see outbound mail. New domains use the selector berth; domains taken over from another server keep their existing selector and key, so mail keeps verifying during and after a migration. The private key is part of the subscription's backup, so a restored or migrated domain signs with the same key. DMARC, the reports and moving to reject The recommended DMARC record starts at p=quarantine: mail that fails both SPF and DKIM alignment goes to the receiver's spam folder. The record asks receivers for daily aggregate reports, which arrive at dmarc-rapport@<domain> and are read by the panel itself. Reading the reports The Reports tab of the mail page, titled DMARC and TLS reports, shows for the last 7, 30 or 90 days or the whole year: the share of mail that passes DMARC, and the policy receivers saw; every source (IP address) that sent mail as your domain, with the service name where it is recognised, how much of its mail passed, and what the receiver did with mail that failed (delivered anyway, spam folder, refused); which organisations sent reports (Google, Microsoft and others); advice, for example which source to add to SPF or sign with DKIM before you tighten the policy. When the pass rate drops sharply, the administrators get an alert. A package can be set to warn the customer as well (berth plan set … --notify-customer). berth mail-reports show --domain example.com --days 30 berth mail-reports import # read newly arrived reports now One-click reject p=reject tells receivers to refuse spoofed mail outright, which is what you want once you know all your legitimate mail passes. The domain's Internet.nl tab checks the domain against the standards that internet.nl tests, and its DMARC item has a fix button: To p=reject, or Fix when there is no valid policy yet. The panel only sets reject when the reports of the last 30 days show that at least 98 % of the domain's mail passes DMARC. Below that it sets quarantine and the reports page tells you which sources still fail. berth domain internetnl --domain example.com berth domain internetnl --domain example.com --fix dmarc The fix changes the record on the panel's own DNS server or at a linked provider. With DNS elsewhere, the page shows the record to set. TLS-RPT TLS-RPT (RFC 8460) asks sending servers to report whether they managed to deliver to your server over an encrypted connection. The reports arrive at tlsrpt-rapport@<domain> and appear on the same Reports tab: the share of encrypted connections and, per sending server, the outcome. A sudden failure there usually points to a certificate or DANE problem. MTA-STS MTA-STS (RFC 8461) lets senders that cannot check DNSSEC still insist on an encrypted connection with a valid certificate. Berth serves the policy at https://mta-sts.<domain>/.well-known/mta-sts.txt when the domain's own mail hostnames are switched on: card Mail under the domain's own name on the mail page, or: berth mail hosts --domain example.com --on The policy names the server's mail hostname (and mail.<domain> when that is on) as the allowed MX. It starts in testing mode and moves to enforce only once the mail hostname has a publicly trusted certificate, so a self-signed or test certificate never causes senders to refuse delivery. The _mta-sts.<domain> TXT record carries an id that changes whenever the policy changes, so senders fetch the new version. DANE DANE (RFC 7672) ties the mail server's certificate to DNSSEC-signed TLSA records, so a sender can verify it is talking to the right server without trusting any certificate authority. Inbound: TLSA records for this server The panel publishes TLSA records of type 3 1 1 on 25.tcp.<mailhost> when it manages the zone (its own DNS server or a linked provider). Switch it on in the card DANE for the mail server on the DNS providers page, or: berth dns dane --on The records cover the current key and the next one. A certificate with the next key is only requested once its TLSA record has been in DNS, validated, for at least two days, so a key rollover never breaks delivery for senders that cache the old record. DANE requires DNSSEC on the zone; without it, senders ignore the records. Outbound: checking other servers For mail it sends, Postfix uses DANE where the receiving domain publishes TLSA records. That needs a local DNSSEC-validating resolver; Berth installs unbound for this unless you install with --no-resolver. OpenPGP and WKD A mailbox can publish a public OpenPGP key. Open the mailbox on the mail page, section Encrypt (PGP), choose Add public key, paste the key and click Publish key. Never paste a private key. The key is published through the Web Key Directory (WKD), at openpgpkey.<domain> or directly on the domain, so Thunderbird, GnuPG and Mailvelope find it by themselves when someone writes to that address. Optionally the server can encrypt all incoming mail for the mailbox with that key on arrival, as PGP/MIME, before it is stored: Turn on encryption. Sender and subject stay visible; the content can then only be read with the private key, for example in Thunderbird, FairEmail or Mailvelope, and searching message bodies on the server no longer works. berth mail account pgp --address anna@example.com --file anna.asc berth mail account pgp --address anna@example.com --encrypt on berth mail account pgp --address anna@example.com --remove What is not included BIMI and SRS are not part of Berth. ARC headers on incoming mail are checked by the spam filter, but Berth does not add its own ARC signature when forwarding."},{"s":"spam-and-antivirus","l":"en","t":"Spam filter and mail antivirus","d":"How rspamd filters incoming mail into Junk or refuses it, what each mailbox can tune (strictness, trusted and blocked senders, a subject tag, auto-block on \"mark as spam\"), and how virus scanning and dangerous-attachment blocking work.","c":"mail","g":["spam","rspamd","junk","antivirus","clamav","attachments","blocklist"],"h":[["how-filtering-works","How filtering works"],["spam-settings-per-mailbox","Spam settings per mailbox"],["auto-block-on-mark-as-spam","Auto-block on \"mark as spam\""],["virus-scanning-of-mail","Virus scanning of mail"],["dangerous-attachments","Dangerous attachments"],["protection-of-the-mail-ports","Protection of the mail ports"],["related","Related"]],"x":"Every message that reaches a Berth server passes through a spam filter before it is delivered, and optionally through a virus scanner. Suspicious mail lands in the mailbox's Junk folder; mail that is clearly spam or carries something dangerous is refused while the sending server is still connected, so the sender gets the error and nothing is silently lost. This page explains what happens by default and what each mailbox can adjust. How filtering works Berth uses rspamd as a milter in Postfix. For each incoming message it weighs the content, the sending server's reputation and the sender authentication: SPF, DKIM, DMARC and ARC are all checked on arrival. The outcome is one of three: Normal mail is delivered to the inbox. Suspicious mail is marked as spam and Dovecot files it in the mailbox's Junk folder on delivery. The user can still find it there, and webmail and mail programs show it like any other folder. Certain spam is refused during the SMTP session. The sending server keeps the message and tells its own user, so Berth never has to send bounce messages for mail it did not want. The sending domain's DMARC policy is enforced: mail that fails DMARC for a domain with p=reject is refused during the SMTP session, and with p=quarantine it goes to Junk. Mail that pretends to come from a domain hosted on this server, without passing SPF or DKIM for it, is also filed as spam, even when that domain has no DMARC policy; it lands in Junk rather than being refused, so a forwarded message from a colleague can still be found. Mail sent by logged-in users of this server is not affected. Greylisting is deliberately off: it delays legitimate first contacts by minutes and adds little against today's spam. Spam filtering is a separate component (spam). It is installed by default and can be left out with berth install --no-spam; without it, mail is not filtered at all. Spam settings per mailbox Open a mailbox on the domain's Mail tab; the section Spamfilter holds its own settings. Without changes, a mailbox uses the server defaults. Threshold: make the filter stricter or more lenient for this mailbox. A stricter setting sends more mail to Junk; the server's limit for refusing certain spam stays the same. Trusted senders: addresses or whole domains whose mail never goes to Junk, one per line. A trusted sender always wins over a block. Blocked senders: a separate page per mailbox where you add, search and remove blocked addresses or domains. Mail from a blocked sender always goes to Junk. The list shows where each entry came from: added by hand, taken over from the old server, or added after \"mark as spam\". Subject tag: optional text placed before the subject of spam, such as ***SPAM***, handy for a filter rule in a mail program. The tag is added per mailbox on delivery, so one recipient's setting never changes the subject for others. The message still goes to Junk. Block the sender when I mark a message as spam: see below. berth mail account spam --address info@example.com # show berth mail account spam --address info@example.com \\ --allow partner.example.nl --block offers@example.net \\ --subject-tag '*****SPAM*****' berth mail account spam --address info@example.com --unblock offers@example.net berth mail account spam --address info@example.com --clear # back to defaults The --allow and --block flags replace the list; --unblock removes single entries and keeps the rest. When a server is migrated from Plesk, cPanel or DirectAdmin, each mailbox's SpamAssassin preferences are taken over: trusted and blocked senders, the threshold and the subject tag. Rules that cannot be translated are listed rather than silently dropped. See Migrating a server. Auto-block on \"mark as spam\" With Block the sender when I mark a message as spam switched on (it is off by default), moving a message to Junk adds its sender to the mailbox's blocked senders. It works with the Spam button in webmail and with any mail program that moves the message to the Junk folder over IMAP. A sender is only added when the server could confirm on arrival that the address really belongs to the sending domain. Spam with an invented or forged sender blocks nobody; otherwise innocent people whose addresses were abused would end up on your list. The new entry appears within a few minutes and can be removed again on the blocked senders page. berth mail account spam --address info@example.com --auto-block berth mail account spam --address info@example.com --auto-block=false Virus scanning of mail When the component Mail antivirus is installed, rspamd hands every incoming message to ClamAV's daemon, clamd. A message with a virus is refused during the SMTP session, with the name of the detection in the error the sender sees. clamd keeps its virus definitions in memory, about 1 GB. On a new installation the mail scan is switched on when clamd already runs for the upload scan or the realtime malware scan of the webspaces, so it costs no extra memory there. Otherwise add it yourself in System → Software or: berth component install mail-antivirus berth install --reconfigure --mail-antivirus # the same, during a reconfiguration The same ClamAV installation scans websites and uploads; see Malware scanning. Dangerous attachments Independently of the virus scan, rspamd refuses mail with an attachment of a type that Windows runs on a double-click or that bypasses its warnings for files from the internet: programs and installers (such as .exe, .scr, .msi), scripts (.js, .vbs, .ps1), shortcuts (.lnk) and disk images (.iso, .img). The check looks inside archives such as zip, rar and 7z, and catches double extensions like invoice.pdf.exe. The sender gets a refusal that explains why and suggests sharing the file through a download link instead. The rule applies to outgoing mail from mailboxes on the server as well, so a hijacked mailbox cannot spread malware from your IP address. Protection of the mail ports The mail services themselves are protected against abuse: IMAP, POP3, submission and ManageSieve limit how many connections one IP address (or one IPv6 /64 network) may hold and open, so one client cannot exhaust the server for everyone. An administrator can exempt trusted networks, such as an office behind one NAT address: berth mail conn-trusted --set 192.0.2.0/24,2001:db8::/48. Login attempts are rate-limited, and repeated failures from an address are temporarily blocked, including failed logins in webmail. See Firewall and bans. Authentication is only accepted over TLS, and a logged-in user may only send as their own address or an alias of it (see Outbound mail). Related Mail authentication: SPF, DKIM and DMARC for your own outgoing mail. Outbound mail: what stops a compromised site or mailbox from sending spam. Mailboxes: the mail log shows whether a message was refused, deferred or delivered."},{"s":"outbound-mail","l":"en","t":"Outbound mail and abuse protection","d":"One outbound budget per subscription across every way mail can leave the server, the mail gate in front of PHP's mail(), port 25 closed for sites, per-mailbox limits, an outbound IP address per subscription, and why the sender must match the login.","c":"mail","g":["outbound mail","sending limit","php mail","sendmail","smtp","blacklist","ip reputation"],"h":[["one-budget-per-subscription","One budget per subscription"],["php-mail-and-the-mail-gate","PHP mail() and the mail gate"],["direct-sendmail","Direct sendmail"],["port-25-is-closed-for-sites","Port 25 is closed for sites"],["settings-on-the-mail-queue-page","Settings on the mail queue page"],["limits-per-mailbox-and-per-domain","Limits per mailbox and per domain"],["the-sender-must-match-the-login","The sender must match the login"],["an-outbound-ip-address-per-subscription","An outbound IP address per subscription"],["during-a-migration","During a migration"]],"x":"On a shared server, the reputation of the outgoing IP address belongs to everyone. One hacked contact form or one stolen mailbox password can get that address on blocklists within an hour, and then nobody's mail arrives at Gmail or Microsoft. Berth is built so that a single subscription cannot do that: all mail that leaves the server is counted against one budget per subscription, and mail that does not fit is refused before it ever enters the queue. And if mail stops leaving the server or its address lands on a blocklist anyway, Berth notices it by itself; see mail delivery checks. One budget per subscription Every subscription has one hourly budget for recipients outside the server. It is shared by every path mail can take: PHP's mail() from the subscription's websites; mailboxes sending through SMTP submission (on top of their own per-mailbox limit); forwards and aliases pointing to outside addresses, where each external target counts; away messages and forwarding rules from Sieve; direct use of sendmail from scripts, cron jobs or SSH sessions; mailing lists, which ask for room for all members before a message is sent. When the budget is used up, the server answers with a temporary refusal. A mail program, Dovecot or the sending script tries again later, and once the hour has moved on the mail goes out; nothing is silently dropped. The administrator and, where applicable, the customer get a notification, because a subscription at its limit is often a misused form or a compromised site. The size of the budget is set per package (berth plan set … --mail-per-hour), can be adjusted per subscription, and has a server-wide default for packages that don't set one. All of these are configurable; -1 means unlimited. PHP mail() and the mail gate Whether a site may use PHP's mail() at all is a package setting: berth plan set … --php-mail. It is off by default. Sites can always send through SMTP with a mailbox and password, for example with the WP Mail SMTP plug-in or PHPMailer, and that is the recommended way. When mail() is allowed, it does not hand mail straight to Postfix. PHP's sendmailpath points to a small wrapper that passes the message to the mail gate**, a separate process the customer cannot reach. The gate identifies the calling subscription by the kernel's credentials of the connection, not by anything the script claims, counts the message against the budget, and: refuses it before it reaches Postfix when it does not fit, so mail() returns false and the site sees the error; otherwise sets the subscription's sender and a header identifying the subscription, and delivers it to Postfix. If the message's From: names a domain that belongs to another subscription on this server, the gate replaces it with the subscription's own sender and keeps the original address as Reply-To. An outside address, such as a visitor's address in a contact form, is left alone. If the gate itself is unavailable, mail() returns a temporary error. Uncounted mail never slips through, and the mail queue page shows that the gate is not responding. Direct sendmail Scripts that call sendmail directly (through exec, from cron or from an SSH session) also pass through the gate before anything leaves the server: they are attributed to the subscription, counted in the same budget and held in the queue when over it. An administrator who wants to close this path completely can choose strict mode: then only mail() from the PHP pool works, and scripts in cron or SSH must send through SMTP on port 587. Strict mode is off by default because many cron scripts use mail(). Port 25 is closed for sites Websites, apps and containers cannot speak SMTP on port 25, neither to the local server without logging in nor directly to other mail servers. Without that rule, mail could bypass both authentication and the budget. Sites send through mail() or through a mailbox on port 587. When a site really needs it, as on Plesk, an administrator can open it for the server. Mail sent that way is outside the budget, so use it only when you must. Settings on the mail queue page All of this is managed on Admin → Mail queue, which next to the queue itself shows: Outbound mail per subscription: per subscription, how many messages and recipients went out in the last hour, split into mail(), forwarded, SMTP and lists, and how many were refused. Reset counter clears a subscription's count; Re-enable lifts a stop on direct sendmail. The switches Site mail() goes through the mail gate (on by default), Subscriptions may not use sendmail directly (strict mode) and Sites may use SMTP on port 25 themselves (open port 25 for sites). Mailboxes via SMTP: the busiest mailboxes of the last hour, with their limit. berth mail local # show the state berth mail local --per-hour 300 # server default per subscription berth mail local --strict # only mail() from the PHP pool berth mail local --site-smtp=false # keep port 25 closed for sites berth mail local --unblock acme # re-enable sendmail for subscription acme berth mail local --check # count now Limits per mailbox and per domain Mailboxes have their own hourly limit for mail sent through SMTP, so a stolen password cannot use a mailbox as a spam cannon. Above it, the mail program gets a temporary refusal and the administrator gets a notification. The limit has a server default, can be changed per domain under More settings → Outbound limit on the mail page, and per mailbox in the mailbox's own section. berth mail limit --domain example.com # show berth mail limit --domain example.com --per-hour 200 # per domain berth mail limit --domain example.com --address info --per-hour 1000 # one mailbox berth mail limit --default 250 # server default The sender must match the login A mailbox that logs in over SMTP may only send as its own address or one of its aliases (including the same name at a domain alias with mail). Relaying without logging in is refused, and authentication is only accepted over TLS. Outgoing mail is signed with the domain's DKIM key only when the sender matches the login or the sending subscription (see Mail authentication). A site or mailbox can only send under the domains of its own subscription. Mail that claims to come from another customer's domain is not signed with that domain's DKIM key, and its sender is replaced, so one customer can never send mail that passes as another's. Mail from mail() gets the subscription's own sender, and Sieve forwards and away messages are sent with the mailbox as envelope sender. That keeps SPF aligned at the receiving end. An outbound IP address per subscription By default all mail leaves from the server's main address. Two options give a subscription its own reputation: A subscription with its own IP address for its sites can send its mail from that address as well (berth mail own-ip). The card Own IP address per subscription on the mail queue page shows each one, whether it is active, and the result of its checks. A separate outbound address without its own IP for the sites: under Mail queue → Outbound address, or berth mail outbound --sysuser … --ipv4 … --ipv6 …. The same page sets the address and HELO name for the whole server. The HELO name follows the address's PTR record when that points back, otherwise the server's mail hostname. Receivers such as Gmail and Microsoft refuse mail from an address without a matching PTR, or whose SPF record doesn't include it, so the panel checks both regularly and on request: berth mail own-ip --check berth mail own-ip --sysuser acme --on berth mail outbound --check The PTR record is set by whoever controls the IP range, usually your hosting provider. The SPF record is managed by the customer, or by the panel when it manages the DNS. During a migration When Berth takes over a server, it can send from the old server's address and under its name, so receivers see no change, and it can relay mail for selected domains back to the source server during a rollback (berth mail relay). See Migrating a server."},{"s":"webmail-and-mail-clients","l":"en","t":"Webmail and mail clients","d":"Roundcube webmail on webmail.<domain> in the customer's brand, the mail. and webmail. hostnames with certificates, automatic setup for Thunderbird and Outlook, and the manual settings with the standard ports.","c":"mail","g":["webmail","roundcube","imap","smtp","outlook","thunderbird","autodiscover"],"h":[["webmail-with-roundcube","Webmail with Roundcube"],["webmail-never-runs-on-the-panel-s-address","Webmail never runs on the panel's address"],["webmail-in-your-own-brand","Webmail in your own brand"],["mail-and-webmail-on-the-customer-s-own-domain","mail. and webmail. on the customer's own domain"],["automatic-setup-in-mail-programs","Automatic setup in mail programs"],["manual-settings","Manual settings"],["when-something-does-not-work","When something does not work"]],"x":"Mailboxes on a Berth server can be read in the browser with Roundcube, or in any mail program over IMAP or POP3. This page explains where webmail lives and why, how to give each domain its own mail. and webmail. names, how mail programs configure themselves, and which settings to use when they don't. Webmail with Roundcube Berth installs Roundcube with the elastic skin and the managesieve, zipdownload and markasjunk plugins. Users log in with their full e-mail address and the mailbox password. The Spam button moves a message to Junk and, if the mailbox has auto-block switched on, blocks the sender. The Mail tab of a domain has a Webmail button, and the card Mail program has Open webmail. Both go to the right address for that domain. Webmail is a separate component; install without it with berth install --no-webmail. Webmail never runs on the panel's address Roundcube always has its own hostname and never runs under the panel's address. A flaw in webmail, such as a cross-site scripting bug, therefore cannot reach the panel session of whoever is looking at it: the browser treats them as different origins, the panel's cookies are never sent to webmail, and strict security headers keep webmail out of frames. Roundcube also runs as its own system user, separate from the web server and from every subscription. Address Who uses it webmail.<domain> Customers, once switched on for the domain and covered by its certificate. webmail.<panel name> The administrator, and the fallback for domains without their own webmail name. The server's webmail name defaults to webmail. in front of the panel name. To set it, add an A record (and AAAA if the panel has IPv6) pointing to the panel's address. The panel checks the DNS regularly and requests a Let's Encrypt certificate by itself as soon as the name points here. Until then, the card Webmail on its own name under Settings shows the record that is missing. berth panel webmail-host # show, with the DNS records needed berth panel webmail-host webmail.panel.example.nl berth panel webmail-host --check # check the DNS again now Old bookmarks to /webmail/ on the panel redirect to the new name. Webmail in your own brand Roundcube shows the brand the customer sees in the panel: the name, the logo and the help-desk link of their reseller, of your platform, or of Berth. Each webmail hostname gets its own brand, so customers of two resellers on the same server each see their own. Brands are set up under Settings → Branding; see Resellers and white label. mail. and webmail. on the customer's own domain Customers coming from Plesk often have mail.example.com in their mail program and open webmail at webmail.example.com. Berth supports the same names, with a certificate so mail programs never show a warning. Point the names you want to the server in DNS: an A record (and AAAA) for mail.example.com and webmail.example.com. When the panel manages the domain's DNS, it does this itself. On the domain's Mail tab, open More settings → Mail under the domain's own name and click Switch on. The panel requests the domain's certificate again, now including these names. The card shows which names the certificate covers. berth mail hosts --domain example.com --on berth mail hosts --domain example.com # show berth mail hosts --domain example.com --off The same switch serves mta-sts.example.com for the MTA-STS policy and openpgpkey.example.com for OpenPGP keys. During a migration, an administrator can skip the DNS check (--skip-dns-check) while the old server's address is still being taken over. Automatic setup in mail programs Thunderbird, Outlook and most mobile mail apps can configure themselves from just the e-mail address and password. Berth answers both common methods, and only for domains that have mail on this server: Autoconfig (Thunderbird and others): the program asks the domain's website for /.well-known/autoconfig/mail/config-v1.1.xml; the site passes it on to the panel. Autodiscover (Outlook): the program asks for /autodiscover/autodiscover.xml, or finds the panel through the SRV record autodiscover.tcp.<domain>. The panel adds that record to the recommended mail DNS when the panel itself has HTTPS, so autodiscover also works when the website has no HTTPS or is hosted elsewhere. Both return the server name for the domain: mail.<domain> when that name is on and covered by the certificate, otherwise the server's mail hostname. Apple configuration profiles (.mobileconfig) are not provided; on iPhone and Mac, enter the settings below. Manual settings When a program does not find the settings itself, use these. The exact server name is shown on the domain's mail page in the card Mail program. Setting Value Username The full e-mail address Password The mailbox password Incoming, IMAP server name from the mail page, port 993, SSL/TLS Incoming, POP3 server name from the mail page, port 995, SSL/TLS Outgoing, SMTP server name from the mail page, port 465, SSL/TLS, with password STARTTLS also works on port 143 (IMAP), 110 (POP3) and 587 (SMTP submission). Only TLS 1.2 and newer is accepted, and the server never accepts a password over an unencrypted connection. A mailbox can only send as its own address or one of its aliases; see Outbound mail. IMAP folders use the Plesk-compatible namespace INBOX. with . as separator, so folders keep their names when mailboxes move from Plesk. When something does not work Login fails: use the full address as username, and reset the password with New password on the mailbox if needed. Repeated failures from one address are temporarily blocked. Certificate warning: the program uses a name the certificate does not cover. Use the server name from the mail page, or switch on mail.<domain> as above. Mail does not arrive: check the domain's Mail log tab and the DNS check on the mail page; see Mailboxes."},{"s":"mailing-lists","l":"en","t":"Mailing lists","d":"Berth's built-in list server: one address that reaches all members, with confirmed sign-up, one-click unsubscribe, four posting policies, moderation, an archive, bounce handling and DMARC-safe sending.","c":"mail","g":["mailing list","newsletter","list server","moderation","unsubscribe","mailman alternative"],"h":[["creating-a-list","Creating a list"],["settings","Settings"],["posting-policies","Posting policies"],["the-list-s-addresses","The list's addresses"],["members","Members"],["moderation","Moderation"],["archive","Archive"],["how-sending-works","How sending works"],["removing-a-list","Removing a list"]],"x":"A mailing list is one address that delivers to all its members: a newsletter, a club, a project team. Berth has a small list server of its own, built into the panel, so you don't need Mailman or an outside service for the common cases. Members sign up and leave by themselves, owners approve what needs approving, and every message is sent in a way that receivers' DMARC checks accept. Lists belong to a mail domain, so mail must be switched on for the domain first (see Mailboxes). Creating a list Open the domain, go to the Mail tab and then Mailing lists. Under Create list, enter the name: the part before the @, such as club or news. Fill in the settings below and create the list. berth lists create --domain example.com --name club --owner anna@example.com \\ --description \"Tennis club\" --policy members --prefix \"[club]\" berth lists show --domain example.com berth lists show --domain example.com --name club Settings Setting Meaning Description The list's display name. A message arrives as \"Anna via Tennis club\", from the list address. Owners One or more addresses. Owners may always post and get a notification when a message waits for approval. Who may post See the four policies below. Prefix Text before the subject, such as [club]; empty for none. Replies go to The author or the whole list. Largest message Size limit in KB, 5120 by default. Keep sent messages Keep an archive, readable in the panel only. berth lists update sets all settings at once and needs --owner. Posting policies Policy CLI Who can post Members members Members post directly; messages from others wait for approval. Everyone, after approval moderated Everything waits for approval, except from owners. Owners only announce A newsletter: only owners post. Everyone open Anyone may post; messages that look like spam wait for approval. The list's addresses Each list has a set of addresses you can put on a website or in a message. Signing up and leaving work without the panel: Address What it does club@example.com Post to the list, according to its policy. club-join@example.com Sign up. The sender gets a confirmation mail and becomes a member only after confirming. club-leave@example.com Leave. Also with confirmation. club-owner@example.com Reaches the owners. Every message to a member carries List-Id, List-Unsubscribe and List-Unsubscribe-Post headers, so Gmail, Outlook and Apple Mail show an unsubscribe button. That button uses one-click unsubscribe as described in RFC 8058: a signed link to a public page of the panel, which needs no login. Confirmation links for signing up and leaving also open a public page with a single button. Members On the list's page you see its members and can search, add and remove them. Add members: one per line, as an address or Name <address>. Keep Send a confirmation mail first on: each new member then confirms, which also gives you the consent the GDPR asks for. Customers can add a modest number of members directly to move an existing list over; beyond that every new member gets a confirmation mail, so a list cannot be turned into a way to mail thousands of strangers. Remove takes a member off the list. berth lists add --domain example.com --name club --invite anna@example.nl \"Bob <bob@example.org>\" berth lists add --domain example.com --name club --invite --file members.txt berth lists members --domain example.com --name club berth lists remove-member --domain example.com --name club --email bob@example.org Moderation Messages that need approval appear under Awaiting approval on the list's page. Open one to read it, then Send or Discard. Discarding sends nothing back to the author, because the sender of spam is usually forged. A message that nobody handles expires after 14 days. berth lists held --domain example.com --name club berth lists approve --domain example.com --name club --id 41 berth lists reject --domain example.com --name club --id 42 Archive With Keep sent messages on, sent messages are kept in the list's archive, readable on the list page in the panel. The archive is not published on the web. berth lists archive --domain example.com --name club berth lists archive --domain example.com --name club --id 17 How sending works DMARC-safe From. Receivers check DMARC against the From address. Forwarding a member's message with their own From would fail at Gmail or Microsoft when their domain has a strict policy. Berth therefore rewrites the sender to \"Name via List\" at the list address, sets Reply-To to the author when replies go to the author, and signs the message with the list domain's DKIM key. One envelope sender per member (VERP). Each copy goes out with its own bounce address, so a delivery failure is attributed to exactly the right member. After repeated permanent failures a member is paused; the count starts again after a quiet period without failures. Loops and auto-replies. Automatic replies (out-of-office messages and the like) and the list's own messages coming back are recognised and dropped, so two systems never answer each other in a loop. The outbound budget. Lists count towards the subscription's outbound budget. Before sending, the panel checks there is room for all members. If not, the message waits with that reason, and approving it is only possible once there is room again. The list server runs inside the panel: Postfix hands mail for the list addresses to the panel, which processes it within seconds and sends the copies through the local Postfix. Removing a list Danger zone → Delete list on the list's page removes the list with its members, waiting messages and archive; you confirm by typing the list address. berth lists remove --domain example.com --name club"},{"s":"mail-import-and-external-providers","l":"en","t":"Importing mail and using Microsoft 365 or Google Workspace","d":"Pull mail from Gmail or an old host into a Berth mailbox over IMAP through a fair per-customer queue, or move a domain's mail to Microsoft 365 or Google Workspace in one step with all DNS records set for you.","c":"mail","g":["mail import","imap","gmail","microsoft 365","google workspace","office 365","mx"],"h":[["importing-a-mailbox-over-imap","Importing a mailbox over IMAP"],["before-you-start","Before you start"],["starting-an-import","Starting an import"],["the-import-queue","The import queue"],["mail-at-microsoft-365-or-google-workspace","Mail at Microsoft 365 or Google Workspace"],["which-records-are-set","Which records are set"],["what-happens-to-the-old-mailboxes","What happens to the old mailboxes"],["mx-warnings","MX warnings"]],"x":"Two situations come up all the time when a customer's mail changes hands. Either the mail is coming to Berth from another provider, and the existing messages should come along; or the mail is going away to Microsoft 365 or Google Workspace, while the website stays on Berth. Both are handled from the domain's Mail tab. Moving a whole server from Plesk, cPanel or DirectAdmin is a different route: mailboxes come along with their passwords and message UIDs, without IMAP. See Migration overview. Importing a mailbox over IMAP The import copies a mailbox from any IMAP server (Gmail, an old hosting provider, an Exchange server with IMAP enabled) into a mailbox on this server. Folders, flags and read/unread state come along. Running it again fetches only what is new, so you can import days before the switch and run it once more just before you change the MX record. Before you start Create the target mailbox first; see Mailboxes. Gmail: switch IMAP on in Gmail's settings and create an app password in the Google account (Security). Use that instead of the normal password. Microsoft 365 usually no longer accepts sign-in with a plain password over IMAP, so importing from it this way often fails. Starting an import On the domain's Mail tab, open More settings → Import mail via IMAP. Under Source, enter the IMAP server (for example imap.gmail.com), the security (SSL/TLS on port 993 or STARTTLS on port 143), and the username and password at the source. Leave the port empty for the standard one. Optional switches: Don't verify the source certificate: only for an old server with a self-signed certificate. Include virtual folders: Gmail's \"All Mail\" and \"Starred\" are copies of mail in other folders, so they are skipped unless you switch this on. Under Target, pick the mailbox here and click Start import. berth mail import --domain example.com --local info \\ --host imap.gmail.com --user info.example@gmail.com --password-file - < pw.txt berth mail import --domain example.com # list the domain's imports The command waits until the import is done unless you pass --wait=false. Other flags cover --security starttls, --port, --skip-tls-verify, --all-folders and --list-prefix for a source that keeps everything under one folder. The import queue Imports run in the background and are scheduled fairly. Each import runs in rounds; after a round, an unfinished import goes to the back of the queue, and the next turn goes to whoever has waited longest. One customer's imports take turns with each other, so a customer with a very large mailbox cannot hold up everyone else, and the server never runs more imports at once than it can carry. The table on the card shows each import's target, source, who started it and when, and its state: waiting (with how many rounds it has done), running, done or failed. The queue survives a restart of the panel, and the result of every import is recorded in the activity log. The source password is only used for the import. While an import waits in the queue, the job is stored encrypted; once the import is done or has failed, the password is gone. An import can never point at this server itself. Under the hood the import uses Dovecot's own synchronisation (doveadm sync with the IMAP client backend), which is what makes repeated runs incremental. Mail at Microsoft 365 or Google Workspace When a customer moves their mail to Microsoft 365 or Google Workspace but keeps the website on Berth, the domain needs a different set of DNS records and local mail must be off, or mail sent from the website to the domain's own addresses would stay on this server. The panel does both in one step. On the domain's Mail tab, open Mail at Microsoft 365 or Google Workspace. Choose the Provider. Paste the Verification TXT record the provider gave you, MS=ms… or google-site-verification=…, one per line. Under MX and DKIM: Microsoft 365: enter the tenant name, the part before .onmicrosoft.com. The panel then adds the two DKIM CNAME records for selector1 and selector2. Newer tenants sometimes show different targets in the admin centre; enter those in the two fields for your own DKIM targets. Google Workspace: paste the DKIM key from the admin console (Apps → Google Workspace → Gmail → Authenticate email), starting with v=DKIM1;. Leave the MX target empty for the usual value (example-com.mail.protection.outlook.com or smtp.google.com), unless the admin centre shows something else. If mail is on here, confirm Mail on this server is switched off, then click Mail to the provider. berth mail provider --domain example.com --set m365 --tenant contoso \\ --verify MS=ms12345678 --confirm berth mail provider --domain example.com --set google \\ --dkim 'v=DKIM1; k=rsa; p=MIIB…' --verify google-site-verification=abc123 --confirm berth mail provider --domain example.com # show berth mail provider --domain example.com --off # back to this server Which records are set Record Microsoft 365 Google Workspace MX the tenant's mail.protection.outlook.com host smtp.google.com SPF include:spf.protection.outlook.com, plus this server include:_spf.google.com, plus this server Autodiscover CNAME to autodiscover.outlook.com not needed DKIM CNAMEs for selector1 and selector2 TXT on google._domainkey Verification the MS= TXT record the google-site-verification= TXT record DMARC p=none to start measuring p=none to start measuring SPF keeps this server in the record so that forms and notifications sent by the website still pass. A stricter DMARC policy that already exists is kept. Once the provider is sending DKIM-signed mail, switch DKIM on in its admin console. Where the records go depends on the domain's DNS mode: straight into the zone when this server runs the domain's DNS, through the API when a DNS provider is linked, or shown with copy buttons when DNS is elsewhere. What happens to the old mailboxes The mailboxes and aliases leave the configuration, but their content stays on disk. Move the mail to the new provider first, for example with the provider's own IMAP migration tool pointed at this server. To come back, use Back to this server → No longer at … or --off. The provider's records are removed, after which you can switch mail on here again and the old mailboxes reappear. Mail only arrives here once the MX points to this server again. MX warnings Independently of the above, the mail page compares the domain's MX record with this server. If mail is off here and the MX points elsewhere, it advises leaving mail off. If mail is on here while the MX points elsewhere, it shows a clear warning: mail from outside would never arrive in these mailboxes."},{"s":"dns","l":"en","t":"DNS","d":"The three ways Berth handles a domain's DNS (elsewhere with checking, through a provider's API including RFC 2136, or on its own BIND server with DNSSEC), plus custom records, secondaries, zone import, DNS templates and locks per package, and the DNS lock until switchover.","c":"dns","g":["dns","nameserver","dnssec","cloudflare","bind","zone","records"],"h":[["three-ways-to-handle-dns","Three ways to handle DNS"],["dns-elsewhere-with-checking","DNS elsewhere, with checking"],["dns-through-a-provider-s-api","DNS through a provider's API"],["adding-an-account","Adding an account"],["linking-a-domain-and-publishing-records","Linking a domain and publishing records"],["your-own-nameserver-over-rfc-2136","Your own nameserver over RFC 2136"],["dns-on-this-server","DNS on this server"],["switching-on-the-dns-server","Switching on the DNS server"],["moving-a-domain-s-dns-here","Moving a domain's DNS here"],["dnssec","DNSSEC"],["custom-records","Custom records"],["importing-a-zone-from-the-previous-provider","Importing a zone from the previous provider"],["secondary-nameservers","Secondary nameservers"],["a-bad-zone-never-goes-live","A bad zone never goes live"],["dns-templates-and-locks-per-package","DNS templates and locks per package"],["dns-lock-until-switchover","DNS lock until switchover"]],"x":"A website and its mail only work when the domain's DNS points to the right place: A and AAAA records for the site, MX, SPF, DKIM and DMARC for mail. Berth knows exactly which records each domain needs, because it set up the site and the mail. What it does with that knowledge depends on where the DNS lives, and you choose that per domain. Three ways to handle DNS Mode Who writes the records When to use it Elsewhere, with checking You, at your DNS host. The panel lists the records and checks them. The DNS stays with a registrar or team you don't control. Through a DNS provider's API The panel, at Cloudflare, TransIP, Hetzner, deSEC, OXXA, Route 53, DigitalOcean, or your own nameserver. You keep your provider but want the panel to keep records right. On this server The panel, in its own authoritative BIND server, with DNSSEC. You want everything in one place, or you run your own nameservers. The modes can be mixed: one domain on Cloudflare, another on the server's own DNS, a third left alone. The domain's DNS page shows where its DNS is, which records it needs, and whether they are right. DNS elsewhere, with checking This is the default. The domain page lists what must be set at your DNS host: A and AAAA for the domain and its aliases and, with mail on, MX, SPF, DKIM, DMARC and the other mail records. Each record has a copy button. Check the DNS records asks public resolvers and marks each record as correct, missing or different. berth domain dns --domain example.com --check For a wildcard certificate while DNS stays elsewhere, you can delegate only the certificate challenge to the server with a single record; see Certificates. DNS through a provider's API Adding an account Go to Domains → DNS providers and add an account under Add account. Choose the provider and enter its API credentials: Cloudflare: an API token with Zone:Read and DNS:Edit. Hetzner, deSEC, DigitalOcean: a token with write access. TransIP: your login and the key pair from TransIP's control panel (PEM), without an IP whitelist or with this server's address on it. OXXA: the API user and API password. Amazon Route 53: the access key ID and the secret access key. Click Add and test. The panel tests the credentials straight away and reports which zones it can see. An administrator's account can be linked to any domain; a customer can add their own account, which can only be linked to their own domains. berth dns account-add --name cf --provider cloudflare --token-file token.txt berth dns account-add --name tip --provider transip --login acme --key-file transip.pem berth dns accounts Linking a domain and publishing records On the domain's DNS page, under Link with your DNS provider, choose the account. The panel finds the zone itself. Keep Update the address (A/AAAA) automatically on, so A and AAAA follow the server when its address changes. Click Set records at the provider. berth dns link --domain example.com --account 3 --auto berth dns records --domain example.com --zone # needed vs. present, plus the whole zone berth dns apply --domain example.com The panel only manages its own records: addresses, MX, SPF, DKIM, DMARC, MTA-STS and autodiscover. Other TXT and CAA values, such as a Google site verification, are left alone; for SPF and DMARC the panel replaces the value rather than adding a second record. The page also lists everything the provider has in the zone, marking each record as managed by the panel or your own. A linked domain can also get wildcard certificates through DNS-01. OXXA only supports A, AAAA, CNAME, MX and TXT, so records of other types (such as the SRV record for autodiscover) are skipped there. Your own nameserver over RFC 2136 An administrator can link BIND, Knot or PowerDNS directly: choose Own nameserver (RFC 2136, TSIG). The panel updates zones with dynamic updates (RFC 2136) and reads them with a zone transfer (AXFR), both over TCP and signed with TSIG. Enter the nameserver (host or host:port), the TSIG key name as login, the secret in base64 as tsig-keygen creates it, the algorithm (hmac-sha256 by default, or hmac-sha384, hmac-sha512) and the zones the panel may update. The key needs permission to update and transfer those zones. In BIND, for example: zone \"example.com\" { type primary; file \"example.com.zone\"; update-policy { grant berth-key zonesub ANY; }; allow-transfer { key berth-key; }; }; berth dns account-add --name ns --provider rfc2136 --server ns1.example.nl \\ --login berth-key --token-file tsig.secret --algorithm hmac-sha256 --zones \"example.com example.nl\" DNS on this server Berth can be the authoritative nameserver for your domains, using BIND with DNSSEC. Switching on the DNS server On DNS providers, open the card DNS on this server, enter the nameserver names (the first goes into the SOA) and the hostmaster address, and switch it on. The nameserver names must point to this server or to a secondary, with glue records at your registrar where needed. berth dns server --enable --ns ns1.example.nl,ns2.example.nl --hostmaster hostmaster@example.nl berth dns server # show --listen limits the addresses BIND listens on (by default those of the server). DNSSEC is on by default; --no-dnssec leaves zones unsigned. Moving a domain's DNS here On the domain's DNS page, click This domain's DNS on this server, or run berth dns zone --domain example.com --on. The zone is filled with every record the panel knows: the website and its aliases, mail with SPF, DKIM and DMARC, autodiscover, and the package's DNS template if it has one. At your registrar, point the domain's nameservers to this server and add the DS record the page shows under DS record for your registrar (DNSSEC). From then on, changes go along by themselves: a new alias, mail switched on, a changed address. To go back, set the nameservers at the registrar back first, then click DNS external again or berth dns zone --domain example.com --off. DNSSEC Zones are signed automatically with a BIND dnssec-policy: BIND creates and rolls over the keys. You only add the DS record at the registrar once. With DNSSEC in place you can also publish DANE records for the mail server. Custom records The domain's DNS page lists the zone's records with their origin: panel (from the panel) or own (your own). Under Add record, add A, AAAA, CNAME, MX, TXT, SRV, CAA, TLSA or NS records. @ is the domain itself; a TTL of 0 means the default. A custom record with the same name and type replaces the panel's record. berth dns record-add --domain example.com --name www --type CNAME --value example.com --ttl 3600 berth dns record-add --domain example.com --name @ --type MX --value \"20 backup-mx.example.net\" berth dns record-remove --domain example.com --id 17 Importing a zone from the previous provider Under Import zone file from the previous DNS provider, paste the old zone in BIND notation, for example an export from your old provider. Records the panel sets itself (SOA, NS, the domain's addresses and mail, SPF, its own DKIM key), records that are already identical and records that would conflict are skipped. $INCLUDE is not supported. berth dns zone-import --domain example.com --file old-zone.txt Secondary nameservers Secondary nameservers receive a NOTIFY on every change and may transfer the zones, either by IP address or with a TSIG key. Add their addresses to the server settings, and show the key for the secondary's configuration with Show key on the TSIG card. berth dns server --enable --ns ns1.example.nl,ns2.example.net --secondary 198.51.100.53 berth dns tsig # the key in BIND format; secret, run as root A bad zone never goes live Like every configuration in Berth, a zone is rendered to a staging file and checked with named-checkzone before it replaces the live one (see How changes go live). If a change does not pass, the previous version of the zone keeps being served and the domain's DNS page says why. DNS templates and locks per package A package can add records to every domain on it, and can stop customers from editing DNS themselves. Both are under DNS template when you edit a package (see Customers and packages). DNS template: one record per line as name type value, without quotes; lines starting with # are comments. @ is the domain, and {domain} in the value is replaced by the domain name. The records go into the server's own zones and to linked providers. A domain's own record takes precedence. No custom DNS records for the customer: the customer cannot add or remove records or import a zone; the administrator and the reseller still can. cat > dns-template.txt <<'EOF' shop CNAME shops.example.net status CNAME status.example.net @ TXT hosted-by=example.net site={domain} EOF berth plan set --name basic --dns-template-file dns-template.txt --dns-locked DNS lock until switchover When you move domains from another server, the DNS still points to the old server until the switchover. During that time the panel must not move addresses or MX at the providers, or live sites and mail would jump to a server that is not ready. The lock on DNS providers (card Lock until switchover) does exactly that. While it is on, the panel only sets DKIM keys and certificate challenges at the providers; addresses, MX, SPF, MTA-STS and CNAMEs stay as they are, and the domain's DNS page marks them as locked. After a subscription has switched over, the lock no longer applies to its domains. The first migration import switches the lock on by itself, unless you have set it before. Switch it off yourself once the whole migration is done. berth dns lock # show berth dns lock --on berth dns lock --off See Migration overview for how the switchover itself works without customers touching DNS."},{"s":"databases","l":"en","t":"Databases","d":"MariaDB and PostgreSQL databases per subscription, users that span several databases, import and export, remote access with TLS, PostgreSQL extensions, Adminer on its own hostname with a one-time login, anonymised copies, and the limits and slow-query report that keep a shared server fair.","c":"data","g":["database","mariadb","mysql","postgresql","adminer","phpmyadmin","sql"],"h":[["mariadb-and-postgresql","MariaDB and PostgreSQL"],["creating-a-database","Creating a database"],["one-user-for-several-databases","One user for several databases"],["connecting","Connecting"],["remote-access","Remote access"],["import-and-export","Import and export"],["postgresql-extensions","PostgreSQL extensions"],["adminer-in-the-browser","Adminer in the browser"],["anonymised-copy-for-development","Anonymised copy for development"],["limits-that-keep-a-shared-server-fair","Limits that keep a shared server fair"],["performance-and-slow-queries","Performance and slow queries"],["mariadb-behaviour-for-websites","MariaDB behaviour for websites"],["backups","Backups"]],"x":"Every subscription can have its own MariaDB and, when the package allows it, PostgreSQL databases. This page covers creating databases and users, connecting from a site or from outside, importing and exporting, managing them in the browser with Adminer, making an anonymised copy for testing, and the limits that stop one site from slowing down the rest. Going back to an earlier moment is described in Point-in-time restore. MariaDB and PostgreSQL Berth uses the database servers of the operating system: on Debian 13 that is MariaDB 11.8 and PostgreSQL 17. MariaDB is always available; PostgreSQL databases can be created when the package allows them (berth plan set … --postgresql). Each database belongs to one subscription and counts towards its disk space. Creating a database Go to Databases in the menu and click Add database. Choose the subscription. Enter a name: lowercase letters, digits and . It automatically gets the subscription's prefix, for example acmewp. Leave the username empty to use the database name, and the password empty to have a strong one generated. Optionally choose PostgreSQL instead of MariaDB. Create it. The credentials are shown once under Credentials: write them down now. berth database create --sysuser acme --name wp berth database create --sysuser acme --name app --user appuser --engine postgresql berth database list A new password for a database user is New password in the database's row, or berth database password --database acmewp --user acmewp. Deleting a database (Delete…) removes it with all its content; a user that also has other databases keeps those. One user for several databases Some applications need one user for several databases, like Plesk's \"all databases\" user. Under Users on the same page: Add user: choose a name and tick the databases, all from the same subscription. With Also every new database the user automatically gets access to databases the subscription creates later. The password is shown once. Databases… next to a user adds or removes a database. Removing takes away the rights on that one database only. The last database cannot be removed; delete the user instead. A user can never be given a database of another subscription. That is checked independently in the panel and again in the privileged agent that applies the grants. berth database user create --sysuser acme --user report --database acme_shop --database acme_blog berth database user grant --user acme_report --database acme_crm berth database user revoke --user acme_report --database acme_blog berth database user list Connecting The card Connect on the Databases page shows how to connect: From Host Port The website, MariaDB localhost 3306 The website, PostgreSQL 127.0.0.1 5432 Outside the server the address shown on the card as shown The same card shows the subscription's query time (see Limits). Remote access To connect from your own computer or another server, open Remote access… in the database's row. Choose Only these IP addresses and enter the addresses or networks, one per line, for example 203.0.113.10 or 203.0.113.0/24. PostgreSQL also accepts IPv6 networks. Keep TLS on. PostgreSQL is always TLS-only (sslmode=require or stricter). For MariaDB TLS is the default and strongly recommended. Click Grant access. Customers can open access to single addresses or a limited network. Opening a database to every address is reserved for the administrator, who has to confirm it explicitly, and then always with TLS. Remote access also needs the server to listen from outside, which the administrator switches on once under Server settings on the same page; the panel firewall still applies. berth database remote --database acme_wp --user acme_wp --host 203.0.113.0/24 berth database remote --database acme_wp --user acme_wp --host 203.0.113.0/24 --remove berth database remote --on # MariaDB listens from outside (restarts MariaDB) berth database remote --on --postgresql # the same for PostgreSQL Import and export Export creates a compressed SQL dump (.sql.gz) with tables, views, triggers and routines. Import… reads a dump from phpMyAdmin, Plesk or mysqldump: .sql, .sql.gz or .zip. The import runs with the database's own rights, and DEFINER clauses are removed so views and triggers belong to this database. Tables that are in the file are overwritten, so export first if you might want to go back. berth database export --name acme_wp -o acme_wp.sql.gz berth database import dump.sql.gz --name acme_wp PostgreSQL extensions PostgreSQL databases have an Extensions page, linked from the database's row. Create or remove extensions such as pg_trgm, unaccent, hstore, citext, uuid-ossp, pgcrypto, postgis and vector from the panel, without needing a superuser account yourself. berth database extension --database acme_app berth database extension --database acme_app --extension vector Adminer in the browser The Adminer button in a database's row opens that database in Adminer without typing a password. The panel creates a one-time login token and a temporary database user with rights on that one database only, so a session in Adminer can never see the subscription's other databases. Adminer never runs on the panel's address. It has its own hostname, adminer.<panel name> by default, so a flaw in Adminer cannot reach a panel session, and it runs as its own system user. Point the name to the panel's address in DNS; the panel requests the certificate itself, and the card Adminer on its own name under Settings shows what is missing until then. Without its own name, Adminer stays off. berth panel adminer-host # show, with the DNS records needed berth panel adminer-host adminer.panel.example.nl berth panel adminer-host --clear # switch Adminer off Anonymised copy for development Anonymised copy… creates a new database with the content of an existing one, with personal data replaced, so developers and testers can work with realistic data without real customers in it. It works for MariaDB and PostgreSQL. Per column you choose a replacement: email, name, username, phone, address, ip, text, empty or null. A whole table can be emptied with truncate. Presets for Laravel and Drupal fill in the usual columns (only those that exist). The source database is never changed. If any step fails, the copy is removed again, so a half-anonymised copy never stays behind. The rules you used are remembered for next time. berth database anonymize --from acme_shop --name shop_dev --preset laravel \\ --rule \"orders.notes text\" --rule \"sessions truncate\" berth database anonymize --from acme_shop --show Limits that keep a shared server fair The database servers are shared by all subscriptions, so Berth keeps one site from taking them over: Query time. A query from a database user may run for a limited time, five minutes by default, set per package (--db-statement-seconds) or per subscription. Longer queries are stopped by MariaDB or PostgreSQL, including writes and schema changes, which are rolled back; the site gets an error on that one query and keeps its connection. A watchdog in the panel also stops queries that run past their limit, and records it as an event on the subscription. Connections. The number of simultaneous connections is limited per database user and per subscription, configurable per package (--db-user-connections, by default 20 per user; --db-connections, by default 60 per subscription, which for PostgreSQL applies per database). Disk space. Databases count towards the subscription's disk space. When a subscription is far over its limit, its databases are locked for writing: MariaDB databases can still be read and cleaned up with DELETE, DROP and TRUNCATE, and PostgreSQL databases become read-only. The customer is notified, and the lock lifts by itself shortly after the subscription is back under its limit. Customers who structurally need more, for example for a large migration, ask their hosting provider for a higher query time. Performance and slow queries The Performance tab shows slow queries per database, grouped by shape: queries are normalised, so literal values (and any personal data in them) never appear, and similar queries count together. Many rows examined per query usually points to a missing index. For the administrator the same tab shows how MariaDB is running, with advice and settings for the buffer pool, connections, temporary tables, the table cache and the slow log. Changes apply without a restart where possible; a restart of MariaDB can be scheduled in the maintenance window. Database load and storage per database over time are part of Statistics and metrics. On install and update, Berth sizes MariaDB to the server, including the buffer pool, a thread pool, connections and room for temporary tables, so a new server does not start with the distribution's minimal defaults; your own tuning always wins. berth database slow --sysuser acme berth database tuning berth database tuning --slow-log on --slow-ms 500 An administrator can also switch on a faster write mode for MariaDB (berth database tuning --fast-commit on, off by default). It makes writes cheaper, at the cost of up to one second of transactions if the whole server crashes; a crash of MariaDB alone loses nothing. MariaDB behaviour for websites Sites that grew up on an older, non-strict MySQL sometimes rely on warnings instead of errors. Behaviour for websites under Server settings chooses between modern (utf8mb4, strict SQL mode) and like the migration source. Without a migration the behaviour is modern; the first migration takes over the behaviour of its source. Berth's own connections always use utf8mb4 and strict mode. Changing it restarts MariaDB, and if that fails the previous behaviour comes back. berth database behaviour berth database behaviour --modern Backups Databases are part of every subscription backup, and can be restored on their own, next to the original or over it. See Restoring data and, for going back to a precise moment, Point-in-time restore."},{"s":"point-in-time-restore","l":"en","t":"Point-in-time restore for databases","d":"Put a MariaDB or PostgreSQL database back to any moment within the retention period, for example just before a failed update, next to the live database or over it, using the binary log or the WAL archive.","c":"data","g":["point-in-time restore","pitr","binlog","wal","database restore","undo"],"h":[["how-it-works","How it works"],["mariadb","MariaDB"],["postgresql","PostgreSQL"],["switching-it-on-administrator","Switching it on (administrator)"],["disk-space","Disk space"],["alerts","Alerts"],["restoring-a-database-to-a-moment","Restoring a database to a moment"],["restoring-the-whole-postgresql-cluster","Restoring the whole PostgreSQL cluster"],["point-in-time-restore-and-backups","Point-in-time restore and backups"]],"x":"A nightly backup gets you back to last night. When a plug-in update corrupts a shop's orders at 14:32, you want the database as it was at 14:31, not twelve hours of orders lost. Point-in-time restore does that: Berth keeps a log of every change and replays it on top of the last backup up to the moment you choose, for one database, without touching the others. It is available for MariaDB (through the binary log) and PostgreSQL (through the WAL archive). The administrator switches it on for the server; customers then use it for their own databases. How it works MariaDB MariaDB writes every change to its binary log. Berth keeps that log for the retention period, and every database dump in a backup archive records its exact position in the log. To restore a database to a moment, the panel: takes the last backup archive from before that moment; restores that dump; replays the binary log after it up to the chosen moment, for that database only. This works from the first backup made after point-in-time restore was switched on. PostgreSQL PostgreSQL archives every WAL segment (its write-ahead log) in compressed form to a directory managed by Berth, and the backup round makes a base backup every night with pg_basebackup. Restoring one database works like this: the base backup from before the moment is unpacked into a temporary PostgreSQL instance, which only listens on a private socket and does no archiving; the WAL is replayed in that instance up to the moment; that one database is dumped from the temporary instance and restored into the real server, next to the live one or over it. The other databases on the server notice nothing. Restoring is possible from the end of the oldest base backup. Switching it on (administrator) On Databases, open Server settings. MariaDB: the card Point-in-time restore. Set the Retention in days: 7 by default, at most 35, 0 switches it off. Saving restarts MariaDB. PostgreSQL: the card PostgreSQL · Point-in-time restore. It is switched on automatically, with 7 days, when PostgreSQL is set up for the first PostgreSQL database. On a server where PostgreSQL was already running you switch it on yourself; that restarts PostgreSQL. If PostgreSQL already archives with its own archive_command, Berth leaves it alone and says so. berth database pitr # show the state berth database pitr --days 7 # MariaDB: keep 7 days (restarts MariaDB) berth database pitr --postgresql --days 7 berth database pitr --postgresql --base # make a PostgreSQL base backup now berth database pitr --days 0 # switch off for MariaDB The PostgreSQL card shows, per day, whether it can be restored, the earliest moment you can go back to, the last archived segment and how many are waiting, the base backups and the free disk space. Base backup now makes one immediately. Disk space The logs cost disk space: roughly all changes of the retention period. On most servers that is somewhere between a few hundred megabytes and a few gigabytes, more for busy shops. Switching retention to 0 for PostgreSQL also removes the kept WAL and base backups. Alerts The administrators are alerted when WAL archiving fails, when it falls behind, and when the newest PostgreSQL base backup is too old. See Notifications and alerts. Restoring a database to a moment On Databases, open the database's row and choose Restore to a point in time…. Enter the Moment in the server's time zone, for example just before a failed update. The dialog says how far back you can go. Under Where does it go?, choose: Next to what is there now: the result becomes a new database and the current one stays as it is. Nothing is lost; you can compare first. This is the default. Instead of what is there now: the database gets the content of that moment, and everything that changed afterwards is lost. Click Restore. The result lists the steps taken and, for a restore next to the original, the name of the new database. berth database restore-at --database acme_shop --at \"2026-10-28 14:31\" --alongside berth database restore-at --database acme_shop --at \"2026-10-28T14:31:00+01:00\" The moment can be given as yyyy-mm-dd hh:mm[:ss] in server time, or in RFC 3339 with a time zone. Without --alongside, the database is replaced. The same is available in the API as POST /api/v1/databases/{name}/restore-at. Restore next to the live database first, check the copy (for example in Adminer), and only then decide whether to swap it in or to copy back just the rows you need. Restoring the whole PostgreSQL cluster Sometimes one database is not enough, for example after a mistake that touched roles as well. The administrator can put the whole PostgreSQL cluster back to a moment: Restore the whole cluster… on the PostgreSQL card, which you confirm by typing postgresql. berth database restore-cluster --at \"2026-10-28 14:31\" --confirm postgresql All databases and roles, including passwords, go back to that moment. Databases that did not exist yet at that time disappear; the result names them. PostgreSQL is stopped briefly. The current data directory is kept for a day next to the restored one, so you can still go back. If replaying fails, Berth puts everything back as it was. A fresh base backup follows immediately. Point-in-time restore and backups Point-in-time restore is a fine-grained undo on the server itself, built on top of the regular backups. It does not replace off-site backups: keep a copy of your backups on S3 or a NAS as well, see Backups overview. To restore a database from a specific archive or from the hourly history instead, see Restoring data."},{"s":"files-ftp-ssh","l":"en","t":"Files, FTP, SFTP and SSH","d":"The browser file manager, FTPS with extra accounts per folder, SFTP and SSH with or without a sandboxed shell, SSH keys kept out of the webspace, a second factor for SSH (TOTP or FIDO2), live sessions you can end, and the browser terminal.","c":"data","g":["sftp","ftp","ftps","ssh","file manager","terminal","ssh keys"],"h":[["where-the-files-are","Where the files are"],["file-manager-in-the-browser","File manager in the browser"],["ftp-with-tls","FTP with TLS"],["extra-ftp-accounts","Extra FTP accounts"],["sftp-and-ssh","SFTP and SSH"],["without-or-with-a-shell","Without or with a shell"],["ssh-keys-managed-by-the-panel","SSH keys managed by the panel"],["a-second-factor-for-ssh-and-sftp","A second factor for SSH and SFTP"],["who-is-connected-now","Who is connected now"],["terminal-in-the-browser","Terminal in the browser"],["which-to-use","Which to use"]],"x":"There are four ways to get at a subscription's files: the file manager in the browser, FTP with TLS, SFTP, and a shell over SSH or in the browser. All of them run as the subscription's own system user and see only that subscription's webspaces, so a mistake or a stolen password stays inside one customer's files. This page explains each one and the protections around them. Where the files are Each subscription has a webspace under /var/www/vhosts/<domain>, owned by its system user, with the website in httpdocs (or the document root you chose). The layout is the same as on Plesk; see On-disk layout. File manager in the browser The domain's Files tab is a file manager that works as the subscription's system user: browse, search by name or by text inside files (Search in all subfolders); upload files, and unpack zip and tar archives in place (Extract here); edit text files, rename or move (Rename or move…), copy, pack into zip or tar.gz (Pack…), and delete; change permissions (Permissions…), with guidance: 640 or 644 for a normal file, 750 for a directory, 600 for a secret; move a suspicious file into quarantine (Quarantine). Uploads and unpacked archives are scanned for malware as soon as they are written; a find is reported and, if the administrator has chosen so, moved to quarantine. See Malware scanning. Changing permissions never follows symbolic links, and copying a link copies the link itself. Large files go through SFTP. berth files list --domain example.com --path httpdocs berth files upload --domain example.com --path httpdocs/robots.txt < robots.txt berth files extract --domain example.com --path httpdocs/site.zip berth files fixperms --domain example.com --path httpdocs fixperms resets permissions under a path to the safe default: the owner reads and writes, the group reads, nobody else writes, secrets 600. Administrators also have a server-wide file manager under System → Files. FTP with TLS FTP runs on ProFTPD and only works encrypted, as FTPS with explicit TLS. Plain FTP is refused, so passwords never cross the network in clear text. Setting Value Server as shown on the domain's FTP page Port 21, passive mode, with explicit TLS (\"FTP over TLS\" in FileZilla) Main account the subscription's system user, with the SFTP password (the whole webspace) Extra FTP accounts On the domain's FTP page you create extra accounts, for example for a web designer, each limited to one folder: Under Add account, enter a name (3 to 32 characters: lowercase letters, digits, dot and hyphen) and the folder inside the webspace. Leave the password empty to have a strong one generated; it is shown once. printf '%s\\n' \"$PW\" | berth ftp add --sysuser acme --name designer --path httpdocs/shop --password-stdin berth ftp list --sysuser acme berth ftp password --name designer berth ftp remove --name designer The package sets how many extra accounts a subscription may have (berth plan set … --max-ftp-users). FTP is an optional component; servers installed with --no-ftp don't offer it. SFTP and SSH SFTP is the recommended way to transfer files: one encrypted connection, easy through firewalls, and it works with keys. Customers connect on a separate SSH port for customers, shown in the panel; port 22 is reserved for administrators and only accepts connections over a VPN. The domain page's card SFTP and SSH shows the server, the port, the username (the subscription's system user) and the folder of the website. Set a password with Set password; it is shown once and stored nowhere in readable form. berth sftp password --sysuser acme Without or with a shell What a login can do depends on the package: Without shell (the default): SFTP only. The user is locked into the webspace (a chroot with sshd's internal SFTP server) and cannot run commands. With shell (berth plan set … --shell): SSH gives a real shell, plus rsync, git and SFTP with real paths. The shell runs in a sandbox: a transient systemd unit inside the subscription's own slice, so it shares the subscription's CPU, memory and process limits. The user sees only their own webspaces, not the panel and not other users' processes. It is the same environment as the browser terminal. See Isolation for how subscriptions are kept apart. SSH keys managed by the panel Under SSH keys on the domain page, paste a public key (the .pub file) to log in without a password. Accepted are ed25519, ECDSA, RSA from 2048 bits, and FIDO2 security keys (sk-ssh-ed25519, sk-ecdsa). The keys are stored outside the webspace and written by the panel, each with sshd's restrict option. A script on the website therefore cannot plant its own key, which is a common way attackers keep access after breaking into a site. Keys in a .ssh/authorized_keys inside the webspace are not used; when you migrate from Plesk, the panel takes them over as panel-managed keys. berth sftp key add --sysuser acme --name laptop --file ~/.ssh/id_ed25519.pub berth sftp key list --sysuser acme berth sftp key remove --sysuser acme --id 4 A second factor for SSH and SFTP A second factor makes a guessed or leaked password or key useless on its own. It is optional and separate from the panel's own two-step verification: signing in to the panel never unlocks SSH, and the other way round. Open Two-step verification for SSH from the SFTP and SSH card and choose: Authenticator app (TOTP): scan the code with an app, confirm with a code, and store the recovery codes shown once. SSH then asks for a password or key and a code. FIDO2 keys: add a security key created with ssh-keygen -t ed25519-sk -O verify-required. Logging in then needs the key and its PIN; ordinary keys and the password no longer work for SSH. berth ssh 2fa totp --sysuser acme # shows the secret and otpauth URL once berth ssh 2fa confirm --sysuser acme --code 123456 # returns the recovery codes berth ssh 2fa fido2-add --sysuser acme --name yubikey --file id_ed25519_sk.pub berth ssh 2fa status --sysuser acme Lost the app? Use a recovery code, or ask the reseller or administrator to reset it (berth ssh 2fa reset --sysuser acme). FTP cannot ask for a second factor, so once a subscription has one, its main account can no longer sign in over FTP; use SFTP. Extra FTP accounts keep working. Who is connected now SSH sessions, with the heading Who is in, lists the live SSH and SFTP sessions of a subscription: the source address, whether it has a terminal, and since when. End closes a session immediately, for example after a password leak or when a former contractor is still connected. berth ssh sessions --sysuser acme berth ssh sessions --sysuser acme --terminate 7 Terminal in the browser When the package allows a shell, the subscription has a Terminal in the browser, in the same sandbox as SSH: only the subscription's own webspaces, inside its slice. A terminal can also be opened inside one of the subscription's containers. Copy and paste work with the browser's normal keys, and opening and closing a terminal are recorded in the activity log. By default a terminal opens only after a fresh confirmation, so a hijacked browser session alone cannot open a shell. The administrator sets this for the whole server (on by default) or per subscription; SSH from your own computer is not affected. berth ssh 2fa terminal --server # fresh confirmation for every terminal on the server berth ssh 2fa terminal --server --on=false berth ssh 2fa terminal --sysuser acme # the same for one subscription Which to use Task Best tool Change one file quickly File manager Upload a site or large files SFTP Give a designer access to one folder Extra FTP account Deploy with rsync or git, run Composer or WP-CLI SSH with shell, or Git deploy Quick command without a local SSH client Browser terminal"},{"s":"backups-overview","l":"en","t":"How backups work in Berth","d":"Places say where backups go, schedules say what, when and how long; safety rules stop you from pruning or switching off your last good copies.","c":"backup","g":["backup","backups","retention","schedule","restic","encryption"],"h":[["places-and-schedules","Places and schedules"],["kinds-of-places","Kinds of places"],["what-is-in-a-backup","What is in a backup"],["when-schedules-run","When schedules run"],["presets","Presets"],["safety-rules","Safety rules"],["does-all-customer-data-actually-leave-the-server","Does all customer data actually leave the server?"],["alerts","Alerts"],["deleted-subscriptions","Deleted subscriptions"],["what-customers-see","What customers see"],["customer-owned-storage","Customer-owned storage"],["the-customer-s-own-openpgp-key","The customer's own OpenPGP key"],["where-to-go-next","Where to go next"]],"x":"Berth backs up every subscription (websites, mail, databases and container volumes) and the server's own settings, keeps an hourly deduplicated history on the server, and copies everything off the server in encrypted form. This article explains the model behind it: places and schedules, what goes into a backup, the presets, and the safety rules that keep you from losing your last good copy by accident. Places and schedules Two ideas cover everything: A place is where backups are stored and how Berth reaches them. A place holds no retention policy of its own. A schedule is what is backed up, when, to which single place, how long it is kept and how often a restore test runs. You manage them under Backups → Places and Backups → Schedules, or with berth backup location and berth backup schedule. A schedule always writes to exactly one place. Sending the same data to two places means two schedules. That costs no double work: schedules that are due in the same round share it. A schedule for loose S3 archives, for example, uploads the archive that a local schedule has just made for the same subscription instead of building its own. Every archive and snapshot carries the mark of the schedule that made it, and a schedule only ever prunes its own data. An hourly database schedule therefore never pushes your nightly full archives out. Kinds of places Place Label in the panel Form Retention counted in This server, archives Archives on this server one .tar.gz per subscription number of archives This server, history History on this server a restic repository per subscription hourly / daily / weekly / monthly External, deduplicated External: snapshots, encrypted and deduplicated restic on S3, Backblaze B2, SFTP, a REST server, your NAS, Azure Blob Storage, Google Cloud Storage or a mounted path hourly / daily / weekly / monthly External, loose archives External: loose archives (S3) each archive as an object in a bucket number of archives The two places on this server always exist and cannot be removed (you can switch them off). External places you add yourself: Backing up to S3 with the one-key wizard or by hand. Backing up to your own NAS (Synology, Ugreen, TrueNAS). Each place carries a jurisdiction: EU or outside the EU. For known providers Berth derives it from the address and region. The label shows up in the panel, in reports and for customers, which helps with GDPR and BIO questions (see GDPR). Deduplicated external places are the recommended route. They copy straight from the sources (webspace, Maildirs, database dumps) to the repository, one snapshot per subscription. Only what changed travels over the line, so off-site copies every hour or even every 15 minutes are realistic. Loose S3 archives have their own strengths: anyone with the bucket and archive key can read them without Berth, and any Berth server can fetch them. What is in a backup Per subscription: the webspaces under /var/www/vhosts/<domain>; the Maildirs, with their UIDs, so mail clients do not download everything again after a restore; dumps of every MariaDB and PostgreSQL database; container volumes (in archives); an account manifest: domains, settings, password hashes, DKIM keys, FTP accounts, cron jobs. A schedule can narrow this to files, databases or mail. Such partial archives restore content, but not a whole account. Server settings, when a schedule includes them (also the server settings): the panel database with all users and PostgreSQL roles, the panel configuration and certificates, the key that unlocks sealed secrets, and the DNSSEC and TSIG keys. Server settings only go to deduplicated places, never as loose objects in a bucket, because the panel database holds password hashes. They are what makes a full disaster recovery possible. Managed services that Berth installs for you have their own backups under System → Service backups. When schedules run A schedule can run every 15, 20 or 30 minutes (deduplicated places only), every 1–24 hours at a fixed minute, daily, weekly or monthly. A timer checks every few minutes which schedules are due. In one round the local history runs first (an hourly moment should not wait for a long archive), then local archives, then loose S3 archives, then external deduplicated places. A running schedule shows in the task bar at the top of the page with its progress. Stop finishes the subscription it is working on and then stops; the rest follows at the next run. berth backup schedule run <id> runs one now; berth backup run --schedules runs every enabled schedule. All heavy backup work runs at the lowest CPU and IO priority, so sites stay responsive. Presets If you do not want to design schedules yourself, apply a preset under Backups → Schedules → Presets. Each one shows an estimate of the disk space it needs on this server before you apply it. Preset Archives on this server (nightly) History on this server (hourly) External (nightly) Mostly external 1 night 48 hours 7 days, 4 weeks, 6 months Balanced 3 nights 48 hours, 7 days, 4 weeks 7 days, 4 weeks, 6 months Mostly local 7 nights 48 hours, 14 days, 8 weeks, 6 months 7 days, 4 weeks, 6 months berth backup preset list berth backup preset apply evenwichtig --dry-run # calculate only berth backup preset apply evenwichtig Mostly external needs a working external place first (see the safety rules below). Safety rules Berth refuses or questions changes that would leave you without a usable copy: Short local retention only with a working external copy. A local archive schedule that keeps fewer than three archives is refused unless an enabled external place had a recent successful run. Never prune what is not off the server yet. While an external place exists, the newest three local archives of a subscription stay until a newer external backup of that subscription has succeeded. A schedule that keeps nothing is refused. Pruning waits for restores and checks. While a restore test, a check or a restore uses a place, a run only marks old snapshots and postpones the actual cleanup to the next run. A place in use cannot be removed, a schedule cannot switch to another place, and the two places on this server cannot be removed. Switching off is allowed, with a warning when no backup would be made anywhere afterwards. Removing a schedule leaves its backups where they are. Removing a place only removes Berth's access; the data at the provider stays. Does all customer data actually leave the server? An external copy that reports \"succeeded\" every night does not prove that websites, mail and databases are in it. Berth therefore checks per subscription whether customer data goes to a place off the server, through any of these routes: a schedule straight to an external place (or loose archives to S3) that includes the subscription; a copy of the local archives to an external place, plus a schedule that makes those archives; a copy of the local history, plus the history schedule for that subscription. If an external run contained no customer data, it is marked without customer data instead of succeeded, with the number of subscriptions it did contain. A banner on Places and Schedules explains why and offers a button to create a direct schedule, and berth doctor reports it as backup-external. When you remove or switch off a schedule, a place or the history copy, and that would leave subscriptions without an off-site copy, Berth first names those subscriptions and asks for confirmation (--confirm on the CLI, confirm: true in the API). The confirmation is recorded in the audit trail. Alerts Backups report through the normal notification channels: No recent backup when backups stop happening; External copy without (all) customer data, critical when the missing data is not in the local history either; Restore test failed, see Restore tests; failed or partial runs, NAS cleanup that stopped working, and S3 buckets whose lifecycle rule is missing or too short. A disk guard refuses a new archive when free space would drop too low and skips a history round with a notice, so backups never fill the disk and stop MariaDB or mail. For a server that cannot report anything because it is down, set up a heartbeat to an external monitor (see Notifications and alerts). Deleted subscriptions When a subscription is deleted, its archives and history are kept apart under Backups as Archives and history of deleted subscriptions, by default for 30 days. Administrators get a notice a week and a day before they are wiped. Pin keeps them indefinitely, for a dispute or a customer who comes back. A new subscription with the same system user always starts empty and never sees the old data. What customers see Customers, resellers and restricted logins with the backup right see only their own subscriptions, and for each place only the name the administrator gave it, whether it is in the EU and when the last copy arrived. No paths, buckets, providers or snapshot IDs. They can browse, download and restore their own data. Customer-owned storage You can allow customers to send backups of their subscription to their own S3 storage, with their own schedule, alongside yours. It is off by default; switch it on per package or per subscription under Backups → Customers' own storage, or with berth backup own allow on --plan <package>. The customer then sets it up on the domain's Backups page under Own storage: provider and region (the same EU list as the wizard, or their own address), bucket, schedule (daily, weekly or every 6, 8 or 12 hours), what to include, how long to keep and an optional upload limit. Berth creates an encrypted restic repository and shows its password once. The traffic counts toward the package's monthly traffic, the work runs at the lowest priority and backs off when the server is busy, and the network is fenced so the job can only reach that one storage address. The customer's own OpenPGP key A customer who requires that only they can read their backups sets a public OpenPGP key on the domain's Backups page (Own key), or you do it with berth backup key --sysuser acme --set public-key.asc. Every new archive is then encrypted to that key, including the copies off the server. Nobody else, including you, can open or restore those archives. To restore, the customer downloads the archive, decrypts it with gpg --decrypt and uploads it again. The hourly history is encrypted with a server key, so it is off by default for such subscriptions and can be switched on deliberately. Where to go next Backing up to S3 Backing up to your own NAS Restoring files, mail and databases Restore tests Disaster recovery Point-in-time restore for databases"},{"s":"backup-to-s3","l":"en","t":"Backing up to S3","d":"Paste one temporary key and Berth creates an EU bucket with versioning, Object Lock, a lifecycle rule and a key restricted to that bucket, then starts the encrypted copy.","c":"backup","g":["s3","object lock","immutable","ransomware","backblaze","offsite"],"h":[["two-ways-to-use-s3","Two ways to use S3"],["the-one-key-wizard","The one-key wizard"],["steps-in-the-panel","Steps in the panel"],["what-the-wizard-creates","What the wizard creates"],["from-the-command-line","From the command line"],["object-lock-governance-or-compliance","Object Lock: GOVERNANCE or COMPLIANCE"],["the-lifecycle-rule","The lifecycle rule"],["rolling-a-bucket-back-to-before-an-attack","Rolling a bucket back to before an attack"],["setting-up-s3-by-hand","Setting up S3 by hand"],["loose-archives-in-s3","Loose archives in S3"],["encryption-with-an-archive-key","Encryption with an archive key"],["related","Related"]],"x":"An external copy in S3-compatible object storage protects you against losing the server, and with Object Lock also against someone who gets hold of the server and tries to delete the backups. Berth can set this up for you from a single temporary key, or you can enter an existing bucket and keys yourself. This article covers both, plus encrypted loose archives and how to roll a bucket back after an attack. For the general model of places and schedules, see How backups work. Two ways to use S3 Deduplicated place (restic) Loose archives Label External: moments, encrypted and deduplicated External: loose archives (S3) What lands in the bucket an encrypted restic repository one archive per subscription per run Transfer only what changed the whole archive each time Server settings (for disaster recovery) yes no Readable without Berth with restic and the repository password with gpg and the archive key The one-key wizard creates a deduplicated place. Use loose archives in addition when you want plain files that any Berth server, or a person with gpg, can pick up. The one-key wizard The wizard supports five providers, in EU regions only: Provider EU regions (default first) Scaleway nl-ams, fr-par, pl-waw Backblaze B2 follows the account (EU Central is eu-central-003) AWS eu-central-1, eu-west-1, eu-west-3, eu-north-1, eu-south-1 Wasabi eu-central-2, eu-central-1, eu-west-2, eu-south-1 Hetzner fsn1, nbg1, hel1 For Backblaze, whose region follows the account, Berth refuses an account outside the EU unless you tick Also an account outside the EU. Steps in the panel Go to Backups → Places → Add place and choose Paste one key, the panel does the rest. The page is titled External copy with one key. Choose the provider and the EU region. The page shows which temporary key to create in the provider's console and which permissions it needs. Paste the temporary administrative key. Choose the lock mode, GOVERNANCE or COMPLIANCE, and the retention in days. See below. Optionally adjust how long the copy keeps snapshots (daily, weekly, monthly; default 7, 4 and 6). Tick First copy and restore test right away. The result arrives as a notification. Save the repository password that is shown once, outside the server, for example in a password vault. Without it the copy cannot be opened after the server is lost. What the wizard creates A bucket in the chosen EU region with versioning and Object Lock, and a default retention. A restricted key that can only reach that bucket. It can list, read, write and place delete markers, but it can never bypass or change the lock, set retention or delete the bucket. On AWS the policy explicitly denies s3:BypassGovernanceRetention; on Backblaze the key is limited to the new bucket and lacks the bypass capability. A lifecycle rule named berth-restic (see below). The encrypted copy, configured with the restricted key and a new repository password. From then on a copy refuses to run against a bucket that no longer locks. A nightly schedule to the new place that carries the server settings and the archives on this server, so a full disaster recovery is possible from the first night. For hourly or more frequent off-site snapshots straight from the sources, add a schedule of your own to the same place under Backups → Schedules. The temporary key is held only in memory for the duration of the setup. It is not stored in the database, logs, audit trail or error messages, and it is only sent to the provider's fixed API addresses. Delete it at the provider afterwards. If anything fails halfway, the wizard removes what it had already created and tells you what might remain. Hetzner has no keys per bucket. The copy therefore uses the S3 keys you pasted. Use a dedicated project for backups and choose COMPLIANCE. A dedicated project for backups is good practice with every provider. From the command line The key goes in a file (two lines: key and secret, or accesskey=… and secretkey=…) or on stdin, never as an argument: umask 077 printf '%s\\n%s\\n' \"$KEY_ID\" \"$SECRET\" > /root/temp-key berth backup remote setup --provider scaleway --region nl-ams \\ --mode COMPLIANCE --days 60 --key-file /root/temp-key --first-copy rm /root/temp-key --first-copy waits until the first copy and the restore test have finished. The API equivalent is POST /api/v1/backups/remote/setup; see the REST API. Object Lock: GOVERNANCE or COMPLIANCE With Object Lock, every version of every object stays for at least the retention period, even if someone with the key \"deletes\" everything. A delete then only adds a delete marker; the data underneath remains. GOVERNANCE (the default): the owner of the storage account can still remove locked versions through the provider's console. Suits teams that want a way out, for example to stop paying for storage after a mistake. COMPLIANCE: nobody can remove anything until the term has ended, not you and not the provider. Suits environments where backups must be provably immutable, and anywhere the storage account itself could be compromised. Object Lock can only be enabled when a bucket is created. For an existing place, the place's page shows whether versioning and Object Lock are active, lets you set the default retention, and offers Only copy if the bucket locks, so a run refuses to write to a bucket without a lock: berth backup remote s3-lock --mode COMPLIANCE --days 30 --require berth backup remote s3-status The lifecycle rule With versioning, restic's cleanup never really deletes anything: old versions and delete markers stay behind, and without a rule the storage (and the bill) grows forever. Berth therefore sets a lifecycle rule berth-restic on the repository's folder: old versions are removed after N days; delete markers with nothing behind them are removed; unfinished uploads are removed after 7 days. N is the default retention plus 7 days of margin (30 days of retention gives 37), or 30 days with versioning but no retention. Berth sets the rule when connecting, when you change the retention, and after each copy. Other rules in the bucket are left alone. The place's page and berth backup remote s3-status show \"old versions disappear after N days\" (lifecycle.days). If the provider has no lifecycle rules, or the key may not manage them, the copy still runs, but the page, the CLI and berth doctor warn that old versions stay. When the wizard set the rule with the temporary key, the restricted key may not be able to read it back; the page then says the rule was set during setup and only warns when a longer retention needs a longer rule. Rolling a bucket back to before an attack If someone with the storage keys \"deleted\" your backups, the data is still there under delete markers. Roll the bucket back to a moment before the attack, then restore as usual. In the panel: the place's page → Restore after an attack…, fill in Back to before and first count what would change, then confirm with Really restore. berth backup remote s3-restore --before \"2026-10-20 03:00\" # count only berth backup remote s3-restore --before \"2026-10-20 03:00\" --apply # really berth backup remote verify Add --location <id> when you have more than one deduplicated place. Rolling back works within the lifecycle window of N days, because after that the old versions are gone. Choose the retention with that in mind: if you might notice an attack late, choose a longer retention, or keep a second copy elsewhere, for example on a NAS. Setting up S3 by hand If you already have a bucket and keys, or use another S3 service such as MinIO, choose Or enter the details yourself when adding a place: provider or own address, region, bucket, an optional folder, access key and secret key. An address must be an EU address of the chosen provider, unless you choose Other address. umask 077 printf 'access_key=%s\\nsecret_key=%s\\n' \"$AK\" \"$SK\" > /root/s3-keys berth backup location add --kind restic --name \"Offsite EU\" --storage s3 \\ --fields endpoint=https://s3.example.com,bucket=acme-backups,path=server1 \\ --keys-file /root/s3-keys Without --password-file, Berth generates the repository password and shows it once. Backblaze B2 (native API), SFTP, a REST server, Azure Blob Storage, Google Cloud Storage and a mounted path are set up the same way with --storage b2|sftp|rest|azure|gcs|path. For SFTP, the page then shows the server's public key to put in authorized_keys on the backup server. Loose archives in S3 Under Add place, External: loose archives (S3) stores each archive as an object in a bucket. You choose how many archives per subscription to keep, and Berth labels the place EU or outside the EU. Encryption with an archive key A new loose-archive place encrypts archives itself, before upload, with an archive key for that place (OpenPGP, AES-256). The provider only sees encrypted files; server-side encryption by the provider (SSE) can be added on top. The checkbox is Encrypt archives locally; on an existing place, tick it to start encrypting new archives. Berth shows the key once after adding the place. Later you can show it again with Show archive key on the place's page or berth backup location archive-key <id>; that action is recorded in the audit trail. Store it outside the server. Without it, the archives cannot be restored on a new server. Decrypting without Berth needs nothing but gpg: gpg --decrypt 20261020-013000.tar.gz.gpg > 20261020-013000.tar.gz # passphrase: the archive key On a new server, add a loose-archive place with the same bucket, the access keys and the archive key (--archive-key-file), then fetch archives with berth backup fetch; they are decrypted on the way in. Archives that a customer encrypted with their own OpenPGP key are stored and fetched as they are. berth backup location add --kind s3 --name \"Archives EU\" \\ --endpoint https://s3.example.com --bucket acme-archives --prefix server1 \\ --keys-file /root/s3-keys berth backup schedule add --name \"Archives to S3\" --location <id> \\ --schedule daily --hour 3 --keep 14 Related Restoring files, mail and databases Restore tests Disaster recovery"},{"s":"backup-to-nas","l":"en","t":"Backing up to your own NAS","d":"Send the encrypted external copy to a Synology, Ugreen or TrueNAS with a downloadable package that runs an append-only rest-server, so the server itself can never delete its backups.","c":"backup","g":["nas","synology","truenas","ugreen","append-only","offsite"],"h":[["how-it-protects-your-backups","How it protects your backups"],["supported-nas-systems","Supported NAS systems"],["setting-it-up","Setting it up"],["from-the-command-line","From the command line"],["cleanup-on-the-nas","Cleanup on the NAS"],["a-second-layer-nas-snapshots","A second layer: NAS snapshots"],["without-containers-sftp","Without containers: SFTP"],["replacing-the-password","Replacing the password"],["restoring-from-the-nas","Restoring from the NAS"],["related","Related"]],"x":"A NAS at the office or at home makes a good external place: the data stays on hardware you own, and with append-only storage nobody who takes over the hosting server can delete the backups. Berth sets this up with a downloadable package for your NAS: one compose file with a restic rest-server, a certificate that Berth pins, and a cleanup task that runs on the NAS itself. The NAS becomes an external deduplicated place, with the same functions as any other: encrypted snapshots, restore tests, fetching snapshots back to the server and full disaster recovery. For the general model, see How backups work. How it protects your backups What runs on the NAS (all defined in the package's compose.yaml): A restic rest-server in append-only mode, with private repositories. The hosting server can add snapshots but cannot delete or overwrite anything. Even someone who fully controls the hosting server cannot throw the copy away, which gives you on your own hardware what Object Lock gives you on S3. TLS only, with a certificate that Berth created. restic trusts only that certificate and Berth checks its fingerprint, so another machine on the same address is refused. The server signs in with a strong random password, stored on the NAS as a bcrypt hash. A cleanup task that runs restic forget --prune once a day on the NAS itself, with its own repository key and the retention policy from the package. It works directly on the folder with the copy (not through the rest-server, where append-only applies to everyone) and waits while a copy from the server is running. Its key exists only in the package; Berth drops its own copy after connecting. Optionally a Tailscale container that the rest-server shares its network with, so no port has to be opened on your router. The retention policy lives only on the NAS on purpose: nothing the server writes decides what the NAS deletes. Supported NAS systems Brand Requirement Where the compose file goes Synology DSM 7.2 with Container Manager a new project in Container Manager Ugreen UGOS Pro with the Docker app a new project in the Docker app TrueNAS SCALE / Community Edition 24.10 or newer Apps → Install via YAML No containers on your NAS, for example TrueNAS CORE? Use the SFTP route described below. Setting it up In the panel: Backups → Places → Add place → Your own NAS: Synology, Ugreen or TrueNAS. The assistant has six steps; it takes about ten minutes. Brand. Choose Synology, Ugreen or TrueNAS. The steps and the package differ per brand; the protection is the same everywhere. Connection. Tailscale (recommended): the package starts its own Tailscale container next to the rest-server. No port opens on the router; this server must be in the same tailnet. Home network or VPN: the server reaches the NAS directly. If Tailscale already runs on the NAS itself, enter the NAS's Tailscale address here. Internet with port forwarding: the router forwards one port to the NAS. Preferably allow it only for this server's address. On TrueNAS you also choose the dataset path. Under Retention and cleanup on the NAS you set the policy (default 7 daily, 4 weekly, 6 monthly) and the hour of the daily cleanup, in UTC. Download the package. A zip with compose.yaml, LEESMIJ.md (the steps for your NAS), NOODHERSTEL.md (emergency recovery) and certificaat.pem. The package contains keys: download it once and keep it safe. A new package replaces the previous one once you connect again; until then the existing copy keeps working. With Tailscale you can include an auth key, which only goes into the package. Put it on the NAS. Create the folder or dataset, create a project or app, and paste the content of compose.yaml. Everything is in that one file; no separate files need to go to the NAS. The page and LEESMIJ.md describe the buttons as they are called on your NAS. Connect and test. Berth checks that the NAS is reachable, shows the pinned certificate, knows the password and refuses deletion: it tries to delete a snapshot that does not exist, and an append-only NAS must refuse. Only when all of that is true does Berth create the encrypted repository, add the cleanup task's key and make the NAS an external place. First copy and restore test, in the background. The result arrives as a notification. Then add or adjust a schedule to the NAS under Backups → Schedules. From the command line berth backup remote nas package --brand synology --connection tailscale -o nas.zip \\ --tailscale-key-file /root/ts-key # optional: auth key into the package berth backup remote nas guide --brand synology --connection tailscale # the steps berth backup remote nas connect --first-copy # connect, first copy, restore test berth backup remote nas # status, including cleanup on the NAS berth backup remote nas test # run the full test again Other package options include --keep-daily, --keep-weekly, --keep-monthly, --prune-hour-utc and, for TrueNAS, --dataset. Cleanup on the NAS Because the server cannot delete anything, it does not prune a NAS. After every round the cleanup task records its result as a small status snapshot. The place's page shows when the NAS last cleaned up and with which policy, and warns (also as a notification after a copy) when cleanup failed or has not succeeded for several days. To change the policy, edit KEEPDAILY, KEEPWEEKLY and KEEP_MONTHLY in compose.yaml on the NAS and restart the project. Before every copy, Berth checks again that the NAS still refuses deletion. If it suddenly allows it (for example after someone replaced the compose file without --append-only), the copy continues but you get a warning and a notification. A second layer: NAS snapshots Turn on snapshots for the folder or dataset on the NAS as well: Synology: Snapshot Replication; TrueNAS: Data Protection → Periodic Snapshot Tasks; Ugreen: snapshots, if your model offers them for shared folders. Those snapshots are read-only and outside the cleanup task's reach. If the NAS itself is ever tampered with by someone with administrator rights on it, you roll the folder back to a snapshot from before, restart the project and restore as usual. Without containers: SFTP On a NAS without container support, choose Without containers (SFTP) in the assistant, or run berth backup remote nas sftp. The page shows per brand how to enable the SFTP service and a user for the backups, and where the server's public key goes (also downloadable as authorized_keys). Berth then sets up the copy with a new password that you see once. berth backup remote nas sftp --brand truenas --host truenas.example.lan \\ --path /mnt/tank/berth-backup berth backup remote nas sftp-key # the server's public key Over SFTP the server can delete, and restic cleans up from the server side. With this route, NAS snapshots are not optional. Replacing the password Replace password on the place's page, or berth backup remote rotate, adds a new key to the repository. On an append-only NAS the old key cannot be removed from the server; the notification gives the command to remove it on the NAS through the cleanup container. Restoring from the NAS Everything you need for an emergency is in the package you downloaded: NOODHERSTEL.md names the repository address and the password of the copy; certificaat.pem is the rest-server's certificate; restic refuses the connection without it. A new server must reach the NAS the same way the old one did: join the same tailnet first, or allow the new server's address on the router. umask 077 printf '%s\\n' '<password from NOODHERSTEL.md>' > /root/copy-password berth dr restore --repo 'rest:https://…' --password-file /root/copy-password \\ --cacert certificaat.pem --yes The NAS stays append-only during a restore; Berth only reads. Afterwards it reconnects the NAS as the external place, again without server-side cleanup. See Disaster recovery for the full procedure. Related Restoring files, mail and databases Restore tests Backing up to S3"},{"s":"restoring-data","l":"en","t":"Restoring files, mail and databases","d":"Get back a single file, a mailbox, one mail folder, a database, a whole account or a deleted subscription from the hourly history or an archive, next to the original or over it.","c":"backup","g":["restore","recover","history","mail","database","undelete"],"h":[["where-a-restore-comes-from","Where a restore comes from"],["the-hourly-history","The hourly history"],["restoring-from-the-history","Restoring from the history"],["searching-across-moments","Searching across moments"],["comparing-two-moments","Comparing two moments"],["restoring-from-an-archive","Restoring from an archive"],["a-deleted-subscription","A deleted subscription"],["downloads","Downloads"],["who-can-do-what","Who can do what"],["archives-with-the-customer-s-own-key","Archives with the customer's own key"],["related","Related"]],"x":"Most restores are small: one overwritten wp-config.php, a mail folder a customer emptied by accident, a database before a failed plugin update. Berth lets you, and your customers, restore exactly that piece from the hourly history or from an archive, without touching the rest of the account. This article covers where restores come from, the choices you get, searching and comparing moments, and downloads. Where a restore comes from Source Granularity Best for History on this server a moment every hour by default, down to every 15 minutes recent mistakes: \"as it was at 14:00\" Archives on this server one per schedule run, usually nightly a known-good state from a previous night External places (S3, NAS) per schedule anything older, or when the server's own copies are gone Snapshots on an external deduplicated place are fetched into the subscription's history first, after which they work exactly like local moments. On the history page use Fetch from the external copy, on the backups page Fetch into the history, or the CLI: berth backup location pull <place-id> --sysuser acme berth backup history pull --sysuser acme Only moments from after the subscription was created come back, never those of an earlier subscription that used the same system user. Loose archives in S3 come back with berth backup fetch. For databases there is also point-in-time restore, which replays the binary log or WAL to any moment within its window. The hourly history Next to full archives, Berth keeps a history per subscription: a restic repository on this server with a moment every hour by default. Each moment holds the webspaces, the Maildirs and a dump of every database. restic skips unchanged files by their metadata and stores each piece of data only once, compressed, so a round with few changes takes seconds and a few megabytes. Caches, temporary folders and the output of backup plugins (for example wp-content/cache and UpdraftPlus archives) are left out. The default retention keeps the newest moment of each of the last 48 hours, 14 days, 8 weeks and 6 months. The work runs at the lowest CPU and IO priority, and a disk guard skips a round with a notice rather than fill the disk. The history is configured as a schedule to the place History on this server. Per subscription it can be switched off on the history page under Settings, optionally removing the existing moments. A customer can capture a moment by hand with Capture a moment now, for example before a large change. Restoring from the history Open the domain → Backups → History. Pick a moment on the timeline (today, yesterday, this week, earlier). Browse Websites, Mail or Databases. Folder sizes are shown as they were at that moment. Choose Restore… on a file, folder, mailbox, mail folder, message or database, and how: What Next to what is there now (default) Instead of what is there now File or folder in herstel/<YYYYMMDD-HHMM>/ in the webspace replaces the current one Whole website in herstel/<time>/ the whole webspace (herstel/ stays) Mailbox or mail folder in a folder Hersteld-<time> Only missing messages back or Exactly as it was Single messages in Hersteld-<time> back in their own folder Database a new database with its own password, shown once emptied and restored The whole subscription everything next to it everything exactly as it was (Restore everything…) Restoring next to the original never loses anything: you look first, then move what you need. Overwriting asks you to type terugzetten (restore) first, and when four-eyes approval is enabled it goes past a second administrator. To find a lost message, open the folder, search by subject or sender, tick the message and restore it into its folder. berth backup history restore --sysuser acme --at \"2026-10-28 14:00\" \\ --domain acme.nl --path httpdocs/wp-config.php # next to it berth backup history restore --sysuser acme --at latest \\ --domain acme.nl --path httpdocs/wp-config.php --over # over it berth backup history restore --sysuser acme --at \"14:00\" \\ --mailbox info@acme.nl --folder INBOX --mode merge # alongside | merge | replace berth backup history restore --sysuser acme --at \"2026-10-27 09:00\" \\ --database acme_wp # as a new database berth backup history restore --sysuser acme --at \"2026-10-27 09:00\" --all --over --at accepts latest, a moment ID (or its first characters) or a time; a time picks the last moment at or before it. Searching across moments Search answers \"when did this file exist, and when did it disappear?\". Type part of a name or path (wp-config, uploads/photo, *.php), optionally with a website and a period. Per hit you see in which moments it existed, how many versions there were, and the first moment without it. Each version can be viewed, downloaded or compared with the previous one. berth backup history find --sysuser acme --query wp-config --since 2026-10-01 Comparing two moments Diff shows what changed between two moments: files and folders added, removed or changed, the busiest folders, per mailbox the number of messages added and removed, and which database dumps changed. For a text file you can see the line-by-line difference as a unified diff. This is often the fastest way to find what a compromised plugin changed, or which upload removed a folder. berth backup history diff --sysuser acme --from \"13:00\" --to \"14:00\" berth backup history diff --sysuser acme --from \"13:00\" --domain acme.nl \\ --path httpdocs --change removed berth backup history diff --sysuser acme --from \"13:00\" --domain acme.nl \\ --file httpdocs/wp-config.php Restoring from an archive Open an archive from Backups (or the domain's Backups page) and choose what to restore: What Options Files and folders one or more at a time (Choose files), next to the original in herstel/<archive>/ or over it; or whole webspaces Mailboxes only missing messages back (merge), into a folder Hersteld-<archive> next to it, or exactly as it was. A deleted mailbox comes back with its old password, quota and rules Databases (MariaDB and PostgreSQL) into a new database next to it, with its own user, or over the existing one. A deleted database comes back with the same users and passwords Container volumes per volume, exactly the state of the archive The whole account (Restore the whole account) domains, mailboxes, aliases and databases that were removed since come back, and all content gets the state of the archive Databases are never restored with more rights than the customer has. berth backup overview --q acme.nl berth backup restore-items --sysuser acme --name 20261028-013000.tar.gz \\ --mailboxes info@acme.nl --mail-mode merge \\ --databases acme_wp --db-mode alongside berth backup restore-items --sysuser acme --name 20261028-013000.tar.gz \\ --files acme.nl:httpdocs/wp-content/uploads --files-alongside berth backup snapshot --sysuser acme --name 20261028-013000.tar.gz # whole account A deleted subscription Archives of deleted subscriptions stay under Backups for the configured period (30 days by default, pinnable). Restoring the whole account from such an archive rebuilds the subscription with its domains, mail, databases and content: open the archive and choose Restore the whole account, or use berth backup snapshot. The history of a deleted subscription can be browsed and downloaded by an administrator, but deliberately not restored into another subscription: one wrong choice would put the previous owner's data in someone else's account. Downloads Instead of restoring, you can download: a single file as it was; a folder as a zip; a single message as .eml, or a mail folder or mailbox as a zip of .eml files; a database dump as .sql.gz. Downloads stream straight from the backup to the browser without being unpacked on disk first. They require a recent sign-in. berth backup history dump --sysuser acme --at \"14:00\" --domain acme.nl \\ --path httpdocs/wp-content/uploads --zip --out uploads.zip berth backup history dump --sysuser acme --database acme_wp --out acme_wp.sql.gz berth backup files download --name 20261028-013000.tar.gz --domain acme.nl \\ --path httpdocs --zip --out site.zip Who can do what Customers and resellers restore and download their own data from the history and from archives, within their own subscriptions. Administrators can do everything, including fetching external snapshots and restoring deleted subscriptions. Auditors see timelines, names, times and counts, but download nothing and see no mail subjects, senders or line diffs. Line diffs and overwrite restores are recorded in the audit trail. Archives with the customer's own key If a customer set their own OpenPGP key, nobody but the customer can read the archive. They download it, decrypt it (gpg --decrypt archive.tar.gz.gpg > archive.tar.gz) and upload it again on the domain's Backups page with Upload. The upload is removed automatically after a day. Related How backups work Restore tests Disaster recovery Mailboxes Databases"},{"s":"restore-tests","l":"en","t":"Restore tests","d":"Berth regularly restores a backup into a sealed sandbox, imports the databases, counts the mail and requests every site, so you know your backups work before you need them.","c":"backup","g":["restore test","backup verification","sandbox","restic check","integrity"],"h":[["what-a-restore-test-does","What a restore test does"],["what-is-tested-per-place","What is tested per place"],["setting-the-frequency","Setting the frequency"],["running-a-test-by-hand","Running a test by hand"],["checking-a-place","Checking a place"],["built-in-checks-around-the-copy","Built-in checks around the copy"],["failed-tests-and-alerts","Failed tests and alerts"],["going-further-a-disaster-recovery-drill","Going further: a disaster-recovery drill"],["related","Related"]],"x":"A backup you have never restored is a hope, not a backup. Berth therefore tests restores on a schedule: it takes a real backup, restores it where it cannot touch anything live, and checks that the result works. This article explains what is tested for each kind of place, how to run and follow a test, and how to go further with a full disaster-recovery drill. What a restore test does For archives, the test restores an archive into an isolated sandbox and checks every part of it: Choose an archive from the schedule's run (or the newest archive of a random subscription). Check the archive and prepare the sandbox. Unpack the archive as an unprivileged user. Live webspaces, databases and mailboxes are never touched. Files: check the unpacked webspaces. Databases: import each database as a temporary copy and count its tables. Mail: count the mailboxes and messages. Sites: request every site through a PHP server inside the sandbox. Clean up: the sandbox, the temporary databases and their users are removed. Each step ends as succeeded, failed or skipped (with the reason, for example a site that cannot be requested safely). The verdict and every check are stored with the test. The test is background work. It runs at low priority, and archive and dump reads are throttled, so the panel and the sites stay responsive. A large archive simply takes longer. What is tested per place Tests are set per schedule, so each place is tested with what that schedule actually made. You find the overview under Backups → Schedules when editing a schedule, under What is tested per place. Place What the test does Archives on this server a random archive from the run, restored in the sandbox as described above External: loose archives (S3) a random archive from the run, tested on this server before it is uploaded History on this server for a random subscription: restic check on a sample of the data, and one file or database dump from the newest moment restored into a temporary folder External: moments, encrypted and deduplicated (S3, NAS, SFTP, …) restic check on part of the data, and one file or database dump from this schedule's newest snapshot fetched back into a temporary folder For external deduplicated places the check reads a different twelfth of the data each day. With a weekly test, every byte in the repository has been read back once after twelve weeks; with a daily test, after twelve days. A fixed random sample would leave some data unread forever. For loose S3 archives, Check now on the place confirms that the bucket is reachable and readable. Setting the frequency Each schedule has a Restore test field: never, after every run, daily, weekly or monthly. berth backup schedule add --name \"Everything nightly\" --location server \\ --schedule daily --hour 1 --minute 30 --keep 7 --test weekly If no schedule asks for a test, Berth still tests the newest archive of a random subscription once a week, early in the morning. Running a test by hand On Backups, the card Restore test shows the last result and a strip of recent tests. Test now starts one, for a chosen subscription or a random one. While it runs, the task bar at the top of the page shows which subscription and archive are being tested and the current step (while unpacking, with the share of the archive read so far). Details lists every step with its result and explanation. Stop… aborts at the next step: whatever is running is stopped and the sandbox and temporary databases are removed. A stopped test does not count in the history and sends no notification. If the panel or the server stops during a test, it is marked aborted. berth backup restore-test --sysuser acme # test now, steps on screen, report as JSON berth backup restore-test status --wait # follow a running test, also one the panel started Checking a place Every place has Check now on its page, or: berth backup location verify <place-id> berth backup remote verify --location <place-id> For a deduplicated place this runs restic check and restores a file or database dump as a test. If a copy or a NAS cleanup holds the repository at that moment, the check waits a while and then reports \"busy, try again later\" instead of an error. Cleanup of old snapshots is postponed while a check or test uses a place, so a test never races against pruning. The place's page also shows its health: last successful run, last error, last check or restore test with the outcome and the explanation, and how much space it uses. Built-in checks around the copy Some guarantees are checked on every run, not only during tests: NAS: before each copy, Berth checks that the rest-server still refuses deletion (append-only). If it does not, you get a warning and a notification. See Backing up to your own NAS. S3 with Object Lock: with Only copy if the bucket locks, a run refuses to write to a bucket without a lock. See Backing up to S3. Customer data: an external run without any customer data is reported as a warning, not as a success. See How backups work. Failed tests and alerts A failed test arrives as the notification Restore test failed through your notification channels, with the step that failed and why. The result is also visible on the place's page and in the schedule's last runs. Fix the cause and run Test now again. Restore tests and their outcomes are part of the monthly reports and of the evidence you can hand to an auditor; see Evidence for audits. Going further: a disaster-recovery drill A restore test proves that individual backups can be read and restored. To prove you can rebuild a whole server from the external copy alone, run a drill: install Berth on a disposable server and restore everything with berth dr restore --drill. The clone becomes a practice server on which all mail is held and nothing reaches the outside world. We recommend doing this every quarter. See Disaster recovery. Related Restoring files, mail and databases How backups work"},{"s":"disaster-recovery","l":"en","t":"Disaster recovery","d":"Rebuild a whole server from the external backup with berth dr plan and berth dr restore, also onto another operating system, from the browser on a fresh install, or as a drill on a disposable server.","c":"backup","g":["disaster recovery","dr","full restore","bare metal","drill","ransomware"],"h":[["before-you-need-it","Before you need it"],["what-you-need-on-the-day","What you need on the day"],["the-steps","The steps"],["what-berth-dr-restore-does","What berth dr restore does"],["where-each-subscription-s-content-comes-from","Where each subscription's content comes from"],["restoring-onto-a-different-operating-system","Restoring onto a different operating system"],["from-the-browser-on-a-fresh-install","From the browser on a fresh install"],["restoring-from-a-nas","Restoring from a NAS"],["after-an-attack-on-the-s3-backup","After an attack on the S3 backup"],["what-does-not-come-back-automatically","What does not come back automatically"],["only-a-few-subscriptions","Only a few subscriptions"],["how-long-it-takes","How long it takes"],["practising-with-a-drill","Practising with a drill"],["related","Related"]],"x":"When a server is gone (hardware failure, ransomware, a mistake that cannot be undone), Berth rebuilds it on a new machine from the external backup alone: configuration, panel database, every subscription with its websites, mail and databases, the same system users and uids. This article describes what you need, the steps, how restoring onto a different operating system works, the browser route on a fresh install, and how to practise safely with a drill. As a reference point: in a real drill, a server with a little over 100 GB of websites, mail and databases was restored from S3 in 79 minutes without errors, and every database and mailbox was identical to the source. Before you need it Disaster recovery only works if you set it up beforehand: An external deduplicated place (S3, a NAS, SFTP, …) with a schedule that includes the server settings (the option Also the server settings). The one-key wizard and the NAS assistant create such a schedule for you. Subscriptions whose content reaches that place: directly, through a copy of the archives, or through a copy of the history. Berth warns when it does not; see How backups work. The repository password, stored outside the server, for example in a password vault. Without it the backup cannot be read. For a NAS: NOODHERSTEL.md and certificaat.pem from the package. Test it with a drill (below) before you have to rely on it. What you need on the day The repository address (s3:…, sftp:…, rest:…, b2:… or a path) and the password, in a file. For S3 and similar: the access credentials as KEY=value lines in a file, for example AWSACCESSKEYID=…, AWSSECRETACCESSKEY=… and AWSDEFAULTREGION=…. A new server with a supported operating system. The same OS as the old server is simplest; another one works too (see below). Set up the VPN first, as for any install. Enough disk: roughly the size of all websites, mail and databases together, plus the largest customer once more. berth dr plan calculates it. The steps Install Berth on the new server with the same host name as the old one: ``bash sudo berth install --hostname server.example.nl --php 8.3,8.2 `` See what would come back. This changes nothing on the server and writes nothing to the repository: ``bash sudo berth dr plan --repo s3:https://s3.example.com/acme-backups/berth \\ --password-file /root/repo-pw --env-file /root/repo-env `` You see the snapshot with the server settings, per subscription the source with its time and size, subscriptions without a source, and whether the disk is large enough. --json gives the same as JSON. Restore everything: ``bash sudo berth dr restore --repo s3:https://s3.example.com/acme-backups/berth \\ --password-file /root/repo-pw --env-file /root/repo-env --yes `` --yes is required because the new server's panel database and configuration are overwritten. --snapshot picks an older snapshot than the newest; --no-content restores only configuration and accounts, without files, mail and databases. For a NAS, add --cacert certificaat.pem; for an SFTP repository with its own key, --ssh-key-file. Check the server: ``bash sudo berth doctor `` Point the IP address (or DNS) at the new server. If you take over the old address, customers do not change anything. What berth dr restore does Stops the backup timer for the duration of the restore, so no schedule writes a half-restored server to the external place or prunes there, and pauses the panel and its other background timers while the panel database is imported. Then it connects the repository. Before anything changes: compares the operating system in the backup with this one and resolves the questions (see below), picks the snapshot with the server settings, measures the space needed and stops if it does not fit. Then it puts the panel configuration, the archives and the key for sealed secrets in place, without an intermediate copy. Imports the panel database and the database users with their password hashes. Users the new installation already has, such as the panel itself and webmail, keep their own password. Runs berth install --reconfigure with the same PHP versions, groups and components as the old server, then webmail, the ionCube Loader where it was used, and the backup places that use the same repository. Rebuilds everything from the database: system users with the same uids, websites, mail, FTP, cron jobs, hosted DNS with its DNSSEC keys, databases, object caches and suspensions, and per subscription the content from the newest source. The output ends with what you still need to do yourself. Takes a new integrity baseline and switches the backup timer back on. Certificates come along and renew themselves as usual afterwards. Where each subscription's content comes from Per subscription, the restore takes the newest of three possible sources: Source What it is How it comes back Archive an archive from the copy of the archives as an archive on the server, then the whole account over it Direct snapshot a snapshot from a schedule straight to the external place fetched into the subscription's history, then the whole subscription restored over it History copy a copied moment of the local history the same way Only content that belongs to this subscription counts: snapshots from before its creation date (of an earlier subscription with the same system user) are ignored. A subscription without any source gets a warning at the end: the account is back, without files, mail and databases. Per subscription, the output and the audit trail record the source, the snapshot, its size and the outcome. berth dr plan warns when a subscription's content is more than a day older than the panel database that comes back: what the customer removed since then would return, and what was added since would come back empty. Usually that is a schedule that lagged behind; choose an older --snapshot, or restore that subscription separately afterwards. Restoring onto a different operating system A backup from Debian 13 can be restored on AlmaLinux or Rocky Linux 10, or Ubuntu 24.04 or 26.04, and every other direction. The backup records which system the old server ran. berth dr plan and berth dr restore compare it with the new server and: translate automatically whatever is unambiguous: paths, service names (apache2 ↔ httpd), PHP package names (Sury ↔ Remi), the web server user, Postfix tables, the hosted DNS directory, SELinux labels on EL, MariaDB collations between versions, and an address with exactly one successor. The plan names every translation; ask a question with a proposal for whatever is not: Question (key) When Choices Without an answer php:5.6 a PHP version that cannot be installed here a version that can (proposal: the next one up) stops beforehand php:5.6@acme the same question for one subscription (answers file only) a version the version question applies extension:8.2:imagick an extension without a package for the target version overslaan (skip), stoppen (stop) stops beforehand image:acme/web a container image of another architecture opnieuw ophalen (pull again), uitzetten (disable) pull again local:nginx/custom.conf a custom snippet with a path that does not exist here uitzetten (disable), behouden (keep) disable address:192.0.2.10 an address that is not on this server and has no clear successor an address of this server, or geen (none) stops beforehand Answer them in a file: sudo berth dr plan --repo … --password-file /root/repo-pw --env-file /root/repo-env \\ --answers-template /root/answers.json nano /root/answers.json # review the proposals under \"answers\": key → answer sudo berth dr restore --repo … --password-file /root/repo-pw --env-file /root/repo-env \\ --answers /root/answers.json --yes Without --answers, dr restore asks in the terminal (Enter accepts the proposal). Without a terminal or a file, a question with a safe proposal goes ahead with that proposal; a question without one stops the restore before anything changes. All questions come before anything is restored, so a restore never stops halfway. The audit trail records both systems, every translation and every answer. Changing a PHP version can break a site that relied on the old one, so check the sites afterwards. Network interfaces and extra addresses you set up yourself. From the browser on a fresh install Prefer not to type on the server? After berth install, the first-setup page offers Restore from an external backup. You enter the setup code, choose the source (S3, an SFTP server or a NAS), fill in its details (for SFTP the private key, for a NAS also certificaat.pem), the repository password, optionally a snapshot, and whether the subscriptions' content comes along. The same berth dr restore then runs as a background job, with the same space check beforehand. The page shows the six steps and the log and refreshes itself, also while the panel restarts during step 4. Afterwards you sign in with your own account from the backup. This route exists only on a server that has never been configured, and only with the setup code. As soon as an administrator exists, the form is gone. On a running server, use berth dr restore. If the backup comes from another operating system and has questions without a safe proposal, the browser route stops beforehand and lists them; then restore on the command line with an answers file. Secrets you enter there appear in no argument, log line or error message, and are removed when the job ends. Restoring from a NAS Use the repository address and password from NOODHERSTEL.md and add --cacert certificaat.pem. The new server must reach the NAS as the old one did (same tailnet, or its address allowed on the router). The NAS stays append-only during the restore; Berth only reads. See Backing up to your own NAS. After an attack on the S3 backup If someone deleted the backups with stolen keys, a versioned bucket with Object Lock still holds the data under delete markers. Roll the bucket back first, then restore as above: sudo berth backup remote s3-restore --before \"2026-10-20 02:00\" # count first sudo berth backup remote s3-restore --before \"2026-10-20 02:00\" --apply # then for real sudo berth backup remote verify This works within the lifecycle window shown on the place's page. See Backing up to S3. What does not come back automatically IP addresses and DNS: point them at the new server, or move the address on the host. The VPN: set it up on the new server before restoring; a NAS or a source behind the VPN is otherwise unreachable. The licence: check Licence (berth license status) and activate again if asked; see Licence and trial. Changes outside Berth: packages Berth does not know, files in /etc outside the panel's own configuration, root's crontab, your own systemd units. The local history: fetch each subscription's moments back from the external place with berth backup history pull --sysuser <user>. Places with their own credentials: access to other backup places is deliberately not in the backup; enter their passwords and keys again under Backups → Places. System apps and container images: images are pulled again; the restore names what you need to set up again. Logs, malware quarantine, spam-filter learning data and extensions start empty; the ACME account is new, the certificates themselves come along. Caches, temporary folders and backup-plugin output (for example wp-content/cache, UpdraftPlus and All-in-One WP Migration archives, Dovecot indexes) are deliberately left out of the history and direct snapshots. Dovecot rebuilds its indexes by itself. Only a few subscriptions You do not need a full recovery to get one customer back: Direct snapshots or history copies: Fetch from the external copy on the subscription's history page (or berth backup history pull --sysuser acme), then restore from the history; see Restoring data. Loose archives in S3: berth backup fetch (also from another server), then restore the whole account with berth backup snapshot. Moving a subscription to another Berth server: use a transfer file; see Importi"},{"s":"migration-overview","l":"en","t":"Moving to Berth from Plesk, cPanel or DirectAdmin","d":"Take over a whole Plesk, cPanel, DirectAdmin or Berth server over read-only SSH, with passwords, mail UIDs and database hashes intact, an IP takeover so customers change nothing, and a way back.","c":"migration","g":["migration","plesk","cpanel","directadmin","move","switch"],"h":[["which-route-fits","Which route fits"],["the-old-server-is-never-changed","The old server is never changed"],["what-carries-over","What carries over"],["accounts-and-plans","Accounts and plans"],["websites","Websites"],["mail","Mail"],["databases","Databases"],["imported-accounts-wait-until-activation","Imported accounts wait until activation"],["switching-over-an-ip-takeover","Switching over: an IP takeover"],["the-way-back","The way back"],["checking-it-is-the-same","Checking it is the same"],["related","Related"]],"x":"Berth was built to replace Plesk on a production server, and moving a full server is a first-class feature, not an afterthought. You copy everything while the old server keeps running, synchronise as often as you like, and switch over in a short maintenance window by taking over the old server's IP addresses. Customers change nothing: no DNS, no mail client settings, no new passwords. Import, nightly synchronisation, parity checks and a full cutover rehearsal have been run against a production Plesk server with 25 accounts. This article explains the approach and what carries over. The step-by-step procedure is in Migrating a server. Which route fits You have Route A running server with Plesk, cPanel, DirectAdmin or Berth the migration console, Admin → Migration: Migrating a server A Plesk backup file Importing backup files A cPanel cpmove or DirectAdmin user backup Importing backup files One subscription on another Berth server a transfer file One website at a host without a panel Import on the domain page Mailboxes at another provider Mail import Imports need a valid licence or the trial period; see Licence and trial. The old server is never changed A live migration reads from the source over read-only SSH. Berth installs a single identity on the source whose key is bound to a forced command: a small helper that can only read. It allows read-only rsync, listing databases and grants, mysqldump, pg_dump and measuring sizes, and refuses everything else. Every action runs at the lowest CPU and IO priority on the source and is logged. You choose how that access gets there: The root password, once. Berth uses it to install the helper and a key that only works from this server and only for reading, and forgets the password immediately. It is never stored. A script that you paste and run as root on the old server yourself. A key that is already there. Before connecting, you confirm the source's SSH host-key fingerprint, so you know you are talking to the right machine. Berth then detects which panel runs there (with version and number of accounts), and you confirm it. Because the old server is only read, it keeps running exactly as before throughout the migration and remains available as the way back. What carries over Accounts and plans Customers, with their panel password hashes. They are re-hashed to argon2id the first time the customer signs in. Resellers, with their customers underneath. A reseller that does not exist yet is created. Plans become packages. Plesk limits (disk space, traffic, counts) become package values, with per-subscription overrides where a subscription differed. System users with the same name and uid, and their SFTP passwords. Suspension status. Websites Domains with document root, aliases, redirects and the preferred domain. PHP version and settings per domain, and the PHP-FPM process model. Extra nginx and Apache directives. Certificates and HSTS. Each sync picks up a certificate that the source renewed in the meantime, so every site has a valid certificate at the moment of switching. FTP accounts, protected folders, cron jobs and SSH keys. Encrypted PHP code (ionCube, SourceGuardian, Zend Guard) is detected and flagged when a loader is needed. Mail Mailboxes with the same password hashes, so nobody needs a new password. Passwords that Plesk stores reversibly are taken over and hashed immediately. Forwards, aliases, autoresponders, Sieve filters and DKIM keys. Mail UIDs: the dovecot-uidlist and UIDVALIDITY of every folder are kept, so mail clients see the same messages and do not download everything again. Webmail data from Roundcube (address books, contact groups, identities and signatures) and SpamAssassin preferences (whitelist, blacklist, threshold, subject marking), mapped onto Berth's spam settings. The on-disk layout is the same as Plesk's (/var/www/vhosts/<domain>, Maildir under /var/qmail/mailnames, the INBOX. namespace), so content moves as it is; see On-disk layout. Databases MariaDB and PostgreSQL databases with the same names. Database users with the same password hashes, including users with access to several databases. Imported accounts wait until activation An imported subscription is complete on Berth but waiting: cron jobs are off; the panel sends no mail to the customer; certificates are not requested or renewed here yet; inbound mail is answered with a temporary failure (450), so a sending server simply tries again later. The old server stays the live one. You can sync as often as needed: each sync brings the content up to date and, for Plesk sources, also rebuilds the source's structure, so a domain, mailbox, database or FTP account that the customer added on the old server appears here too. Things removed on the source are never removed here automatically; they appear as a to-do with a button to remove them here as well. Settings that you changed here are not overwritten. Switching over: an IP takeover When everything is in sync, the switch happens in one maintenance window, in two phases: Phase 1: a final sync with table locks and a mail comparison per folder. Nothing is switched yet. Pause: you take the old server off the network for the addresses that move (on the virtualisation host, or at the provider for a routed IP). Address check: Berth checks on the network, with ARP for IPv4 and NDP for IPv6, that the old server no longer answers. Go / no-go. Phase 2: the addresses go onto this server's network interface, the router is told immediately (gratuitous ARP, unsolicited neighbour advertisement), and all accounts are activated. Optional test mode: only the sources you allow reach the taken-over addresses; everyone else gets a TCP reset, so mail servers retry later and nothing from customers arrives yet. Open: test mode off, customers are on Berth. Berth can also take on the old server's identity: the outbound mail address and HELO name, the old server's own host names (smtp., imap., the old panel address) with valid certificates, and the default certificate for mail clients that send no server name. If the old and new server cannot share addresses, the alternative is new addresses with a DNS change. Berth updates the records itself for domains at a connected DNS provider, and you can then switch per account. The way back Until you choose Open, going back costs nothing: customers have not written anything on Berth yet. The way back (Rollback) puts the accounts back into the waiting state and releases the addresses; you then give them back to the old server, which was never changed. After Open you can still go back, but what customers did on Berth in the meantime (mail, uploads, orders) stays only on Berth. For that case Berth can relay mail for those domains to the old server, and send mail that already arrived here back to it over SMTP. Checking it is the same Before and after the switch, a parity check compares the old and new server per domain: pages, certificates, mail reception and the mail and FTP services. A mail check compares message counts, UIDVALIDITY and UIDNEXT per folder. A timed log records every step for your own runbook. Related Migrating a server Parity checks Importing backup files Compared with other panels"},{"s":"migrate-a-server","l":"en","t":"Migrating a server","d":"Step by step from connecting to the old server to the two-phase cutover with ARP/NDP check, test mode and Open, with the panel path and the CLI command for each step, and the way back.","c":"migration","g":["migration","cutover","plesk","ip takeover","rollback","runbook"],"h":[["before-you-start","Before you start"],["1-connect-to-the-old-server","1. Connect to the old server"],["2-review-the-inventory","2. Review the inventory"],["3-map-the-ip-addresses","3. Map the IP addresses"],["4-measure-the-size","4. Measure the size"],["5-turn-on-source-watch-recommended","5. Turn on source watch (recommended)"],["6-import-and-synchronise","6. Import and synchronise"],["7-check-and-rehearse","7. Check and rehearse"],["8-the-cutover-window","8. The cutover window"],["phase-1-the-final-sync","Phase 1: the final sync"],["the-pause-actions-on-the-host","The pause: actions on the host"],["go-no-go","Go / no-go"],["phase-2-addresses-and-activation","Phase 2: addresses and activation"],["checks-and-open","Checks and Open"],["9-the-way-back","9. The way back"],["10-the-log","10. The log"],["11-afterwards","11. Afterwards"],["command-summary","Command summary"]],"x":"This is the full procedure for moving a running Plesk, cPanel, DirectAdmin or Berth server to Berth with the migration console. Plesk is the example; the other sources work the same way. Every step is shown both in the panel and on the command line. For the background (what carries over, why the old server is never changed), read Moving to Berth first. The short version: you copy everything in advance while the old server keeps running. In the maintenance window you do the final sync (phase 1), take the old server off the network, and Berth takes over its addresses and activates everything (phase 2). Before you start Install Berth on the new server (Installing Berth) with the PHP versions your customers use. Make sure the new server can reach the old one over SSH, ideally over your VPN. Decide per IP address of the old server whether it moves along (both servers at the same provider or on the same virtualisation host, so an address can move) or whether domains get new addresses and DNS changes. Addresses move along New addresses, DNS changes DNS unchanged changes (automatic for domains at a connected DNS provider) Cutover in two phases, all accounts on those addresses together per account or per group, whenever it suits Interruption the window itself, usually 30 to 90 minutes until DNS has changed everywhere; the old server keeps answering meanwhile 1. Connect to the old server In the panel: Admin → Migration → New migration. Enter a name, the address and the SSH port of the old server. Check the host key. Compare the fingerprint shown with the one on the old server (ssh-keygen -lf /etc/ssh/sshhosted25519_key.pub). Berth remembers it. Choose how to connect: the root password once (not stored), a script you paste on the old server as root, or a key that is already there. Berth installs read-only access with a forced command; nothing else changes on the source. Berth detects the panel, its version and the number of accounts. Confirm with Confirm and read inventory. berth migration add --name plesk1 --host old.example.nl --password-stdin # shows the fingerprints berth migration add --name plesk1 --host old.example.nl --kind plesk \\ --fingerprint SHA256:… --password-stdin < /root/source-root-pw berth migration list berth migration show --id 1 Without --password-stdin (and still with --fingerprint), the command prints the script to run as root on the old server yourself instead; --key <name> uses a key pair that is already on the source (stored under /etc/berth/migrate). 2. Review the inventory The Accounts card lists every subscription with what exists and what cannot be migrated yet, with the reason (for example a PHP version that is not installed here). Click an account for the card What carries over: per part (domains, websites, mail, databases, FTP, cron) the number and size on the source, its state and the reason in one sentence. The filter With a cross shows only accounts where something is wrong. The card Limits shows the Plesk plans and subscription limits next to the packages they become here. 3. Map the IP addresses On the IP addresses card, choose per address of the old server: the default address here, another address of this server, or moves along (taken over at the cutover). berth migration ips --id 1 --map 203.0.113.10=takeover --map 2001:db8::10=takeover berth migration ips --id 1 --map 203.0.113.11=198.51.100.5 4. Measure the size Measure size sets the space needed against the free space here (MariaDB and PostgreSQL separately) and estimates how long the first import will take, as a range such as \"about 2.3 hours (between 1.2 and 4.7 hours)\". The estimate becomes more accurate after each real import from that server. berth migration run --id 1 --kind estimate --wait 5. Turn on source watch (recommended) An import or sync reads from the old server for hours while its sites are live. Source watch measures, every minute, how fast a few of the source's sites respond over HTTPS, directly at the source's address. It changes nothing on the source and needs no extra access. When responses slow down, the task slows down step by step: an rsync bandwidth limit, databases one at a time, pauses between parts. If it stays slow at the lowest pace, the task pauses at a safe point (before the next account, webspace, mail domain or database, never halfway through one) and resumes by itself once the sites are back to normal. It is off by default and applies from the next task. The card shows the response time, the baseline, the threshold and the current pace with a small chart. berth migration watch --id 1 --on berth migration watch --id 1 --domains acme.nl,shop.example.com=203.0.113.10 berth migration pause --id 1 berth migration resume --id 1 During the final sync and the cutover the sites on the source are already down, so the task then never pauses; it only slows down and warns. 6. Import and synchronise Migrate copies every account. The old server keeps running; accounts here wait (no cron, no customer mail, inbound mail temporarily refused with 450). Synchronise brings everything up to date again; repeat it as often as you like, for example every night. Synchronise: only a part syncs only files, mail or databases, and sets how many databases are dumped at the same time (2 by default, up to 8). berth migration run --id 1 --kind import --wait berth migration run --id 1 --kind sync --wait berth migration run --id 1 --kind sync --databases --db-parallel 4 --wait berth migration run --id 1 --kind sync --accounts acme,shop_example_com --mail --wait With Plesk, each sync also picks up what the customer created on the old server after the import, and settings the customer changed there (PHP version, directives, preferred domain), as long as nobody changed them here. Anything removed on the source, or changed on both sides, appears under To do, with Remove here too… or berth migration remove-here. 7. Check and rehearse Check compares the websites with the old server, mail per folder and the reception of every address. berth migration run --id 1 --kind check --wait. Parity measures both servers side by side over the network; take a baseline well before the window. See Parity checks. Rehearsal does everything the cutover does except switch, tells you what would block it, and measures how long the final sync takes. That is roughly how long sites will be down in the real window. berth migration run --id 1 --kind rehearse --wait. Source identity: set the outbound mail address and HELO name, the old server's host names and their certificates. The check reports whether PTR, HELO and SPF are in order. berth migration identity --id 1, berth migration names --id 1. berth migration cutover --id 1 check lists what is still open before the cutover. Tell your customers about the window two weeks in advance, and pick a weeknight. 8. The cutover window Close the old server to customers before phase 1, for example with the firewall of the virtualisation host, so nothing changes after the final sync. Then open the card Two-phase cutover. Phase 1: the final sync Choose Start phase 1 and set: Accounts: by default every migrated account. Everything on an address that moves goes together; Berth refuses a selection that leaves out an account on such an address. Test mode (recommended) with Allowed sources: your own IP, a measuring host, your VPN. After the takeover only those reach the addresses until you choose Open. Everyone else gets a TCP reset, so mail servers retry later and nothing from customers arrives yet. Host steps for the pause: what you will do outside Berth. Phase 1 stays valid for phase 2: 120 minutes by default. If phase 1 is older at Go, you resume it first. Phase 1 runs the sync with table locks, the settings and new databases, and compares the mail folder by folder with the old server. An account turns green only when everything matches. If phase 1 fails for an account, fix it and choose Resume; only what is not green runs again. berth migration cutover --id 1 start --test-mode --allow 198.51.100.7 \\ --host-step \"unplug old NIC on the host\" --note \"window 4 Nov\" --wait The pause: actions on the host Phase 1 is green and nothing has been switched. Now, outside Berth: Take the old server off the network for the addresses that move: disconnect its network interface on the virtualisation host, or remove the addresses there. The old server itself stays as it is, for the way back. For a routed address (a failover or movable IP), switch it to the new server at the provider. Choose Check addresses. Berth checks on the network, with ARP for IPv4 and NDP for IPv6, whether anyone still answers. A firewall on the old server cannot hide an address from this check. Every address must be free. berth migration log --id 1 --step W8 --text \"old server disconnected\" berth migration cutover --id 1 check Go / no-go No-go: call off: nothing has been switched. Reconnect the old server and plan a new date. berth migration cutover --id 1 no-go. Go: phase 2: phase 2 starts. berth migration cutover --id 1 go --wait. Phase 2: addresses and activation Berth checks the addresses once more and stops before anything changes if one is still taken. Otherwise: The addresses go onto the network interface; IPv6 with duplicate address detection. The router is told right away (gratuitous ARP for IPv4, an unsolicited neighbour advertisement for IPv6), so traffic finds the new server right away instead of after several minutes. Test mode switches on, if chosen. All accounts are activated: domains on the addresses, mail delivered here, cron on, certificates requested, a final check per account. If phase 2 is interrupted (a reboot, an error on one account), choose Resume: every step can be repeated, and accounts that are already over stay over. Checks and Open From an allowed source, check websites, receiving and sending mail, certificates, FTP and webmail. Test mode applies only to the taken-over addresses; the server itself always gets through. A reboot during the checks restores test mode within a minute, and berth doctor warns if it is left on after the cutover. When everything is right, choose Open: test mode goes off and customers are on Berth. berth migration cutover --id 1 open --note \"all checked\" berth migration cutover --id 1 # where the cutover stands Test mode can also be set separately: berth migration cutover --id 1 testmode --allow 198.51.100.0/24, or --off. 9. The way back Until you choose Open, going back is free: customers have written nothing here yet. Back to the old server, or berth migration cutover --id 1 rollback --wait. The accounts go back into the waiting state and the addresses leave this server's interface. Give the addresses back to the old server: first release them here, then connect the old server, otherwise IPv6 sees the address twice and does not use it. Open the old server to customers again. For a selection of accounts, the Accounts card has Rollback under Actions for the selected accounts; on the CLI, berth migration run --id 1 --kind rollback --accounts acme --wait. After Open you can still go back, but what customers did here in the meantime (mail, uploads, orders) stays only here. Berth can then relay mail for those domains to the old server and send mail that already arrived here back over SMTP. Sent items, drafts, trash and spam are not sent back; count first: berth migration relay --id 1 --on berth migration mail-return --id 1 --since \"2026-11-04 02:45\" --dry-run 10. The log Cutover log shows every step with the time since the start, how long it took, its outcome and who did it: phases, each account, the address check, the takeover, test mode, each go/no-go, and what you ticked off yourself. Download it as CSV for a report or your own runbook. berth migration log --id 1 berth migration log --id 1 --csv > cutover.csv 11. Afterwards The Post-check card checks websites against the old server, reception of every mail address and where DNS points, with a list to tick off. Source mail "},{"s":"parity-checks","l":"en","t":"Parity checks","d":"Measure the old and the new server side by side over the network (pages, certificates, mail reception, IMAP, POP3, submission and FTP) and compare mail per folder, gently enough that the source never bans you.","c":"migration","g":["parity","migration","comparison","verification","cutover","mail check"],"h":[["where-to-find-it","Where to find it"],["what-is-measured","What is measured"],["verdicts","Verdicts"],["known-differences","Known differences"],["three-modes","Three modes"],["gentle-on-the-source","Gentle on the source"],["when-the-source-blocks-anyway","When the source blocks anyway"],["test-accounts-for-a-login-check","Test accounts for a login check"],["the-mail-check","The mail check"],["measuring-outside-the-panel","Measuring outside the panel"],["api-and-ai-integration","API and AI integration"],["related","Related"]],"x":"Before you switch customers to Berth, you want evidence that their sites and mail behave the same as on the old server. The parity report measures both servers from the outside, per domain, and gives every check a verdict. A separate mail check compares every mailbox folder. Both work for every source (Plesk, cPanel, DirectAdmin or Berth) and are part of the migration console described in Migrating a server. Where to find it On the migration's page, the card Parity shows the latest result with Compare source and Berth and the baseline. Report and notes opens the full report with every domain, check and verdict, the earlier reports and your notes. berth migration parity run --id 1 --mode baseline # baseline of the source berth migration parity run --id 1 # source and Berth now berth migration parity run --id 1 --mode after # after the cutover berth migration parity show --id 1 --format csv # exit code 1 on differences berth migration parity list --id 1 What is measured Per domain: Pages: the home page and five other pages (configurable with --pages, up to 25). The pages are found on Berth, from the sitemap and the home page's links; the source is then asked only for pages that exist on Berth. Per page: status code, redirect target, title, length (within a 15 % margin) and the security headers. Certificate: valid or not, the names, days remaining and issuer. Mail reception: the MX with STARTTLS and an RCPT check for up to five known addresses and one made-up address, in one connection, without sending any mail. Mail and FTP services: IMAPS, IMAP, POP3S, POP3, submission (587), SMTPS (465) and FTP with explicit TLS. Is the port open, what does the banner say, is TLS offered, which certificate, which capabilities. A login attempt with a test account, if you provide one (see below). In after mode the report also compares the DNS records. Verdicts Verdict Meaning equal the same on both servers difference counts as a difference note says little, for example a banner text or an extra IMAP capability explained a known difference, with the reason not measured the source refused us or its budget ran out; not a difference, but the report is incomplete Berth explains some differences itself: another web server or HTTP version, and another certificate for the same names. A security header that Berth sets and the source does not (X-Content-Type-Options, Referrer-Policy, Permissions-Policy, X-Frame-Options, Content-Security-Policy) is note \"Berth stricter\"; a different value than on the source remains a difference. In live mode, for accounts that are migrated while the source still runs, two things are expected and therefore explained: inbound mail that Berth answers with a temporary 450, and mail services that still show Berth's own certificate (the source's names and certificates arrive at the cutover). A different status, title or content always remains a difference. Known differences What you know about, for example a site relaunched after the baseline, you record as a note under Known differences. Domain and field may be patterns, such as example. and https.title. Matching checks then get the verdict explained* with your reason. berth migration parity note add --id 1 --domain 'example.*' \\ --field https.title --reason 'new site launched after the baseline' Three modes Mode What it measures When baseline (Baseline of the source) only the source, on its own address; pages from its home page links; stored well before the cutover live (The source and this server now) first Berth, where the pages are found, then the source with the same pages; the source measurement becomes the newest baseline before the cutover after (This server after the cutover) Berth as the outside world sees it (through DNS), against the newest valid baseline, including DNS records after the cutover, when the source is gone Take a baseline early. After the cutover the source no longer exists, and the baseline is what you compare against. Gentle on the source The source is a server you may not control, often with fail2ban, cPHulk, the DirectAdmin Brute Force Monitor or CSF/LFD. The measurement is designed to work without whitelisting anything there, and to stay well below such limits: all traffic to the source goes over one connection at a time, with a pause between connections and a cap per time window; nothing is guessed on the source: no robots.txt or sitemap.xml, only pages that exist on Berth; there are separate budgets for 4xx responses and for SMTP address refusals; when one runs out, further checks of that kind are skipped and marked not measured; a test account gets at most one login attempt and is never retried after a failure; a closed port is not tried again. Correctness comes before completeness: better to measure less than to get banned. With many domains, the source side can take up to about an hour. The limits are adjustable with --source-gap, --source-max-conns, --source-4xx-budget and --source-5xx-budget (API: source_limits), but raising them is rarely wise. When the source blocks anyway If the source refuses a connection that worked earlier in the measurement, or its web port does not answer from the start, Berth treats it as a block: from that moment nothing more is sent to the source, so a block never turns into a second ban. Everything after it is not measured, and the top of the report says that the source refuses connections from Berth's address since a given time, probably because of fail2ban or a firewall. Wait until the ban expires and measure again. Faster, but never required: add Berth's address as a trusted address on the source (Plesk's trusted IP addresses, the cPHulk whitelist, DirectAdmin's Brute Force Monitor whitelist, the CSF allow list). That is an action of the source's administrator; Berth never changes the source. A baseline taken during a block is stored but marked invalid. after then uses the newest valid baseline and says so, and refuses if there is none, unless you pass --accept-invalid-baseline deliberately. The CLI exits with code 1 on an incomplete report or an invalid baseline. Test accounts for a login check To include a login on IMAP, POP3, submission and FTP, give the CLI a JSON file with test accounts per domain. It must have mode 0600: { \"example.nl\": { \"mail_user\": \"test@example.nl\", \"mail_pass\": \"…\", \"ftp_user\": \"acme_test\", \"ftp_pass\": \"…\" } } berth migration parity run --id 1 --accounts-file /root/test-accounts.json Passwords exist only in the memory of that one command. They never go into a task, report or log, and are only sent over TLS; without TLS, no login is attempted. The panel and the API therefore start measurements without login attempts. The mail check Separately from the parity report, the migration's Check task compares mail per mailbox and folder: the number of messages, UIDVALIDITY and UIDNEXT on the source (read-only, from the file list and the dovecot-uidlist) against what Dovecot shows here, which is exactly what a mail client will see after the cutover. Problem: something a mail client would notice, such as a different UIDVALIDITY (the folder would be downloaded again) or mail that did not come along. Behind: a copy from before the latest mail on the source (fewer messages, or a lower UIDNEXT with the same UIDVALIDITY). A mail sync resolves it, and after the final sync of the cutover it must be zero. Phase 1 of the cutover runs this comparison for every account; an account only turns green when all its folders match. berth migration run --id 1 --kind check --wait The check also covers the websites against the old server and the reception of every mail address. Results appear per account on the What carries over card. Measuring outside the panel The standalone tool berth-probe performs the same measurements from any machine, for example from outside your network. Measure Berth first, then the source with the same pages and with -source (which applies all the protections above), then compare: berth-probe -services -pages 5 -domains domains.txt -connect 192.0.2.20 > berth.jsonl berth-probe -source -services -pages-from berth.jsonl -domains domains.txt \\ -connect 192.0.2.10 > source.jsonl berth-probe parity --dns source.jsonl berth.jsonl Never measure a source without -source. It exits with code 3 when the source blocks. API and AI integration GET /api/v1/migrations/{id}/parity for the overview and report, and …/parity/export?format=csv|json|text; POST …/parity/notes and DELETE …/parity/notes/{note}; start a measurement with POST /api/v1/migrations/{id}/jobs and {\"kind\":\"parity\",\"options\":{\"parity\":{\"mode\":\"live\"}}}. The AI integration has migrationparity and migrationparity_run. See the REST API. Related Moving to Berth Migrating a server"},{"s":"import-backup-files","l":"en","t":"Importing backup files","d":"Turn a Plesk backup, a cPanel cpmove file or a DirectAdmin user backup into subscriptions, in batches if needed, move a subscription between Berth servers with an encrypted transfer file, or fetch a single site over FTP or SFTP.","c":"migration","g":["import","plesk backup","cpmove","directadmin","transfer","restore"],"h":[["the-import-page","The import page"],["plesk-backups","Plesk backups"],["cpanel-and-directadmin-account-backups","cPanel and DirectAdmin account backups"],["many-files-at-once","Many files at once"],["moving-a-subscription-between-berth-servers","Moving a subscription between Berth servers"],["a-single-website-over-ftp-or-sftp","A single website over FTP or SFTP"],["related","Related"]],"x":"Not every move starts from a live server you can connect to. Sometimes you have a backup file from a previous host, a customer who brings their own cpmove archive, or a single subscription to move between two Berth servers. Berth reads these files and builds complete subscriptions from them, with mailboxes, databases, certificates and passwords where the file allows it. For whole servers that are still running, the migration console is usually the better route: it syncs repeatedly and switches over without customers noticing. See Moving to Berth for the comparison. The import page All file imports start on one page: Admin → Migration → Import, titled Import a backup or transfer file. Upload the file with Upload backup, or for a Berth transfer file, upload it or let Berth fetch it. Berth checks the file first and shows what is in it: per subscription what comes along, what does not and why, conflicts with what already exists here, and under which customer and reseller it will land. Nothing is created yet. Check only keeps it at that. Adjust the target if needed: the package (by default the package with the source's name if it exists, otherwise basis), the customer, and whether the subscription goes under an existing customer. Choose Import, per subscription for Plesk. Uploads are removed automatically after a day. If an account had a password that could not be carried over, the result shows a new one once (New passwords — copy them now): pass it on to the customer or set another. Resellers come along: a customer who belonged to a reseller on the old server lands under the same reseller here, which is created if needed (without limits; set them afterwards under resellers). Imports need a valid licence or the trial period; see Licence and trial. Plesk backups Use the backup that Plesk's Backup Manager lets you download: a .tar file, also compressed, of one subscription, a customer or the whole server. Plesk stores some passwords encrypted with the server's own secretkey. To carry those over, give the import that key under Plesk: take passwords along*, as a hex string; the page shows the command that prints it on the old Plesk server. Without the key, the affected accounts get a new password that is shown once. berth import --file plesk-backup.tar --dry-run berth import --file plesk-backup.tar --subscription example.nl \\ --secret-key-file /root/secret_key --plan basis --subscription takes the system user or the main domain. Among other things, these come along: domains with aliases, PHP settings, certificates, mailboxes with their mail, forwards and autoresponders, DKIM keys, databases with their users, FTP accounts, protected folders and cron jobs. Cron jobs arrive switched off, so nothing runs before you have checked the paths. Treat the secret_key as a secret and remove the file from the new server once the import is done. cPanel and DirectAdmin account backups An account backup becomes one subscription in a single step: cPanel: cpmove-<user>.tar.gz, as made by pkgacct or the Backup Wizard; DirectAdmin: user.<reseller>.<user>.tar.gz, also as .tar.zst. Upload it on the import page, review the check and conflicts, and confirm. berth import --file cpmove-acme.tar.gz --dry-run berth import --file cpmove-acme.tar.gz --plan basis --customer acme berth import --file user.reseller1.acme.tar.zst --into-existing --customer acme What comes along: the customer, the main domain with parked domains as aliases, addon domains and subdomains, the files, mailboxes with their password and mail (Maildir, with UIDs, so mail clients do not download everything again), mail aliases and forwards, MySQL databases with their users and passwords, FTP accounts, valid certificates, DKIM keys, and cron jobs (switched off, because their paths point to the old home directory). Mail folder names that cPanel and DirectAdmin store in modified UTF-7 are converted to UTF-8, the way Dovecot on Berth stores them. What does not come along, with a notice in the check: PostgreSQL databases, forwards to a program, mailboxes with a password hash Berth does not recognise, and for DirectAdmin the SFTP password. Many files at once Put all cPanel and DirectAdmin backups in one directory and import them in one run. An error skips only that one backup; the rest continue. berth import --dir /root/backups --dry-run berth import --dir /root/backups --plan basis Moving a subscription between Berth servers Between two Berth servers, a subscription moves as one encrypted transfer file: files, databases, mail, logins with their password hash and second factor, DKIM keys, certificates, mail aliases, cron jobs and domain settings. The file is encrypted with a passphrase of at least 12 characters. On the old server: the customer's page → Move to another Berth server. Choose a passphrase and click Create export file. On the new server: Admin → Migration → Import. Upload the file with the same passphrase, or choose Let it fetch: give the old server's address and an API key of an administrator there. Berth then asks the old server to create the file, fetches it and imports it in the background. The API key stays in memory only. On the old server: berth transfer export --sysuser acme --out acme.berth --passphrase-file /root/passphrase On the new server, import the file, or fetch it directly: berth transfer import --file acme.berth --passphrase-file /root/passphrase --dry-run berth transfer import --file acme.berth --passphrase-file /root/passphrase berth transfer pull --from https://old.example.nl --token-file /root/api-token \\ --sysuser acme --passphrase-file /root/passphrase --dry-run reports conflicts without changing anything. The subscription keeps its uid, or gets a free one if that uid is taken. --customer and --into-existing place it under another or an existing customer; --ca-cert trusts an old server without a public certificate. Containers with their own image. An image from a registry is pulled again by the new server. An image the customer uploaded themselves exists only on the old server and comes along only if you choose so: the customer's page shows Take own images with their number and size, or use --images on export or pull (berth transfer images --sysuser acme shows the same). This needs temporary disk space on the old server and makes the file larger; Berth stops beforehand if it does not fit. Without it, the import skips containers with such an image and tells you so. For moving every subscription of a Berth server at once, use the migration console with Berth as the source. A single website over FTP or SFTP For one website at a host without a panel, or where all you have is FTP access, use Import on the domain's page. Berth fetches: the files over SFTP, FTPS or plain FTP, from a folder you choose (for example public_html), into the document root or a subfolder here; the database straight from the old database server into an existing database of the subscription, if that server accepts connections from outside. If it does not, export it there and import the dump under Databases instead. For WordPress, Berth then adjusts wp-config.php for the database here and, if you want, replaces the old address with the new one (--replace-url takes the old address). Files with the same name are overwritten. Passwords are only kept for the duration of the import. berth domain import start --domain acme.nl \\ --protocol sftp --host old-host.example.com --user acme --password-file /root/ftp-pw \\ --remote-path public_html \\ --db-host db.old-host.example.com --db-user acme --db-name acme_wp \\ --db-password-file /root/db-pw --target-db acme_wp \\ --replace-url https://acme.old-host.example.com berth domain import list --domain acme.nl The import runs in the background; its log shows what happened. Check the site, then change the DNS. Related Moving to Berth Migrating a server Restoring files, mail and databases Databases"},{"s":"security-model","l":"en","t":"Security model","d":"How Berth is built to contain mistakes and attacks, from the unprivileged panel and the root agent's per-operation policy to validated config, per-customer isolation, sealed secrets, signed releases and an audit trail the panel cannot rewrite.","c":"security","g":["security","architecture","whitepaper","defence in depth","hardening","supply chain"],"h":[["the-layers-at-a-glance","The layers at a glance"],["an-unprivileged-panel-and-a-root-agent","An unprivileged panel and a root agent"],["typed-operations-with-an-explicit-policy","Typed operations with an explicit policy"],["configuration-that-is-validated-before-it-goes-live","Configuration that is validated before it goes live"],["isolation-between-customers","Isolation between customers"],["protecting-what-faces-the-internet","Protecting what faces the internet"],["secrets-at-rest","Secrets at rest"],["signed-releases-and-a-verifiable-supply-chain","Signed releases and a verifiable supply chain"],["accountability-who-did-what","Accountability: who did what"],["compliance","Compliance"],["data-stays-with-you","Data stays with you"]],"x":"This article is the overview of how Berth protects a hosting server: what the layers are, why they exist, and which other articles go into each one. It is written for the people who have to sign off on a hosting platform, such as a security officer, an auditor or the sysadmin who will be woken up when something goes wrong. The guiding idea is defence in depth. No single component is trusted to be perfect. The web-facing panel is assumed to be a target, customer sites are assumed to get hacked sometimes, and a bad configuration change is assumed to happen. Each layer limits what the failure of the layer above it can do. The layers at a glance Layer What it protects against Read more Unprivileged panel, root agent with per-operation policy A compromised or buggy panel taking over the server Architecture Declarative, validated configuration A bad change taking services down How changes go live Per-subscription isolation One customer's hacked site reaching another customer Isolation Sign-in security, SSO, roles Stolen or guessed credentials Sign-in security, Single sign-on, Roles and permissions WAF, malware scanning, firewall, bans Attacks on websites and services WAF, Malware scanning, Firewall and bans Vulnerability management Known flaws staying unpatched Vulnerability management Sealed secrets, signed releases, SBOM Leaked database dumps, tampered updates This article Audit trail, approvals, integrity checks Insiders, account takeover, covering tracks Audit trail and approvals An unprivileged panel and a root agent Berth runs as separate processes with very different privileges. berthd is the panel: the web interface, the REST API, the MCP endpoint for AI assistants, and the panel database. It runs as its own unprivileged user, listens only on loopback behind nginx, and is not a member of any customer group. It cannot read a webspace, a mailbox or a customer database by itself. berth-agent runs as root and does the work that needs root: writing configuration, creating system users, managing services, restoring backups. It is reachable only over a local socket. berth is the command-line tool. It talks to the agent, or runs in-process as root on the server itself. The panel daemon runs inside a systemd sandbox (NoNewPrivileges, ProtectSystem=strict, ProtectHome, PrivateTmp, PrivateDevices, RestrictSUIDSGID, plus memory and task limits). It has no route to customer data except through the agent. Typed operations with an explicit policy The panel and the agent speak a typed protocol, not a shell. Each of the several hundred operations is a structured request with its own validation: domain names, paths, user names and every other field are checked before anything runs. The agent identifies the caller with kernel peer credentials on the socket, so it knows for certain whether a request comes from the panel or from root. Every operation then has an explicit rule: allowed for the panel, with a recorded reason; root only, so it works from the command line on the server but never from the panel; or allowed only after a named check passes, for example that a path really lies inside the subscription it claims to belong to. An operation without a rule is refused to the panel. The test suite fails when a new operation is added without one, so the policy cannot silently fall behind the code. Each operation also carries a sensitivity class (read, access, export, destroy, security), which feeds the agent's own audit trail. Each operation runs in its own short-lived subprocess with a timeout, an output cap and a clean kill of the whole process group. Long or heavy work runs at low CPU and disk priority, so it does not starve the sites. The practical consequence: even a fully compromised panel process cannot do what the agent's policy forbids. A few powerful actions are deliberately kept out of the panel's reach altogether. Enabling the browser root terminal, dismissing a critical rootkit finding and allowing a SIEM manager to run commands as root are all things only root on the server can do. Configuration that is validated before it goes live The desired state of every service lives in the panel database. Configuration files are never patched in place. Each change follows the same steps: Render the complete files for the affected service into a staging area. Swap them in atomically, keeping the previous version. Run the service's own config test: nginx -t, apachectl configtest, postfix check, doveconf -n, named-checkzone and the PHP-FPM pool test. If the test fails, roll back to the previous version. If it passes, reload in a safe order. When one customer's vhost or PHP pool is invalid, only that file is set aside and the administrator and customer are told. Everyone else's changes still go through. A typo in one site never takes the web server down for the rest. Every apply, including rolled-back attempts, is visible in the change log. See How changes go live. Isolation between customers Each subscription gets its own Linux user, its own PHP-FPM pool, its own systemd slice with CPU, memory, task and disk I/O limits, an enforced disk quota, and its own user namespace for rootless Podman containers. An outbound traffic fence stops customer code from reaching the panel's internal services and other subscriptions' app ports. An optional restricted mode limits outbound traffic to web and DNS, so a hacked site does not become a spam cannon. See Isolation and On-disk layout. Protecting what faces the internet Sign-in: argon2id password hashes, a breach-password check, CSRF protection on every write, host-only __Host- session cookies, optional two-step verification with TOTP or passkeys, and alerts for new devices. See Sign-in security. Web applications: a WAF with the OWASP Core Rule Set in front of every site, app and container, plus scanning of uploads. See WAF. Malware: weekly and realtime scanning of webspaces with ClamAV and Berth's own backdoor detector, with quarantine. See Malware scanning. Network: an nftables firewall that rolls back by itself unless you confirm, fail2ban for every public service, and hardening of public services against slow and flooding connections. Administrative SSH is reachable only over a VPN. See Firewall and bans. Outbound requests: every outbound fetch the panel makes (webhooks, notifications, log drains, S3, cron URLs, uptime checks, AI providers) goes through one HTTP client that refuses internal and private addresses unless an administrator explicitly allows them. That keeps the panel from being used to probe the internal network. Secrets at rest Secrets that the panel must be able to use again, such as SSO client secrets, TOTP seeds, provider API keys and SIEM credentials, are stored sealed with AES-256-GCM. The sealing key belongs to the installation and is not stored in the database, so a database dump on its own does not reveal them. berth security sealkey and berth doctor check that the key and the database still belong together, which matters after a restore. Passwords are never stored in readable form. API tokens are shown once and stored as a hash. Backups are encrypted before they leave the server. See Backups overview. Signed releases and a verifiable supply chain Signed releases: every release ships a SHA256SUMS file signed with Ed25519. berth update verifies the signature and the checksums before it installs anything, refuses downgrades and plain-HTTP sources, and falls back to the previous version automatically if the new one does not come up healthy. You can verify a release yourself with berth release verify. See Updating Berth. Signed packages: the .deb and .rpm packages and their repositories are signed, and the install script is signature-checked before it runs. Offline bundles for air-gapped servers are signed as well. Third-party downloads: software Berth fetches from other vendors is verified with that vendor's PGP key, pinned by fingerprint. Signed content bundles: virtual patches, offline vulnerability databases and extension updates are only accepted with a trusted signature. SBOM: berth security sbom produces a CycloneDX 1.6 bill of materials for the server or a single subscription, and berth security vex the matching vulnerability statements. Build checks: govulncheck runs before every release and blocks it when vulnerable code is actually reachable. The panel itself only links MIT, BSD, Apache and MPL licensed libraries. GPL tools such as Postfix and ClamAV run as separate processes. Disclosure: every installation publishes /.well-known/security.txt (RFC 9116) with the contact you set in the panel. Accountability: who did what The activity log records every change with who, when, from where and what. It is hash-chained and verified continuously, so an edited or deleted entry is detected. The agent keeps its own trail, independent of the panel and chained with a key the panel never has. It is anchored against the panel's log, so rewriting the panel's history is detected too. An audit watchdog looks for patterns of misuse and turns findings into alerts or incidents. Four-eyes approvals, just-in-time elevation and a break-glass account keep standing privileges small. Integrity checks compare panel and critical system files against a baseline and against the vendor's signed packages, and look for signs of tampering and rootkits. They alert and never interrupt hosting. All of it can be forwarded to a SIEM, and Wazuh rules ship with Berth. See Audit trail and approvals. Compliance The same data feeds the compliance tools: a GDPR data register with export and signed erasure, an incident dossier with NIS2 reporting clocks, and a signed evidence pack for BIO2, ISO 27001 and NIS2 audits. See GDPR, NIS2 and incidents and Evidence for audits. Data stays with you Berth is self-hosted. Customer data stays on your servers and in backup locations you choose. The panel's pages load nothing from third-party domains: no external fonts, scripts or analytics. Licensing never takes customer sites offline. When a licence lapses, existing sites, mail, databases and backups keep running and stay manageable. See Licence and trial."},{"s":"sign-in-security","l":"en","t":"Sign-in security","d":"How Berth protects panel accounts with argon2id, a breach-password check, hardened sessions, optional two-step verification with an authenticator app or passkeys, new-device alerts, re-authentication for sensitive actions and per-login IP allow-lists.","c":"security","g":["login","2fa","mfa","two-factor","passkey","webauthn","password"],"h":[["passwords","Passwords"],["sessions-and-cookies","Sessions and cookies"],["two-step-verification-recommended","Two-step verification (recommended)"],["authenticator-app-totp","Authenticator app (TOTP)"],["passkeys-and-security-keys","Passkeys and security keys"],["passkey-only-sign-in","Passkey-only sign-in"],["lost-all-factors","Lost all factors"],["remember-this-device","Remember this device"],["alerts-for-a-new-device-or-country","Alerts for a new device or country"],["re-authentication-for-sensitive-actions","Re-authentication for sensitive actions"],["sign-in-only-from-known-addresses","Sign in only from known addresses"],["see-who-has-access","See who has access"],["ssh-is-separate","SSH is separate"]],"x":"Every account in Berth (administrator, reseller, customer, auditor or restricted login) signs in through the same hardened flow. This article explains what protects that flow, which extra steps each user can turn on, and what an administrator can set for the whole server. If your organisation already has an identity provider such as Entra ID, Google Workspace or Keycloak, also read Single sign-on. Passwords argon2id. Passwords are hashed with argon2id, a memory-hard algorithm designed to make offline guessing expensive. The panel never stores or logs a password in readable form. Breach check. New passwords are checked against the Pwned Passwords collection of known leaked passwords using k-anonymity: only the first five characters of the password's SHA-1 hash leave the server, never the password or the full hash. A password that appears in a breach is refused. The check is on by default. Turn it off under Settings → Access, card Check passwords against data breaches, or with berth security pwned-check --off. Brute-force protection. Sign-in attempts are rate-limited, and an address that keeps failing is temporarily blocked. Failed sign-ins also feed fail2ban, see Firewall and bans. Sessions and cookies The session cookie is host-only, HttpOnly, Secure and carries the __Host- prefix, so it cannot be set or read by another subdomain. The session identifier is rotated at sign-in. A session ends after a period of inactivity, and in any case after a fixed maximum lifetime. Every write, including the sign-in form itself, requires a CSRF token. API clients that use a session send it as X-CSRF-Token. Panel pages are served with a strict Content Security Policy, X-Frame-Options: DENY and Referrer-Policy: no-referrer. Each user sees their active sessions under Account → Active sessions and can end any of them, or End all others. An administrator can do the same for a login with berth admin sessions list and berth admin sessions revoke. Two-step verification (recommended) Two-step verification is optional, and strongly recommended for anyone who manages servers or customers. Setting it up takes a minute, and each login chooses what suits them. Authenticator app (TOTP) Go to Account and choose Set up next to Authenticator app. Scan the QR code with any authenticator app (TOTP, RFC 6238) and enter the code it shows. Store the eight one-time recovery codes somewhere safe. Each code works once, in place of the app. Passkeys and security keys Passkeys (WebAuthn) are phishing-resistant: a passkey only works on the panel it was registered with, so a look-alike site cannot use it. Touch ID, Windows Hello, a phone or a hardware key such as a YubiKey all work. Go to Account and choose Add next to Passkeys and security keys. Give the passkey a name and confirm on your device. With a passkey that has a PIN or biometrics, you can also use Sign in with a passkey on the sign-in screen without typing a name or password. Passkey-only sign-in A login with at least two passkeys can switch off its password altogether with Sign in with passkey only. Two are required so that losing one device does not lock you out. To return to a password, an administrator sets a new one for the login. Lost all factors If someone has lost their phone, their passkeys and their recovery codes, an administrator resets their second step on the customer page or on the server: berth admin mfa reset --login acme When four-eyes approvals are on, resetting another administrator's second step needs a second administrator. See Audit trail and approvals. Remember this device After the second step, the panel can remember the browser for a while so that it asks only for the password. An administrator chooses off, 12 or 24 hours under Settings → Access, card Remember device after the second step, or with: berth security remember-device --hours 12 Administrators, auditors and resellers are remembered for at most 12 hours. Each user sees their remembered devices under Account → Remembered devices and can forget them. Alerts for a new device or country After a sign-in from a browser the account has not used before, or from a country it has not signed in from recently, the user gets a notification. It contains a This wasn't me link. One click on it: ends every session of that account; forgets all remembered devices; revokes the account's API tokens; replaces the password; informs the administrator (and the reseller, if there is one). The administrator then checks the activity log and helps the owner back in. The country comes from a local geolocation database on the server; no address is sent to a lookup service. An administrator can list or reset the known devices of a login: berth admin devices --login acme berth admin devices --login acme --forget These notices are in the Account and access category. Each user can switch them off under Account → My notifications, but leaving them on is what makes This wasn't me useful. See Notifications and alerts. Re-authentication for sensitive actions Some actions require a fresh confirmation even inside a valid session: setting a password for a mailbox, database user, FTP or SFTP account, protected directory or another login; adding an SSH key; exporting or downloading a database, a backup, the backup history, a customer data export or a transfer file; deleting a customer, domain, database, mailbox or backup; loosening outbound traffic restrictions, switching off the write lock, or creating an API key. Signing in counts as a confirmation. After that, the panel asks again once the confirmation is older than the window set under Settings → Access, card Re-confirm for sensitive actions. The window is 1 to 15 minutes (5 by default) or every time: berth admin mfa-policy --reauth-minutes 5 You confirm with a passkey, a code from your app, or your password if the login has no second step. Logins linked to an identity provider can confirm at the provider instead, see Single sign-on. In the API such a call returns 403 with \"code\": \"reauthrequired\". API tokens cannot re-authenticate: a token needs the sensitive scope (berth token create --sensitive) for these actions, otherwise it gets 403 with sensitivescope_required. See REST API. Sign in only from known addresses Any login, including customers, can be limited to specific IP addresses or ranges. Sign-in attempts from elsewhere are refused, even with the right password and second step. Self-service: Account → Only from known addresses → Set up, then enter the addresses or CIDR ranges. For an administrator, on the server: berth admin allowed-ips --login acme --set 192.0.2.10,198.51.100.0/24 berth admin allowed-ips --login acme --clear The panel as a whole can also be limited by country, see Firewall and bans. See who has access Settings → Access lists every account with its role, whether it has a second step, its last sign-in, its sessions and its API tokens, with Export (CSV) for an access review. On the server: berth admin access. See Evidence for audits. SSH is separate Two-step verification for SSH and SFTP logins of customers is configured per domain, under Two-step verification for SSH. See Files, FTP and SSH."},{"s":"single-sign-on","l":"en","t":"Single sign-on","d":"Let administrators, auditors and customers sign in to Berth through your identity provider with OpenID Connect or SAML 2.0, with verified provider MFA, single logout and SSO-only logins.","c":"security","g":["sso","oidc","saml","entra id","keycloak","identity provider"],"h":[["how-it-works","How it works"],["what-berth-checks","What Berth checks"],["behaviour-switches","Behaviour switches"],["single-logout","Single logout"],["re-confirming-through-the-provider","Re-confirming through the provider"],["set-up-an-openid-connect-provider","Set up an OpenID Connect provider"],["set-up-a-saml-provider","Set up a SAML provider"],["keep-a-way-in","Keep a way in"],["fleet","Fleet"]],"x":"With single sign-on, people sign in to Berth with the account they already have at your organisation: Entra ID (Azure AD), Google Workspace, Keycloak, Authentik, Okta or any other OpenID Connect provider, or a SAML 2.0 provider such as ADFS or SURFconext. Offboarding then happens in one place: with Linked logins only via the provider switched on, someone who is disabled at the provider can no longer sign in to the panel. This article covers how linking works, the behaviour switches, and the setup steps for both protocols. How it works A provider does not create logins in Berth. It vouches for an external account, and that external account is linked to an existing Berth login. A login can be linked in three ways: By the user, under Account → Through your organisation → Link to …, after signing in normally once. By an administrator in advance, under the provider's page → Link an account in advance, using the provider's fixed account ID (for Entra ID the object ID), or berth sso link. Automatically at first sign-in, if you turn on Link on e-mail address at first sign-in. This only links when exactly one login has that address, and never links administrators or auditors; they link themselves under Account. For OpenID Connect the provider must mark the address as verified (emailverified; Entra ID does not, so link Entra accounts from Account* or in advance). For SAML the signed attribute counts. Per provider you choose who may sign in this way: Administrators, Customers and Auditors (read-only). The provider then appears as a button on the sign-in screen. What Berth checks OpenID Connect uses the authorisation code flow with PKCE. Berth fetches the provider's discovery document and verifies the ID token: signature via the provider's JWKS (only from an allow-list of signing algorithms), issuer, audience, validity and nonce. A public client without a secret works too, protected by PKCE. SAML 2.0 has Berth act as a service provider. Authentication requests are signed. Responses must be signed and are checked for audience, validity, destination and that they answer the request Berth sent. Encrypted assertions are supported. The provider must send a stable NameID: persistent, e-mail or user name. Behaviour switches Each provider has these options under Behaviour: Switch What it does The provider does two-step verification After signing in through the provider, Berth does not ask for its own TOTP code. Check that the provider did two-step verification On by default for a new provider. The response must state that a second factor was used: OpenID Connect amr or acr, SAML AuthnContextClassRef, or the Entra ID authentication-methods claim. If it does not, Berth asks for its own second step and records this in the activity log. Turn it off only for a provider that never sends this information. Also sign out at the provider Single logout, see below. Linked logins only via the provider SSO-only: linked logins can no longer sign in with a password. On: button on the sign-in screen Enables or disables the provider. Use the first two together. \"The provider does MFA\" without verification means trusting the provider's configuration blindly. With verification, a provider policy that was loosened by mistake does not quietly remove the second step from the panel. Single logout With single logout on, signing out of the panel also signs out at the provider: OpenID Connect through the provider's endsessionendpoint (Keycloak, Authentik, Entra ID and Okta have one). SAML with a signed logout request to the provider's SingleLogoutService. The reverse always works for SAML. When the provider sends a signed logout request (IdP-initiated), Berth verifies the signature, ends that login's sessions and answers with a signed response. Re-confirming through the provider Sensitive actions in Berth ask for a fresh confirmation, see Sign-in security. Someone with a linked provider can confirm by signing in at the provider again (Account → Confirm again). Berth explicitly asks the provider to prompt again (OpenID Connect prompt=login and max_age=0, SAML ForceAuthn). It then checks that the new sign-in happened after the request and belongs to the same account. A session that started through a provider also re-confirms there before destructive actions and before approving a four-eyes request. A session belonging to someone who has since been disabled at the provider therefore cannot be used for those actions. If a provider ignores the re-prompt, Berth tells you so and you adjust the provider. Set up an OpenID Connect provider In Berth, go to Settings → Access → Sign in via a provider and choose New provider. Enter a short Name (lowercase, used in the URLs, for example entra) and a Button text (for example \"Entra ID\"). Choose OpenID Connect. Copy the Redirect-URI shown under Register at the provider. It has the form https://panel.example.nl/login/sso/entra/callback. At your provider, register an application (web, confidential client) with that redirect URI. Note the issuer URL, client ID and client secret. Back in Berth, fill in Issuer (for Entra ID https://login.microsoftonline.com/<tenant-id>/v2.0), Client-ID and Client secret. Leave Scopes empty for openid email profile. Choose who may sign in, set the behaviour switches and save. Use Test connection to fetch the discovery document. Link the first account and sign in with the new button in a private window before you turn on SSO-only. The same on the server, with the secret read from standard input so it never lands in shell history: berth sso set entra --type oidc \\ --issuer https://login.microsoftonline.com/<tenant-id>/v2.0 \\ --client-id <client-id> --client-secret-file - \\ --label \"Entra ID\" --roles admin,customer \\ --trust-mfa --verify-mfa --single-logout berth sso test entra berth sso link --provider entra --login acme --subject <object-id> Set up a SAML provider Create the provider as above, but choose SAML 2.0. Enter the Provider's metadata URL, or paste the metadata XML when there is no URL. Set E-mail attribute only if your provider uses an unusual name. Save. Under Register at the provider Berth shows its own metadata URL, the ACS URL (POST) and the single logout URL (redirect and POST), of the form https://panel.example.nl/login/sso/<name>/metadata, /acs and /slo. At the provider, register Berth with its metadata URL, or enter the ACS URL by hand. Configure a persistent NameID, or e-mail or user name. Choose who may sign in and the behaviour switches, test, and link the first account. On the server: berth sso set surf --type saml --metadata-url https://idp.example.nl/metadata \\ --label \"SURFconext\" --roles admin --trust-mfa --verify-mfa berth sso list berth sso links Keep a way in Before you make administrator logins SSO-only, create a break-glass account that does not depend on the provider, so an outage at the provider does not lock you out of your own servers. See Audit trail and approvals. Fleet On a Fleet panel, administrators who signed in there can click through to member servers without signing in again."},{"s":"malware-scanning","l":"en","t":"Malware scanning","d":"Weekly and realtime scanning of every webspace with ClamAV and Berth's own backdoor detector, scanning of uploads and of everything that enters a site, and quarantine, restore, delete or ignore for each finding.","c":"security","g":["malware","antivirus","clamav","webshell","backdoor","quarantine"],"h":[["what-is-scanned-and-when","What is scanned, and when"],["two-detection-engines","Two detection engines"],["handle-a-finding","Handle a finding"],["quarantine-a-file-yourself","Quarantine a file yourself"],["customers-can-do-this-themselves","Customers can do this themselves"],["realtime-and-upload-scanning-settings","Realtime and upload scanning settings"],["see-also","See also"]],"x":"Hacked websites are the most common security incident on a hosting server. An outdated plugin lets someone drop a webshell, and from there the site is used for spam, phishing pages or worse. Berth looks for that in several places: when files arrive, continuously while they sit in the webspace, and in a weekly full sweep. When it finds something, the administrator or the customer decides what happens next. This article covers website files. Scanning of e-mail attachments is described in Spam and antivirus. What is scanned, and when Moment What happens Weekly scan Every webspace is scanned in full: the document root, tmp/ and everything next to it. Realtime scan Every new or changed file in a webspace is scanned as soon as it is written (ClamAV on-access scanning through clamd). On by default on new installs with enough memory. Upload scan With the WAF on, files uploaded to a PHP site are scanned by ClamAV before the site sees them. An upload with known malware is refused with 403. If the scanner is unavailable, uploads are let through and the Scan uploads card turns red. Scan on entry Uploads through the panel's file manager and archives unpacked there are scanned straight away. After a restore, a site import, a migration or a Git deploy, Berth scans what changed in the background. On demand Scan now for one domain, Scan everything now for the server. Scans run at low priority in the background, so they do not slow down the sites. A scan that could not finish completely is marked as such on the page, so you know when a result is partial. Two detection engines ClamAV provides signature-based detection of known malware, with definitions updated automatically. When clamd runs, all scans share it, so the definitions are only held in memory once. Berth's own backdoor detector looks at PHP files and at PHP and web server settings in the webspace. It is code-aware: it reads the code the way PHP does, so text in comments, strings and HTML does not trigger it. It reports two kinds of findings: Hard findings are code that no legitimate package contains. They are treated like a virus signature and can be quarantined automatically. Suspicious findings are patterns that are common in malware but have legitimate uses too. They are reported with file, line and an excerpt, and never quarantined automatically. You judge them. The detector is tested against the cores of WordPress, Joomla and Drupal and against popular plugins, and gives no findings on them. Handle a finding Findings appear on the domain's Malware page and, for administrators, server-wide under Security → Malware. For each finding you choose: Quarantine: the file is moved out of reach of the website. The site can no longer load it. Restore: puts a quarantined file back with its original owner and permissions, for a false alarm. Delete: removes the file for good. Ignore: keeps the file and stops reporting it, for a suspicious finding you have checked. The panel explains what each choice means under What do I do with a finding?. Removing the malware is half the job: also find out how it got in, usually an outdated plugin or a leaked password, and fix that. Vulnerability management and Smart updates help with the first, the history in Restoring data with putting clean files back. On the server: berth security malware --sysuser acme # list findings berth security malware --id 42 --action quarantine # or restore, delete, ignore berth security scan --sysuser acme --background # scan one subscription berth security scan --all --background # scan everything Quarantine a file yourself If you find a backdoor the scan did not catch, quarantine it yourself. It then appears among the findings, where you can restore or delete it like any other. On the domain's malware page: Quarantine a file yourself. In the file manager: the Quarantine button next to a file. On the server: berth security malware --domain example.nl --quarantine-path httpdocs/wp-content/uploads/x.php Customers can do this themselves Customers see the Malware page of their own domains, with the same findings, buttons and scan history, and can quarantine, restore, delete or ignore within their own webspace. A restricted login needs the security permission for it. This saves the administrator a support ticket for every infected WordPress site, and the customer sees straight away what was found. Realtime and upload scanning settings Both have a card on Security → Malware: Realtime scan: on or off, and whether a hard finding goes into quarantine immediately or is only reported. Scan uploads: on or off. The card shows honestly whether uploads are really being scanned right now (green), whether scanning is switched on but needs attention (red), or whether it is off (grey). berth doctor warns about the red case as well. berth security malware --realtime on # quarantine hard findings at once berth security malware --realtime on --realtime-quarantine=false # report only berth security malware --upload-scan on Your choice survives updates and reinstalls. When you install a new server, berth install accepts --malware-realtime and --upload-scan, and --no-malware leaves the scanner out entirely. See Install. See also WAF: stops many attacks before a file is ever written. Isolation: a hacked site stays inside its own subscription. Audit trail and approvals: integrity and rootkit checks for the server itself."},{"s":"waf","l":"en","t":"Web application firewall (WAF)","d":"One WAF policy for every site, app and container, based on ModSecurity and OWASP Coraza with the OWASP Core Rule Set, with five strictness levels (Strict by default), per-rule hits, one-click exclusions and virtual patches.","c":"security","g":["waf","modsecurity","coraza","owasp crs","firewall","virtual patch"],"h":[["two-engines-one-policy","Two engines, one policy"],["modes-and-strictness-levels","Modes and strictness levels"],["server-package-domain","Server, package, domain"],["also-checking-responses","Also checking responses"],["see-what-the-waf-blocks","See what the WAF blocks"],["fix-a-false-alarm-with-an-exclusion","Fix a false alarm with an exclusion"],["virtual-patches","Virtual patches"],["upload-scanning","Upload scanning"],["check-the-configuration","Check the configuration"]],"x":"A web application firewall inspects each HTTP request before it reaches the application and blocks the ones that look like an attack: SQL injection, cross-site scripting, path traversal, remote code execution attempts, scanners. It does not replace updates, but it buys time and stops a large part of the automated attacks every public site receives. In Berth every website has a WAF by default, and you manage it with one policy, whatever runs behind it. Two engines, one policy What runs Engine PHP websites (served by Apache behind nginx) ModSecurity with the OWASP Core Rule Set (CRS) Node.js and Python apps, containers berth-waf: OWASP Coraza with CRS 4, a separate service with no access to the webspaces Both engines follow the same mode, strictness, exclusions and virtual patches. You never have to think about which engine a site uses. When you change the strictness of a domain, it applies to its PHP site and to the apps and containers published on it alike. Modes and strictness levels Each domain has a mode: on: attacks are blocked; detect: attacks are logged but let through, which is useful for a new or sensitive site while you check for false alarms; off. And a strictness level (Strictness): Level CLI name When to use it Relaxed relaxed Sites that legitimately receive a lot of unusual input Standard standard The common OWASP baseline Strict, Berth's default strict Recommended: rather slightly too strict than too lenient Very strict stricter Sensitive sites; expect to add a few exclusions Maximum maximum Everything on; only with care and testing Each level is a combination of a CRS paranoia level and an anomaly score threshold. berth waf levels shows exactly how each level is set. Server, package, domain The policy is set at three levels. The more specific one wins: Level Where What you set Server Security → WAF, section Server default Mode, strictness, rules that are off everywhere Package Packages Mode and strictness for all domains on the package, extra rules off Domain The domain's page, section WAF Its own mode and strictness, extra rules off Mode and strictness: the domain overrides the package, the package overrides the server, and an empty value means \"inherit\". Disabled rules add up across the levels. Customers, and restricted logins with the security permission, can adjust their own domains. berth waf server --mode on --level strict berth waf set --domain example.nl --level standard berth waf set --domain shop.example.com --mode detect berth waf set --domain example.nl --level default # inherit again berth plan set --name Business --waf-level stricter Also checking responses By default the WAF inspects requests. For a sensitive domain you can switch on Also check responses in its WAF section: the WAF then also inspects the pages the site sends back, so a leaked error message or a piece of source code is stopped. It costs some processing time on every page, and the visitor only gets a page once it is complete, so it is off by default. It applies to PHP sites, which are served through ModSecurity. berth waf set --domain example.nl --response berth waf set --domain example.nl --response=false See what the WAF blocks Under What the WAF encounters, on the domain page and on Security → WAF for the whole server, Berth shows per rule how often it fired and how often it actually refused a request, with example paths. A chart shows the trend over time, and Latest events lists individual requests. A visitor of an app who is refused gets a reference code, which you can look up in the events. Refused requests are also written to the system journal, so they reach your SIEM along with everything else. See Audit trail and approvals. berth waf events --domain example.nl # without --domain: the whole server Fix a false alarm with an exclusion When a rule fires on legitimate traffic, such as a contact form, a CMS editor or an API, switch that rule off for exactly the scope that needs it: Open What the WAF encounters on the domain page and find the rule that blocks the request. Click Switch off for that domain, or for the whole server if every site is affected. Test the form or page again. Or on the server, with the rule ID from the events: berth waf exclude --domain example.nl --rule 942100 berth waf exclude --plan Business --rule 942100 # every domain on a package berth waf exclude --server --rule 942100 # the whole server berth waf include --domain example.nl --rule 942100 # switch it back on Prefer a narrow exclusion on one domain over lowering the strictness of the whole site. A single excluded rule leaves the rest of the protection in place. Berth also ships a few narrow, built-in exceptions for known false alarms in popular applications, so a standard install of those works at the default level. Virtual patches When a vulnerability is published for software you run and there is no fixed version yet, a virtual patch can block the specific attack in the WAF until the real fix arrives. Virtual patches come as typed rules in a signed bundle. Berth only loads a bundle with a trusted signature. You apply them per CVE, as one of the mitigations on the vulnerability's page, and remove them with one click once the update is installed. berth mitigation patches # patches in the loaded bundle berth mitigation options --cve CVE-2026-12345 # what can be done for this CVE berth mitigation apply --cve CVE-2026-12345 --kind waf_patch --patch <id> berth mitigation list berth mitigation revert --id 7 See Vulnerability management for the full flow. Upload scanning For PHP sites with the WAF on, uploaded files can also be passed to ClamAV before the application sees them, and an upload containing malware is refused. This needs the virus scanner to be running; without it uploads go through unscanned, and the panel shows that. See Malware scanning. Check the configuration berth waf check runs the configuration test of berth-waf. As with every other service, a WAF change is validated before it goes live, so a bad rule never takes sites down. See How changes go live."},{"s":"firewall-and-bans","l":"en","t":"Firewall and bans","d":"The nftables firewall that rolls back by itself unless you confirm, fail2ban protection for every public service, your own jails with a dry run, geoblocking, and administrative SSH that is reachable only over a VPN.","c":"security","g":["firewall","nftables","fail2ban","ban","brute force","geoblocking","ssh"],"h":[["the-firewall","The firewall"],["confirm-or-roll-back","Confirm or roll back"],["administrative-ssh-only-over-a-vpn","Administrative SSH only over a VPN"],["administrator-accounts-with-expiring-keys","Administrator accounts with expiring keys"],["fail2ban-blocking-repeated-abuse","fail2ban: blocking repeated abuse"],["trusted-addresses","Trusted addresses"],["attack-wave-alerts","Attack-wave alerts"],["your-own-jails-with-a-dry-run","Your own jails, with a dry run"],["geoblocking","Geoblocking"],["outbound-traffic","Outbound traffic"]],"x":"Berth protects the network edge of a server in three ways: a firewall that decides which services are reachable at all, fail2ban that blocks addresses after repeated abuse, and a fixed rule that administrative SSH never faces the open internet. This article explains each, and how to change them without locking yourself out. The firewall The firewall is built on nftables and managed under Security → Firewall. It is on for every new installation. It allows in only the services you choose. Traffic over the VPN, traffic from the server itself and replies to outbound connections are always allowed. On the page you can: choose which services are open from outside under Services that are open, and limit a service to specific addresses; open extra ports under Extra ports; block addresses or ranges under Blocked addresses; see the resulting rule set under Rules. The System → Ports page, or berth security listeners, shows every listening port with its process and what the firewall does with it. Use it to spot a service listening where it should not. Confirm or roll back A firewall change can lock you out of your own server. Berth therefore never applies one without a way back: Make the change and click Apply. In a new browser tab, check that the panel, the websites and mail still work. Click Confirm. Without a confirmation within the window, the previous rules come back by themselves. Roll back now does that immediately. On the server: berth security firewall # show the current state and config berth security firewall --apply rules.json --rollback 120 # apply with a 120-second window berth security firewall --confirm # keep the new rules berth security firewall --rollback-now # go back immediately The window is between 10 and 900 seconds. When four-eyes approvals are on, a firewall change needs a second administrator. See Audit trail and approvals. On an existing server that has no firewall yet, berth install --firewall turns it on with a confirmation window, so you can confirm in the panel or with --confirm. Administrative SSH only over a VPN As a product rule, administrative SSH on port 22 is reachable only over a VPN interface (WireGuard or Tailscale, for example), independent of the firewall settings. Brute-force attacks on the root account from the internet simply never reach sshd. This is why a VPN interface is one of the system requirements. Customers use a separate SSH port for SFTP, and for shell access when their package allows it. The panel shows that port on the customer's SSH and FTP pages. See Files, FTP and SSH. If the panel itself is unreachable, Rescue mode gives you a way in over the VPN. Administrator accounts with expiring keys System → Admin access manages the people who may log in to the server itself over that VPN. Each administrator gets their own account in the berth-admins group, with SSH keys that must carry an expiry date; an expired key is removed automatically. Sudo is granted (or taken away) through a drop-in file that is checked with visudo -c before it is used. Granting access in the panel is a request that you confirm with your passkey in the admin terminal, or as root on the command line: berth admins add jane --key-file jane.pub --expires 2027-03-31 # with sudo, unless --no-sudo berth admins key-add jane --key-file laptop.pub --expires 2027-03-31 berth admins sudo jane off Berth can also manage sshd on port 22 for you: keys only, and only for the berth-admins group. berth sshd apply tests the new configuration with sshd -t first and refuses while no administrator has a valid key. The change rolls back on its own unless you confirm with berth sshd confirm that you can still get in. fail2ban: blocking repeated abuse fail2ban watches the logs of every public service and temporarily blocks an address that keeps failing. Berth configures jails for: SSH and SFTP; the panel sign-in; Postfix (SMTP and submission) and Dovecot (IMAP and POP3); webmail; FTP; nginx request limits; scanners probing for well-known vulnerable paths; repeat offenders (recidive), who are blocked for longer and on all ports. A block covers both TCP and UDP, including HTTP/3. Repeat offenders get progressively longer bans. Security shows per jail which addresses are blocked under Blocked addresses, lets you unblock or block an address yourself, and shows the repeat offenders under Repeat offenders. berth security bans # blocked and trusted addresses per jail berth security ban --ip 203.0.113.50 # block (in the panel jail by default) berth security unban --ip 203.0.113.50 # unblock in every jail berth security jails # ban time, window, attempts, enabled jails berth security recidive # repeat-offender settings You can adjust the ban time, the window in which attempts count, the number of attempts and which jails are on, with berth security jails --ban-time … --find-time … --max-retry … --disable …, or on the same page. Trusted addresses Addresses on the trusted list are never blocked. The server's own addresses are always on it, so a site that calls itself cannot get the server banned. Add your office or VPN range so a mistyped password does not lock out the whole team: berth security trusted --set 192.0.2.0/24,2001:db8:10::/48 The panel also offers to trust the address you are using right now (Trust your own address?). Attack-wave alerts A single ban does not send a notification. Hosting servers are attacked all day and individual bans are noise. Berth does alert when there is a wave of bans, or a wave of refused web requests across the server. The alert names the busiest jails or sites. You can adjust or silence these rules like any other alert, see Notifications and alerts. Your own jails, with a dry run Run something Berth does not know about, such as Gitea, a game server or your own API? Add your own jail under Security → Custom monitoring: Choose the source: a log file under /var/log or a domain's log directory, or a systemd unit (read from the journal). Choose one of fail2ban's standard filters, or write your own failregex with <HOST> where the address appears. Click Dry run. Berth runs the filter over the latest lines of the source and shows which lines match and which addresses would be blocked. Nothing changes yet. When the result is right, save. Berth checks the configuration with fail2ban-client -t before it reloads fail2ban, so a broken jail never stops the existing ones. On the server: berth security jail filters # fail2ban's standard filters berth security jail test --unit gitea.service \\ --failregex 'Failed authentication attempt for .* from <HOST>' berth security jail add --name gitea --label \"Gitea sign-in\" --unit gitea.service \\ --failregex 'Failed authentication attempt for .* from <HOST>' berth security jail list berth security jail remove --name gitea Geoblocking Country data comes from a local copy of the DB-IP Lite database, so no visitor address is sent to a lookup service. Per site: keep out visitors from some countries, or allow only some, under Geoblocking on the domain page, or with berth domain geo --domain example.nl --block <countries> or --allow NL,BE. The panel itself: limit the panel, the API and webmail to certain countries with berth geoip panel. The panel refuses a setting that would block the address you are using. Status pages stay reachable. If you lock yourself out of the panel anyway, turn it off on the server with berth geoip panel --off. Outbound traffic The firewall controls what comes in. What customer sites may send out is controlled per subscription, see Isolation."},{"s":"vulnerability-management","l":"en","t":"Vulnerability management","d":"How Berth finds known vulnerabilities in OS packages, runtimes, apps, container images, WordPress sites and itself, ranks them with KEV, EPSS and CVSS, tracks deadlines, records exceptions, and closes them with a fix, an emergency patch or a mitigation.","c":"security","g":["cve","vulnerabilities","patching","kev","epss","sbom","vex"],"h":[["what-is-covered","What is covered"],["how-findings-are-ranked","How findings are ranked"],["deadlines-slas","Deadlines (SLAs)"],["fix-it","Fix it"],["fix-now","Fix now"],["the-emergency-patch","The emergency patch"],["mitigations-when-there-is-no-fix","Mitigations when there is no fix"],["exceptions-vex","Exceptions (VEX)"],["container-images","Container images"],["servers-without-internet","Servers without internet"],["a-weekly-summary-and-the-whole-fleet","A weekly summary and the whole fleet"],["evidence","Evidence"]],"x":"Knowing which software on a server has a known vulnerability, how urgent each one is, and whether it was fixed in time is the core of patch management. It is also what auditors ask about under ISO 27001 (A.8.8), BIO2 and NIS2 (article 21). Berth does this for the whole server in one place: Security → Vulnerabilities. What is covered Berth keeps a local vulnerability database and compares it daily with what is installed: Source of software How it is checked OS packages The distribution's own security data: the Debian security tracker, and dnf errata on AlmaLinux and Rocky Linux PHP versions PHP's own security advisories Node.js runtimes Node.js security releases Application dependencies Lockfiles in sites and apps (npm, Yarn, pnpm, Composer, pip, Poetry, Pipenv, Bundler), matched against OSV Container images The packages inside each image, matched against OSV Go binaries Including Berth's own programs WordPress core, plugins and themes The Wordfence Intelligence feed (enter a free API key) The database is built from OSV per ecosystem, the GitHub Security Advisories, CISA's Known Exploited Vulnerabilities (KEV) catalogue and FIRST's EPSS scores. Optionally, CVSS scores are fetched from NVD for vulnerabilities that have no severity yet. That lookup sends only the CVE number. berth vulndb status # sources, their age and any errors berth vulndb update # fetch the sources now berth security cve list # vulnerabilities per CVE, highest risk first berth security wp-vulns --check Customers see the findings for their own subscriptions under Applications, with instructions on how to fix them. How findings are ranked The list is sorted by one risk score from 0 to 100 that combines three things: Severity (CVSS): how bad it is if the flaw is exploited. Likelihood (EPSS and KEV): EPSS predicts the chance of exploitation in the next 30 days. KEV means the flaw is being attacked right now. Exposure: whether the vulnerable component is actually running, and whether it can be reached from outside. A critical CVE in a library that is installed but never loaded ranks below a high one in a service listening on the internet. Each vulnerability's page explains its score under Why this risk and shows where the flaw sits under Where it is. Deadlines (SLAs) The policy sets how quickly a vulnerability must be fixed. The defaults are: Category Deadline Actively exploited (KEV) 72 hours Critical 7 days High 30 days Medium 90 days Change them under Deadlines at the bottom of the page, or with berth security cve policy --set policy.json. 0 means no deadline. A finding that is updated but still needs a service restart counts as open until the restart. A missed deadline sends a notification and lowers the server's hardening score. berth security cve kpis gives the figures auditors ask for: mean time to remediate per severity, the share fixed within the deadline, open KEV items and the oldest open critical finding. Fix it Fix now Where Berth can install the fix itself, the vulnerability shows Fix now. That runs an update of exactly the packages involved, with a check before and after, and rolls back if something breaks. For a PHP security release the whole PHP version is updated together. It never reboots the server. berth security cve fix CVE-2026-12345 --plan # show what would happen berth security cve fix CVE-2026-12345 If the fixed package is not in the repository yet, the page says so. The emergency patch With the emergency patch on (part of the update policy, on by default), a vulnerability that is actively exploited, or critical and remotely exploitable, and that has a fix, does not wait for the next maintenance window: with automatic security updates it is patched straight away, otherwise you get one notification with a button to install it. Held packages are left alone. Only those packages are updated, and the server is never rebooted. See OS updates and maintenance. Mitigations when there is no fix When no fixed version exists yet, the vulnerability shows No fix: mitigation. The options are: Mitigation What it does Virtual patch A WAF rule from a signed bundle that blocks this attack, see WAF Port local only Makes the affected service reachable only from the server itself Port closed Closes the port in the firewall Service off Stops the service, with a reason and an optional end date Container off Stops one container Component off Switches off a component under System → Software Incident Records it as an incident, for when you accept the exposure for now, see NIS2 and incidents Each mitigation can be reverted with one click, which restores the state from before. Some things can never be switched off this way, so a mitigation cannot cut you off from the server: Berth itself, SSH, networking, the panel database and the firewall. berth mitigation options --cve CVE-2026-12345 berth mitigation apply --cve CVE-2026-12345 --kind port_local --port 6379 berth mitigation revert --id 7 Mitigations also work for a brand-new vulnerability Berth does not know yet. Enter a valid CVE or GHSA ID and a reason. Exceptions (VEX) Not every finding needs a fix. Record an exception with Record exception… on the vulnerability's page: Risk accepted: you know, and accept it for a period. Not affected: with a standard VEX justification, such as \"vulnerable code not present\" or \"vulnerable code not in execute path\". Every exception needs a reason and an expiry date at most a year ahead. When four-eyes approvals are on, a second administrator must approve it. Expired exceptions return to the open list by themselves. berth security cve accept CVE-2026-12345 --state not_affected \\ --justification vulnerable_code_not_in_execute_path \\ --reason \"Module is installed but not loaded by any site\" --until 2027-04-30 berth security cve revoke <exception-id> # withdraw an exception berth security vex exports all statements as CycloneDX VEX, next to the SBOM from berth security sbom. Container images Images are scanned too. In the policy (Containers and notifications) you choose what happens when a customer deploys a new image with known vulnerabilities: warn, or refuse images with findings above a threshold (critical, or high and critical). See Containers. Servers without internet With the offline option, Berth fetches nothing and accepts only signed database bundles. Build a bundle on a connected server, signed with an Ed25519 key of your own whose public half the isolated server trusts, and import it there. Bundles signed with Berth's release key are trusted out of the box. berth vulndb bundle --key signing.key --out vulndb.tar.gz # on a connected server berth vulndb import vulndb.tar.gz # on the isolated server A weekly summary and the whole fleet Administrators get a weekly summary on the day of their choice. With Fleet, Fleet → Vulnerabilities shows each vulnerability across all servers: who is affected, where the fix is available, and where a mitigation is in place. From there you can roll out a fix or a mitigation in waves. Evidence The vulnerability register, the exceptions, the SBOM and the VEX statements are part of the evidence pack. See Evidence for audits."},{"s":"audit-trail-and-approvals","l":"en","t":"Audit trail and approvals","d":"The hash-chained activity log, the agent's independent audit trail, the audit watchdog, SIEM export with Wazuh, four-eyes approvals, just-in-time elevation, the break-glass account, and integrity and tamper checks for the server itself.","c":"security","g":["audit","audit log","siem","wazuh","four-eyes","approvals","integrity"],"h":[["the-activity-log","The activity log"],["the-agent-s-own-trail","The agent's own trail"],["the-audit-watchdog","The audit watchdog"],["forward-to-a-siem","Forward to a SIEM"],["four-eyes-approvals","Four-eyes approvals"],["auditors-and-just-in-time-elevation","Auditors and just-in-time elevation"],["break-glass-account","Break-glass account"],["integrity-and-tamper-detection","Integrity and tamper detection"]],"x":"Prevention is only half of security. You also need to know afterwards who did what, notice misuse while it happens, and make sure no single account, including an administrator's, can quietly do serious damage. This article covers how Berth records activity, how it watches that record, and how it limits standing privileges. The activity log Every change in the panel, from the web interface, the API, the CLI or an AI assistant, is written to the activity log: who, when, from which address, what, and on which object. Administrators find it under Audit log in the sidebar. Customers see their own activity under Activity. Hash chain. Each entry includes a hash of the previous one. Changing or removing an old entry breaks the chain from that point on. The page verifies the chain incrementally each time you open it, and the full chain is checked again regularly in the background. Check fully now starts a full check yourself. A break is reported as a critical alert. Configuration changes. Audit log → Changes shows each configuration change with a diff, and every step of applying it (berth admin changes --contains <text>). Retention. By default the log is kept indefinitely. Set a retention period between 90 and 3,650 days with berth admin audit-retention --days 730. Pruning old entries according to the retention period does not count as a break. Export. The log can be downloaded as CSV, and it is part of the evidence pack, see Evidence for audits. berth audit list berth audit verify The agent's own trail The activity log lives in the panel's database. An attacker who had taken over the panel could, in theory, rewrite it and recompute the chain. Berth therefore keeps a second record that the panel cannot touch. The root agent records, on its own, every operation that affects access, data or security, and every operation it refuses. Each entry has the user ID the agent saw on the socket and who the panel said the request was for. Passwords and hashes are never written: for a new mailbox password only the address is recorded. The trail is append-only, written to the system journal as well (so a SIEM agent reads it), and chained with a key the panel never has. The panel regularly hands the agent an anchor: a fingerprint of the latest entry in the activity log. A regular check as root compares the activity log against those anchors. If entries were rewritten, removed or truncated, even with a recomputed chain, it shows, and a critical alert follows. See it under Audit log → Agent trail: berth audit agent --denied # only refused operations berth audit agent --class vernietigen # lezen (read), beveiliging (security), toegang (access), export, vernietigen (destroy) berth audit agent --follow sudo berth audit verify --anker # compare the activity log with the anchors After a deliberate restore of the panel database outside berth dr restore (which handles this itself), start a new chain with a reason. The old trail is kept, not erased, and the reason is recorded in the new chain, the journal and the activity log: sudo berth audit agent --new-chain --reason \"Panel database restored from the backup of 22 October\" The audit watchdog The watchdog reads the activity log continuously and looks for signs of misuse, such as: many failed sign-ins on one login, or from one address across many logins (password spraying); an administrator, reseller or auditor signing in from a new country; two-step verification switched off or a passkey removed; a new API token; a new administrator or reseller, or temporary administrator rights; an administrator logging in as a customer; a sign-in with the break-glass account; many deletions by one login in a short time; a change to a security setting, such as log forwarding, the firewall, SSO or the watchdog's own rules; a broken hash chain, or log lines that could not be forwarded to the SIEM. Optional rules cover administrative work outside working hours and sign-ins from a new address. Findings appear under Audit log → Watchdog and go to the administrators through their notification channels. Handle each with a note (Handle…) or turn it into an incident with one click (Create incident), see NIS2 and incidents. On the same page you can switch rules on or off, tune them, and set your working hours. berth auditwatch list berth auditwatch ack --id 12 --note \"Planned migration, confirmed with the team\" berth auditwatch incident --id 13 Forward to a SIEM The activity log over syslog. Send every entry to your SIEM over UDP, TCP or TLS (RFC 5425), optionally with a client certificate for mutual TLS. Set it on the Audit log page or on the server: berth admin audit-syslog --target tls://siem.example.nl:6514 \\ --ca-file ca.pem --client-cert client.pem --client-key client.key Server logs. The server's own audit events (auditd) and sign-ins on the server itself can be forwarded as well, under System → Logs → Server log drains. See Logs and log drains. Wazuh. Berth ships Wazuh decoders and rules for both the activity log and the agent trail. Under Security → SIEM agent you can Install the Wazuh agent from Wazuh's repository, with its signing key pinned by fingerprint, point it at your manager and enrol it with the manager's password, which is not stored. An agent you installed by hand can be adopted with Adopt: its connection and enrolment stay, and Berth only adds its own read rules. If the agent stops connecting after a change, Berth puts the previous configuration back. Wazuh's active response, which lets the manager run scripts and firewall rules as root, is off by default and can only be turned on by root on the server. A compromised panel cannot point the agent at a hostile manager and run commands that way. berth siem agent install berth siem agent configure --manager wazuh.example.nl berth siem agent enroll --password-file - berth siem agent status On a Fleet panel you can also link your Wazuh manager read-only, so that Wazuh serves as an independent second opinion on every member server. Four-eyes approvals With four-eyes on, a sensitive action becomes a request that a second administrator must approve. It applies to: deleting a customer, a domain with its files, or a database; restoring a backup, a whole account, parts of it or files over the originals, and deleting a backup; removing an IP address from the server and changing the firewall; weakening two-step verification, and switching four-eyes off; creating an administrator, or resetting another administrator's password or second step. A new or reset administrator receives a link at their own e-mail address and chooses their own password. The requester never sees it, so nobody can create a second administrator to approve their own requests. To turn it on, go to Settings → Access, card Four-eyes for sensitive actions. It needs at least two administrators. berth approvals four-eyes on Open requests appear with a counter in the menu and under Security → Approvals. Another administrator chooses Approve and run or Reject. The action then runs in the requester's name. The requester can withdraw a request (Withdraw), and a request lapses after 24 hours. berth approvals list berth approvals approve 31 berth approvals reject 32 Commands run as root on the server itself are not subject to four-eyes: whoever is root on the machine is the trust anchor of the whole system. Auditors and just-in-time elevation An auditor sees everything and changes nothing: settings, logs, the activity log, the access review, certificates, incidents and the evidence pack. Customer content and secrets stay out of reach. Auditors cannot download webspace files, backups, database dumps or customer mail, and secret values show as (hidden). See Roles and permissions. printf '%s\\n' \"$PASSWORD\" | berth admin create --login accountant --role auditor --email accountant@example.nl An auditor who occasionally needs to act can request temporary administrator rights under Account → Temporary administrator: choose 1, 2, 4 or 8 hours and give a reason. Another administrator approves it under Approvals. The rights end when the time is up, or earlier with End now or berth admin elevation-end --login accountant. Nobody needs permanent administrator rights for occasional work. Break-glass account A break-glass account is for when normal access fails, for example when your SSO provider is down: berth admin break-glass --login emergency --email security@example.nl The long random password is shown once. Print it and keep it in a safe or a sealed envelope. The account does not need a second step, so it still works when exactly that is the problem. In exchange: every sign-in is recorded in the activity log and notified to all administrators; a session lasts at most an hour; API tokens do not work for it. --off turns it back into a normal administrator. Integrity and tamper detection Under Security → Integrity, Berth checks the server itself: File baseline. A fingerprint of the panel's own files and important system files. Changes made outside the panel are reported. Accept them with Accept as new baseline, or restore. A Berth program that differs from the signed release is restored with berth update --force. Critical packages. The installed files of critical packages such as sshd, sudo, PAM, systemd and the running kernel are compared with the vendor's signed package of exactly the installed version, fetched through the normal apt or dnf trust chain. A mismatch is a critical alert. Reinstall the package and investigate the server. Rootkit check. A daily check for signs of a rootkit, with rkhunter or chkrootkit included when they are installed. A false positive can be set aside with a reason. A critical finding can only be dismissed by root on the server, so a compromised panel cannot hide a real rootkit. Tamper detection. Independent checks look for signs that Berth itself has been tampered with or that its protections are being bypassed. All of these only alert. They never stop sites or services, so a false positive cannot cause an outage. Findings go to the alert engine, the activity log and berth doctor. berth integrity check berth integrity packages berth integrity tamper berth security rootkit-check The Hardening tab next to it scores the server's configuration (access, network, updates, kernel and system) and shows where to fix each point. See Security model."},{"s":"uptime-and-status-pages","l":"en","t":"Uptime monitoring and status pages","d":"Watch websites and mail from the panel, confirm outages from other Berth servers, publish a status page per customer and announce planned maintenance with an iCal feed.","c":"monitoring","g":["uptime","monitoring","status page","availability","heartbeat","outage"],"h":[["what-berth-can-watch","What Berth can watch"],["watch-a-page-or-a-mailbox","Watch a page or a mailbox"],["every-site-is-watched-for-server-errors","Every site is watched for server errors"],["checks-for-the-server-itself","Checks for the server itself"],["confirmation-from-other-locations","Confirmation from other locations"],["public-status-page-per-customer","Public status page per customer"],["planned-maintenance-and-the-ical-feed","Planned maintenance and the iCal feed"],["when-the-whole-server-is-down-outbound-heartbeat","When the whole server is down: outbound heartbeat"],["what-happens-on-an-outage","What happens on an outage"],["related","Related"]],"x":"Berth checks the sites and mail it hosts by itself, without an external monitoring service. You get a notification when a page stops answering, each customer gets a public status page with 90 days of history, and planned maintenance shows up on that page before it happens. For the case where the whole server goes dark, Berth can also report to an outside monitor. What Berth can watch There are three families of checks. A page of a website. An HTTP or HTTPS request to a path on one of the server's domains. Optionally the answer has to contain a keyword (for example In winkelwagen on a shop page), so a page that returns 200 but shows a database error still counts as down. With certificate checking on, an expired or invalid certificate also counts as an outage. The mail of a domain. An IMAPS check and an SMTP submission check, so you notice when customers can no longer read or send mail even though the website is fine. The server itself, without a domain. A TCP port (optionally sending a string and expecting a reply, such as PING and +PONG for Valkey), a DNS answer of a given type, a TLS certificate (direct TLS or STARTTLS for SMTP, IMAP, POP3 or FTP, with a warning a set number of days before expiry), or a command. Commands run in a sandbox and never as root. Each check records its response time, so the monitor page shows a latency chart next to the up/down history. Watch a page or a mailbox In the panel: Open Uptime and click Watch page. In the dialog Watch a page or mail, choose the domain and what to watch: A page of the website or The domain's mail. For a page, fill in the path and, if you want, a keyword. HTTPS is chosen automatically when the domain has a certificate. Tick On the public status page if customers and visitors may see this monitor. Click Watch. On the command line: berth uptime add --domain acme.nl --path /shop --keyword \"In winkelwagen\" --public berth uptime add --domain acme.nl --kind mail berth uptime list berth uptime show 12 # 90 days and the latest outages of monitor 12 berth uptime set 12 --pause # stop checking (and notifying) for now Customers can watch pages of their own domains; administrators and resellers see the monitors of the customers they manage. Every site is watched for server errors You do not have to create a monitor for every site to hear about a broken one. Berth watches the error rate of every website on its own, from the server's traffic statistics, and tells the administrator and the customer when a site that gets real traffic starts returning server errors (5xx) for most of its requests. Berth also regularly requests every site that runs PHP, to know which sites work. After a PHP update, every site on the updated version is requested again, and a site that worked before and now returns a server error counts as a failed update: the PHP packages are rolled back automatically. See OS updates and maintenance. When a customer switches their own site to another PHP version, nothing is rolled back; they get a notice with the way back. Checks for the server itself Services without a domain (Valkey, MariaDB, a mail port, a resolver, an internal health URL) are watched under System → Applications, card Separate checks, button Add check. The CLI offers a few more kinds: berth uptime system add --kind tcp --name valkey --port 6379 --send PING --reply +PONG berth uptime system add --kind tls --name smtp-cert --host mail.example.nl --port 587 --starttls smtp --verify berth uptime system add --kind dns --name mx --dns-name example.nl --dns-type MX berth uptime system add --kind command --name queue --argv /usr/local/bin/check-queue berth uptime system list Besides tcp, dns, tls and command, the CLI also knows http (a local URL), process (a process must be running), heartbeat (a file must have been touched recently) and journal (a literal error message must not appear in a unit's log). Each check has its own interval (--interval) and the number of consecutive failures that count as down (--fails). The action on failure is notify by default; restart restarts the unit (with a per-hour cap) and hook runs a command you give. Confirmation from other locations A check that fails from the server itself may be a local network problem rather than a real outage. Berth can ask other Berth servers to look as well. These are called probe locations. When a site fails here but another location still reaches it, Berth logs it and does not raise an outage. To link one: On the other server, offer it as a probe location: berth uptime probe offer. It creates a token that can only run probe checks, and prints a link code (BERTHMEET1-…) once. On this server, open Uptime → Probe locations, click Link a probe location and paste the address and the link code. Or link with consent: berth uptime location link --url https://panel.example.com gives you a link to open in the browser, where an administrator of the other server approves it. berth uptime location --name ams --url https://panel.example.com --token-file - < code.txt berth uptime location test ams berth uptime probe list # on the other server: who measures from here berth uptime probe revoke <token-id> # disconnect a server that measures from here (id from probe list) Removing a location here also revokes its token on the other side. Public status page per customer Every customer can have one public status page. It lists all monitors marked public, with the current state, 90 days of daily bars and recent outages, and none of the internal details (no error messages, no server names). It follows the customer's or reseller's branding, see resellers and white label. In the panel: on Uptime, card Status page, click Show or create link. Administrators pick the customer first. On the command line: berth uptime page --customer acme; --rotate creates a new link and the old one stops working. The same data is available as JSON without logging in at GET /api/v1/status/{token}, for your own website or a dashboard. The HTML page refreshes itself every minute. The link is unguessable but not secret once you share it. If a customer wants to stop sharing an old link, rotate it. Planned maintenance and the iCal feed Planned work should not look like an outage. Announce it under System → Maintenance, section Announce maintenance: a title, a start and end, an optional explanation, and Mail customers now if they should get an e-mail. Customers see the announcement on their overview and on their status page. An outage during the announced window is recorded as planned maintenance, not as unavailability. Calendar (iCalendar) on the same page downloads all planned maintenance as an .ics file; berth maintenance ics writes the same to stdout. berth maintenance plan --title \"PHP 8.4 upgrade\" --start \"2026-11-12 02:00\" --end \"2026-11-12 03:00\" --notify berth maintenance show berth maintenance cancel 4 Maintenance windows, which decide when the server may update and reboot itself, are covered in OS updates and maintenance. When the whole server is down: outbound heartbeat A server that has lost power cannot send a notification. Two ways to cover that with an external monitor: Heartbeat. After every watchdog round without an unresolved problem, the server pings a URL you choose, for example a check at healthchecks.io, a push monitor in Uptime Kuma or a heartbeat in Better Stack. When the pings stop, that service alerts you. ``bash berth watchdog heartbeat --url https://hc-ping.com/your-check-id berth watchdog heartbeat --off `` Secret health page. Under Settings → Monitoring, section Monitoring from outside, or berth watchdog page --on, the server publishes a page at an unguessable address. Its first line is one sentence that states every component is healthy. Copy it with Copy sentence and set it as the required text in a keyword monitor. If the server disappears or any component turns unhealthy, the sentence no longer matches. --rotate gives a new address. The public endpoint /healthz answers 503 when the agent or the panel database does not work, which is enough for a simple load-balancer or ping check. What happens on an outage When a monitor goes down, the administrators get a notice (and the customer, for their own sites), and the webhook events uptime.down and later uptime.up fire. Where these notices go (e-mail, Slack, Teams, PagerDuty, SMS and more) is set per account; see notifications and alerts. Availability per month also appears in the customer's signed monthly report. Related Notifications and alerts Statistics and metrics Rescue mode, for when the panel itself is the problem Fleet, for an overview across several servers"},{"s":"statistics-and-metrics","l":"en","t":"Statistics and metrics","d":"Per-subscription CPU, memory, disk I/O and database load, traffic and storage per type, server OS metrics with a disk-full forecast, visitor reports, and a Prometheus /metrics endpoint with a scoped token.","c":"monitoring","g":["statistics","metrics","prometheus","performance","usage","forecast","grafana"],"h":[["where-to-find-what","Where to find what"],["per-subscription-cpu-memory-i-o-and-database-load","Per subscription: CPU, memory, I/O and database load"],["traffic-and-storage-per-type","Traffic and storage per type"],["the-server-os-metrics","The server: OS metrics"],["disk-full-forecast-and-memory-leaks","Disk-full forecast and memory leaks"],["visitors","Visitors"],["prometheus-and-grafana","Prometheus and Grafana"],["related","Related"]],"x":"Berth measures what each subscription uses and how the server itself is doing, and keeps the history so you can see trends rather than single moments. Customers see their own usage; administrators see every subscription and the server. Everything is also available on the command line and, for the server, as Prometheus metrics. Where to find what You want to know Panel CLI How the server performs right now and over time Statistics, tab Overview for administrators berth stats server, berth stats live CPU, memory, disk I/O and database load per subscription Statistics → Performance berth stats performance [--sysuser acme_nl] Traffic, mail and storage of one subscription Statistics → the subscription berth stats subscription, berth stats domain Detailed OS metrics (PSI, steal, conntrack, per NIC and per disk) System → Monitoring berth stats os --period 24h --text When a disk will be full System → Disks and System → Monitoring berth stats forecast --text Visitors of a website Domain → Statistics → Visitors berth stats visitors --all (rebuilds the reports now) Health of a subscription over the last week (overload, error pages, PHP pool full) — berth stats health Customers see the menu item as Usage. Everything below is scoped: a customer only ever sees their own subscriptions, a reseller only their customers. Per subscription: CPU, memory, I/O and database load Every subscription runs in its own systemd slice (see isolation), so the kernel's cgroup accounting gives exact figures per customer rather than estimates from process lists. The panel measures every five minutes: Processor time, split into websites and apps on one side and SSH and scheduled tasks on the other, with the average and the peak. Memory, as PSS (proportional set size), so shared libraries are not counted once per process. Disk I/O in bytes read and written, and IOPS. Database load: the query time the subscription's database users consumed. Restarts of the subscription's apps. Statistics → Performance shows these for all subscriptions side by side, with a live view that refreshes itself (Pause stops it). It is the quickest way to find the one customer who is using the server's capacity. Click a column header to sort. If a subscription sits at or above a share of its package limit for several hours in a row, the administrators get a notice; the percentage is set with berth notify set --perf-percent. For the database side, Databases → Performance adds slow queries and MariaDB settings with recommended values; see databases. Traffic and storage per type The subscription page breaks traffic and storage down by what caused it: web traffic per domain (requests and bytes in and out; every file counts as a request), apps and containers, mail delivered into mailboxes and mail sent out via the server, and mail fetched from external accounts, databases, logs, and backups kept on the server. The card What takes up space? shows storage per type against the package's disk limit. Traffic is measured every five minutes and disk usage every hour. The overview for administrators shows storage now, web traffic this month and traffic per day for the last 30 days, for all subscriptions together and per subscription. The server: OS metrics System → Monitoring has the server's own numbers: processor time split into user, system, iowait and steal (time a hypervisor took from the VM), load, available memory and swap, pressure stall information (PSI) for CPU, memory and I/O, which shows how much of the time tasks had to wait, processes per state (running, waiting on disk, zombie), file descriptors and conntrack usage, network per interface and disk I/O per device, including how busy each disk was. You pick the period (one hour to 30 days) and the resolution. The watchdog takes a light measurement every minute (CPU, load, memory, PSI, swap) and keeps it for 24 hours, so a one-minute spike that disappears in a five-minute average is still visible. The rest is collected every five minutes. Retention. Raw measurements are kept for 3 days, hourly values for 93 days and daily values for two years. Disk-full forecast and memory leaks For every file system, both for bytes and for inodes, Berth fits a straight line through the last one to two weeks of usage and reports when it will reach 100 %, with the fit quality (R²) as a measure of confidence. It only warns when the fit is good and usage also rose over the last few days, so the sawtooth of log rotation or nightly backups does not produce false alarms. The forecast appears on System → Disks and System → Monitoring, and as the notice Disk filling up, forecast: first as a warning, then as critical when the date comes close. The same analysis watches services and apps for memory that keeps rising since their last restart (Possible memory leak), with the suggestion to restart them in the next maintenance window. MariaDB is excluded because it fills its cache on purpose. berth stats forecast --text What to do when the forecast is short is in disks and snapshots. Visitors For each domain, Berth builds a nightly visitor report with GoAccess from the web server's access logs: visitors, pages, referrers, browsers and status codes for the last 30 days. IP addresses are anonymised, and search engines and crawlers are left out. Nothing is added to the website itself: there is no tracking script and no cookie. Find it on the domain under Statistics → Visitors. Prometheus and Grafana The panel serves Prometheus metrics at https://<panel-hostname>/metrics. Access needs an API token with the scope metrics, which can do nothing else. Any login can create one; a customer's token returns only their own subscriptions and domains, an administrator's also the server: berth token create --login admin --name prometheus --scope metrics A matching scrape job: scrape_configs: - job_name: berth scheme: https metrics_path: /metrics authorization: type: Bearer credentials_file: /etc/prometheus/berth.token static_configs: - targets: [\"panel.example.nl\"] What you get: berth metrics for the panel and its subscriptions, including berthfilesystemfulleta_seconds{mount,resource}, the forecast as seconds until full. For administrators, the server's metrics under the nodeexporter names (nodecpusecondstotal, nodememory, nodenetwork, nodedisk, nodefilesystem, nodepressure, nodenfconntrack, nodesockstat and more), read directly from the kernel. The Node Exporter Full* dashboard for Grafana works without installing a separate exporter; the hwmon, timex and systemd collectors are not included. Prometheus asks for OpenMetrics and gets it; add ?format=openmetrics to request it by hand. If MariaDB is down, /metrics keeps answering for an administrator's server-wide metrics token that the panel recently accepted, with berthdatabaseup 0, so your monitoring can tell you the database is the problem. Without the database you can also read the same numbers on the server with berth stats live. The token is a secret. Store it in a file readable only by Prometheus, as above, rather than in the scrape config itself. Related Uptime and status pages Notifications and alerts, for alert rules on these metrics Logs and log drains REST API Home Assistant, for a read-only status view in your home dashboard"},{"s":"notifications-and-alerts","l":"en","t":"Notifications and alerts","d":"Decide who hears about what and where: a catalogue of notice kinds with opt-outs, channels from e-mail and Slack to PagerDuty and SMS, office-hours bundling, an alert engine with acknowledge, silence and escalation, the watchdog, and a signed monthly report.","c":"monitoring","g":["notifications","alerts","slack","pagerduty","sms","webhook","on-call"],"h":[["notices-kinds-categories-and-recipients","Notices: kinds, categories and recipients"],["opting-out-and-what-cannot-be-muted","Opting out, and what cannot be muted"],["channels","Channels"],["your-own-webhook","Your own webhook"],["sms","SMS"],["office-hours","Office hours"],["the-alert-engine","The alert engine"],["the-watchdog","The watchdog"],["mail-delivery-checks","Mail delivery checks"],["the-monthly-report","The monthly report"],["related","Related"]],"x":"Berth tells people when something needs attention: a site that is down, a backup that failed, a certificate that will expire, a vulnerable plugin, a disk filling up. This article explains how those messages are organised, how each account chooses its own channels and opt-outs, how the alert engine avoids both silence and noise, and what keeps working when the panel itself is in trouble. Notices: kinds, categories and recipients Every message is a notice of a specific kind, for example Software: security update needed or Malware found. There are more than a hundred kinds, each in one category: Security, Backups, Certificates, Availability, Performance and limits, Updates, Mail, Server, Account and access, Licence, Reports, Maintenance, Other. Each kind has a severity (critical, warning or info) and a fixed set of recipients: Administrators get everything about the server. A customer gets notices about their own subscriptions, by e-mail and on their own channels, once the hosting provider has enabled notifications in the customer's package. A reseller gets a copy of what concerns their customers' domains and subscriptions (vulnerable software, malware, a possibly hacked site, outages, slow pages, limits and similar). A staff login of a customer (a separate login with limited rights, or for one subscription) only receives notices through a channel it links itself, and with a single subscription only what concerns that subscription. Most notices carry a button View and fix that opens the exact page in the panel where you can see and solve the problem. Opting out, and what cannot be muted Every account manages its own notices under Account → My notifications. Per kind you can turn it off or back on. At the bottom of every notice e-mail there are links to unsubscribe from this notice, everything about this website, this kind or the whole category. Such a link always asks you to sign in and confirm first, so a forwarded e-mail cannot be used by someone else to silence you. Some kinds cannot be turned off, because missing them would be a security problem: use of an emergency account and temporary administrator rights, approvals waiting for a second administrator (four-eyes), security incidents, the licence, for customers, changes to the security of their own account (second factor or access). Opt-outs and re-enables are written to the activity log. The page also lists what was sent recently, to whom and with what result (sent, failed, bundled, not sent because of an opt-out), so you can show afterwards who received what. Administrators also see the opt-outs of customers and resellers. berth notify log # recent notices and the kinds with their state berth notify off --kind wp.vuln berth notify on --kind wp.vuln Channels Next to e-mail, each account can link as many channels as it likes on My notifications, section Channels, button Link a channel: Kind of channel Supported Chat Slack, Discord, Microsoft Teams (workflow webhook), Google Chat, Mattermost or Rocket.Chat, Matrix, Telegram Push ntfy, Gotify, Pushover, Pushbullet On-call PagerDuty (Events API v2), Opsgenie, a webhook in Prometheus Alertmanager format (for Grafana OnCall, Keep, Squadcast, Zenduty and others) Generic your own webhook with a signature, an extra e-mail address Phone SMS through your own account at a provider Linking is designed to be short: paste the webhook URL the service gives you. The panel recognises Slack, Discord, Teams, Google Chat, Mattermost, Rocket.Chat, ntfy and Gotify by their URL, and any other https URL becomes a generic webhook. Short forms like tgram://<token>/<chat>, pover://<userkey>@<apptoken> and pbul://<token> work too. For the other services you pick the service and fill in its fields; each field says where to find the value. Per channel, which notices. Nothing ticked means everything; otherwise choose categories or single kinds. A typical set-up: security only to Telegram on your phone, everything to the team's Slack channel. Test sends a test notice; the list shows per channel whether it works and the last error. Secrets stay secret. Tokens and webhook URLs are never shown again, not in the panel, the API or the activity log, and they are stored sealed in the panel database. Incidents open and close. PagerDuty, Opsgenie and the Alertmanager-format webhook receive a resolve when the problem is solved, so the incident closes by itself. Customers and resellers cannot point a channel at an internal network address; administrators can, for example for their own ntfy or Gotify server. On the server: berth notify channel types berth notify channel add --paste-file - --categories security # paste the webhook URL berth notify channel list berth notify channel test 3 Your own webhook Each notice is posted as JSON with fields such as subject, text, kind, category, domain, link and at. With a secret set, the request carries X-Berth-Timestamp and X-Berth-Signature: sha256=<hmac>, an HMAC-SHA256 over <timestamp>.<body>. Verify the signature and reject old timestamps to prevent replays. Events of the panel itself (a domain added, a backup finished) are a separate mechanism, see webhooks and extensions. SMS SMS goes through a provider where you have your own account and pay per message: SMSTools, CM.com, Spryng, Bird (MessageBird), Twilio, Vonage, 46elks or Sinch, or any other provider through a configurable HTTP request. After linking, Berth sends a confirmation code to the number; the channel only turns on once you enter it. Because SMS costs money, it is frugal by default: only critical notices, one SMS per problem for as long as it lasts (repeats and escalations do not send another one), recovery messages off unless you enable them, and a daily maximum per channel that you can change. Each SMS is a single short message with a link that opens the notice after signing in; no details from the notice itself are in the text. Office hours Under Settings → Notifications, section Office hours, you set working hours. Outside them, anything critical and everything that needs action now (a site or service that is down, a full disk, a failed backup, malware) still goes out immediately. Routine notices, such as certificates and renewals, updates, vulnerability digests, plan limits, performance notices, DMARC trends and licence reminders, are bundled into one message at the start of the next working day. berth notify set --office 08:30-17:30 berth notify set --office 08:30-17:30 --office-weekend # weekends count as working days too berth notify set --office off The same page sets the administrators' own thresholds, for example when a disk counts as nearly full or how many days before expiry a certificate is reported (berth notify set --disk-percent, --inode-percent, --cert-days, --slow-ms, --perf-percent). The alert engine Server-level problems run through an alert engine, visible under System → Problems. It evaluates rules against metrics: disk space, services, certificates, DNS, uptime, backups, the fleet and more. A rule has a condition, an optional critical threshold, how long the condition must hold before it fires, and a severity. Default rules can be adjusted or switched off; you can add your own. What the engine adds on top of plain notices: Acknowledge. Click Acknowledge when you pick a problem up. Repeats and escalation stop; the recovery is still reported. Silence. Silence mutes a problem until a time you choose, for planned work. Repeat. An unacknowledged problem is reported again after the repeat interval; a rising severity is reported immediately. Escalation. If nobody acknowledges within the time set on the rule, the problem goes to a second recipient: a channel or an e-mail address. This gives you a simple second line without a separate on-call tool. Dependencies. A rule can name rules it may be a consequence of. If DNS is down, you get the DNS problem, not twenty separate \"site unreachable\" messages. Runbooks. A rule can carry a link to the page where you fix it, and a safe action shown as a button on the problem: restart the service, recover the unit, repair DNS, a dry run of freeing disk space, or reload certificates. berth alert list berth alert ack 41 berth alert silence 41 --for 2h berth alert rules berth alert rule set disk.full --for 10m --escalate-after 30m --escalate-to channel:2 berth alert rule add queue-high --name \"Mail queue high\" --metric <metric> --op \">=\" --threshold 500 --severity warning berth alert metrics # metrics that rules can use berth alert history Extensions can contribute their own metrics and problems to the engine. The watchdog Independently of the panel, a watchdog checks every minute whether the web servers, PHP-FPM, MariaDB, mail and the panel itself are running, and whether nginx, Apache, PHP-FPM, Postfix and Dovecot actually answer. A service that has stopped is restarted after a configuration test. One that runs but no longer answers for a few rounds in a row is first reloaded, so running requests can finish, and restarted if that does not help. Restarts are capped per hour, so a crash loop does not turn into an endless series of restarts, and a panel that keeps crashing is reported as a crash loop. Some problems the watchdog should not fix by restarting, such as a broken mail lookup table; those are reported with the repair to run. Every restart is a notice and an entry in the activity log. After you have fixed the cause, reset the counters: berth watchdog status berth watchdog reset berth watchdog test-route The watchdog also has an emergency route: it keeps a copy of the administrators' channels and can deliver directly to them, without the panel database and without the local mail server. A full disk, a database that does not answer or a stopped agent is therefore still reported when those are exactly what failed. berth watchdog test-route sends a test through that route. Settings are under Settings → Monitoring. For a site that starts returning errors, see every site is watched for server errors; for the case where the whole machine is gone, see the heartbeat in uptime and status pages, and for self-healing when the panel stops answering, rescue mode. Mail delivery checks Berth also watches whether mail actually leaves the server, because the notices to administrators go through that same mail server. On System → Monitoring it shows: the outbound queue: how much mail is waiting, how old the oldest message is, and the reasons per receiving domain; blocklists: refusals by receivers because the server's address is on a blocklist, and a regular check of the server's own outbound addresses against the common blocklists; a canary: every quarter of an hour a test message goes along the same path as your notifications, and the panel checks that it arrives. Nothing is deleted or held back automatically; the notice says what to do. When the panel's own mail stops arriving, that counts as a failure of the heartbeat and you hear it through your other channels, which do not depend on mail. See also outbound mail. The monthly report Every month, Berth produces a report per customer: availability of their monitored sites, backups and restores, WordPress and other software updates, attacks stopped by the WAF, certificates, malware scans and the security score of their sites. Customers find it under Reports; administrators under Customers → (customer) → Monthly reports. An e-mail summary to customers is switched on under Settings → Customers. The report is signed with Ed25519 by the installation. The signed form is the JSON in the panel, which can be checked with berth report verify; the PDF is a readable rendering of it. The customer's report contains nothing about the server itself (external backups, restore tests, OS updates, hardening). When a customer needs that for their own audit, an administrator or auditor creates an audit appendix: the same report with the server section, signed, as PDF or JSON, and recorded in the activity log. berth report list --customer"},{"s":"logs-and-log-drains","l":"en","t":"Logs and log drains","d":"Read the server journal and log files with secrets masked, let customers search their own web, PHP, WAF, app and container logs, follow logs live, and forward logs to syslog over TLS, HTTPS JSON or Grafana Loki.","c":"monitoring","g":["logs","journal","log drain","syslog","loki","siem","troubleshooting"],"h":[["server-logs-for-administrators","Server logs for administrators"],["logs-of-a-website","Logs of a website"],["searching-across-a-subscription","Searching across a subscription"],["log-drains-forwarding-logs","Log drains: forwarding logs"],["drains-for-a-subscription","Drains for a subscription"],["drains-for-the-server","Drains for the server"],["related","Related"]],"x":"Most problems on a hosting server are solved by reading the right log at the right moment. Berth puts those logs in the panel, for administrators and for customers, so nobody needs a shell to see why a site returns 502 or which IP address is hammering wp-login.php. When logs have to go somewhere else, a SIEM or your own log platform, log drains forward them continuously. Server logs for administrators System → Logs shows the systemd journal and the server's fixed log files. Filters: unit or service, program (SYSLOGIDENTIFIER), priority (from error up to info*), period (quick picks or your own range in server time), boot (this boot or the previous one), and kernel messages only. Search is literal and case-insensitive. Watch live streams new lines as they arrive. Log file: services that also write to files, such as the mail log or the web server's error log, are listed with their path for this operating system. Open one to read its tail. Secrets (passwords, tokens, keys) are masked by the server before lines reach the browser, the API or the CLI. The same view is available as GET /api/v1/system/logs. berth logs --unit nginx --priority err --since 1h berth logs --unit postfix --grep \"status=bounced\" --since \"2026-10-28 08:00\" berth logs --kernel --boot -1 # kernel messages of the previous boot berth logs --unit berth-backup --follow berth logs files # fixed log files with their key and path berth logs file nginx-error --follow --since and --until accept RFC 3339, 2026-10-11 08:00 in server time, Unix seconds or a duration back from now (15m, 1h, 7d). Add --json for machine-readable output with priority, unit and PID per line. For noticing patterns rather than reading lines, System → Events collects OOM kills, disk and file system errors, crashes, unexpected reboots and anomalies found in the logs. See services and diagnostics. Logs of a website Every domain has its own Logs page, linked from the domain's overview, with an access log and error logs that are read for you rather than just printed: Access log: requests grouped by outcome (success, redirects, not found or refused, server errors, blocked by the firewall), the most requested paths, the paths with most 4xx or 5xx, and the most suspicious addresses. PHP errors: identical errors and warnings grouped, with the first stack frame. Slow requests: from the PHP-FPM slow log, which scripts were slow and what they were waiting for, often a database (mysqliquery) or an outgoing request (curlexec). WAF: requests the web application firewall blocked or only reported, with the rules they matched. See WAF. Each log can be searched and followed live. On the command line: berth domain logs --domain acme.nl --kind access --lines 200 berth domain logs --domain acme.nl --kind php_error --follow The kinds are access, error, proxyaccess, proxyaccessssl, proxyerror, phperror, phpslow and waf. The files themselves live in the Plesk-compatible layout under /var/www/vhosts/system/<domain>/logs/, see on-disk layout. Searching across a subscription When a problem spans several sites, apps or containers, customers use Statistics → Logs (for customers the menu reads Usage). It searches one source or all of them at once, newest hit first, including rotated copies (.N.gz). Sources: web:<domain> (or web:* for all websites): every request, with a status filter for 429, 4xx, 5xx or gw (502 to 504, when the site did not answer in time), err: web server errors, php: PHP errors, slow: slow requests, waf: ModSecurity, app:<domain>/<name> Node.js, Python and PHP workers, and container:<name> containers, both from the journal, all:* everything together. Periods are 1 hour, 24 hours, 7 days or 14 days, or your own range. Live shows new lines at the top as they arrive. A search term is literal: a path (/wp-login.php), an address or part of an error message. If a period is too large to read in one go, the page says so and tells you which part was skipped, instead of silently returning partial results. berth logs sources acme_nl berth logs search acme_nl --src web:shop.acme.nl --status 429 --window 7d berth logs search acme_nl --src php:shop.acme.nl --grep \"Fatal error\" berth logs search acme_nl --src 'all:*' --grep 203.0.113.7 berth logs search acme_nl --src container:ghost --since 2h Searches are rate-limited per subscription, so one customer's searches cannot slow down the server for others. Log drains: forwarding logs A log drain sends log lines continuously to a system you run. Berth supports three protocols: Kind Destination Typical receivers syslog syslog+tls://host:port, RFC 5424 messages over TLS (RFC 5425) Wazuh, Splunk, Elastic, Microsoft Sentinel, rsyslog http https://…, batches as a JSON array Vector, Logstash, Fluent Bit, your own service loki the push API of Grafana Loki, with labels per source and domain Grafana Loki, optionally multi-tenant Berth keeps, per drain and per log file, how far it has sent. After an outage of the receiver it picks up where it stopped, and the drain list shows lines sent, the last success and the last error. Enabling a drain that was off starts from that moment. Drains for a subscription Customers and administrators add these on the subscription's Log drains page, reached from the domain, button Add log drain. Choose: Sources: access (every request), error (web server), PHP (errors and slow scripts), WAF (stopped attacks), and apps (Node, Python, PHP workers and, when all domains are selected, the containers). Domains: nothing ticked means all domains, including ones added later. Mask addresses: visitor IP addresses are shortened before they leave the server, the last octet set to 0 for IPv4 and to a /48 for IPv6, the same as the panel's privacy setting. Useful when the receiver is outside your GDPR processing agreement; see GDPR. Login, own CA and client certificate: an Authorization header (Bearer … or Basic …), a CA certificate in PEM if the receiver has no public certificate, a client certificate and key for mutual TLS, and the Loki tenant (X-Scope-OrgID). Secrets are not shown again after saving. Use Test to send one test line. berth logdrain add --subscription acme_nl --name loki --kind loki \\ --url https://loki.example.nl --sources access,error,php --tenant acme \\ --auth-file /root/loki-auth.txt --mask-ips berth logdrain add --subscription acme_nl --name siem --kind syslog \\ --url syslog+tls://siem.example.nl:6514 --sources access,waf \\ --ca-file /root/siem-ca.pem --client-cert-file /root/acme.crt --client-key-file /root/acme.key berth logdrain list --subscription acme_nl berth logdrain test --subscription acme_nl --id 2 Pass the authorization value with --auth-file, never on the command line, where it would end up in the shell history. Drains for the server Administrators can forward the server's own security logs to a SIEM under System → Logs → Server log drains: auditd: logins, sudo, changes to accounts and the audit rules the panel sets, Logins: sshd, sudo, su and login from the journal. berth logdrain add --server --name wazuh --kind syslog \\ --url syslog+tls://siem.example.nl:6514 --sources auditd,auth --ca-file /root/siem-ca.pem Berth's own activity log (who changed what in the panel) has its own syslog forwarder, berth admin audit-syslog --target tls://host:port, with optional mutual TLS; it is described in audit trail and approvals. For a full SIEM agent on the server, and NIS2 reporting, see NIS2 and incidents. Related Services and diagnostics Statistics and metrics Notifications and alerts Firewall and bans"},{"s":"os-updates-and-maintenance","l":"en","t":"OS updates and maintenance","d":"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.","c":"server","g":["updates","patching","apt","dnf","kernel","maintenance window","rollback"],"h":[["the-updates-page","The updates page"],["the-update-policy","The update policy"],["what-happens-during-an-update","What happens during an update"],["held-packages-versions-and-downgrades","Held packages, versions and downgrades"],["kernels","Kernels"],["emergency-patch-for-critical-vulnerabilities","Emergency patch for critical vulnerabilities"],["updates-done-in-a-terminal","Updates done in a terminal"],["release-upgrades","Release upgrades"],["repositories","Repositories"],["support-lifecycle","Support lifecycle"],["maintenance-windows","Maintenance windows"],["announced-maintenance","Announced maintenance"],["related","Related"]],"x":"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 runs On 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 on What 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 /boot too), is the package manager healthy (nothing interrupted or half installed, dependencies consistent, repositories without errors)? berth system preflight --fix makes 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 openssl A 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 window Emergency 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 --status Repositories 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 vendor Support 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 --detach Maintenance 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 90 Each 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\" --notify Related Updating Berth Vulnerability management Disks and snapshots Fleet, for rolling updates across many servers"},{"s":"services-and-diagnostics","l":"en","t":"Services and diagnostics","d":"See and operate every systemd unit and timer within a protected list, get alerted on crash loops, put your own services under management, follow system jobs live, inspect processes and listening ports, let the doctor fix what it finds, and use a recorded root terminal behind a passkey and the VPN.","c":"server","g":["systemd","services","doctor","processes","ports","terminal","troubleshooting"],"h":[["services-and-timers","Services and timers"],["why-a-unit-fails","Why a unit fails"],["crash-loops-and-failures","Crash loops and failures"],["turning-a-service-off-with-a-reason","Turning a service off with a reason"],["managed-services","Managed services"],["service-software-updates","Service software updates"],["system-jobs","System jobs"],["processes","Processes"],["listening-ports","Listening ports"],["the-doctor","The doctor"],["the-admin-terminal","The admin terminal"],["administrator-accounts-and-ssh","Administrator accounts and SSH"],["related","Related"]],"x":"The goal of Berth's server management is that an administrator rarely needs a shell. This article covers the parts that replace systemctl, journalctl, ps, ss and the usual first-aid commands: the services overview, managed services with health checks, background jobs, processes and ports, the doctor, and, for the moments a shell really is the right tool, a root terminal in the browser that is locked down and recorded. Services and timers System → Services lists every systemd service and timer on the server: whether it runs, whether it starts at boot, memory, restarts, and for timers the previous and next run. Failed units are at the top. Click a unit for its unit file, package, dependencies, limits and the last lines of its log. What you can do from here depends on a protected list that is enforced by the root agent, not by the page: The agent, the panel, SSH, networking and systemd can only be restarted, never stopped. A restart of the agent, the panel or sshd happens a few seconds after your click, so the answer reaches your browser first. The VPN, the firewall, the audit log, user sessions and terminals can be restarted or reloaded, but never stopped or disabled. D-Bus, logind, targets, mounts, swap, the rescue and emergency shells, and running updates and jobs are not operable from the panel at all. Everything else can be started, stopped, restarted, reloaded, enabled, disabled or masked. The panel asks for confirmation and writes each action to the activity log. berth unit list --filter failed berth unit show php8.3-fpm berth unit restart nginx berth unit impact mariadb # what falls over if this stops or restarts berth unit logs postfix Why a unit fails Diagnose on a failed unit (or berth unit diagnose <unit>) reads its state and log and explains the cause in plain language: a missing program, too little memory, a port already taken, a dependency that is not running, a masked unit, a broken change. It proposes a targeted fix, which you can run with one click or with berth unit fix: berth unit diagnose valkey-server berth unit fix valkey-server stop_port_owner The available fixes are resetstart, raisememory, raisenofile, stopportowner, startdep, unmask and rollback. Crash loops and failures Berth attaches an OnFailure handler to the units it manages, so a failed unit or a failed scheduled task produces a notice instead of going unnoticed. Units that keep restarting are reported as a crash loop. If a notice is expected and harmless for a particular unit, Ignore… silences it for that unit only (berth unit ignore). Turning a service off with a reason Sometimes the right response to a vulnerability without a fix is to stop the affected service. Turn off with a reason… stops the unit and keeps it from starting at boot, with your reason in the panel, the activity log and the notice. You can give an expiry date: after it you get a reminder, but the service does not turn itself back on. The watchdog leaves such services alone. Berth itself, the watchdog, SSH, networking, MariaDB and the firewall can never be turned off this way. berth unit off cups --reason \"CVE-2026-1234, not needed on this server\" --until 2026-12-01 berth unit off-list berth unit on cups Managed services For services that matter to you but that Berth did not install (a Redis or Valkey for a customer project, an internal API, a queue worker), you can put them under management. Take under management on a unit, or berth service adopt, records: the desired state: should be running, should be stopped, or only watched, whether it starts at boot, in dependency order after a reboot, a restart policy with a maximum number of restarts per hour; above it Berth gives up and notifies you, so a crash loop does not become a storm of restarts, health checks, because \"active\" in systemd does not mean the service answers: HTTP, a port, a process, a heartbeat file, a log pattern or a command. A failing check can notify, restart (with the same cap) or run a hook, configuration files and directories, which go into the service's backup. Berth also watches for drift: when someone stops, masks, disables or edits the unit outside the panel, the service page shows the difference, and you either restore the desired state or accept the new one (berth service drift). You can also create a new service or a scheduled task from the panel or the CLI, with Berth writing the unit file. Secrets are stored separately and never shown again; the previous definition is kept so you can roll back. berth service adopt valkey-server --desired running --boot on --max-restarts 3 berth service check add valkey-server --kind tcp --port 6379 --send PING --reply +PONG berth service create --name queue-worker --after mariadb.service -- /opt/app/bin/worker --queue default berth service list berth service rollback queue-worker Two companion pages extend managed services: Service backups: paths, exclusions, a database dump or a stop-and-start around the backup, a schedule, retention and a regular restore test. Service software: updating the software from a package, a container image, a Git repository, a signed GitHub or GitLab release, or your own command, with a backup first, a health check afterwards and an automatic way back if it fails. Service software updates System → Service software sets per managed service where its software comes from and what Berth does when there is a new version. The source is one of package (apt or dnf), container (an image), git (a working copy with a build command), release (a binary from GitHub or GitLab, checked against its checksums and, if you require it, a minisign, cosign or GPG signature) or command (your own check and update commands). The policy is notify (the default), window (update automatically in the next maintenance window), security (a security release goes in straight away) or off. Every update follows the same steps: a backup first if the service has one, then the update, a restart and the health check you set (the unit is active, a TCP port answers, an HTTP URL answers, or a command succeeds). If the health check fails, the previous state goes back, or the backup is restored, and that version is skipped. berth service-update set queue-worker --kind git --dir /srv/queue-worker --ref main \\ --build \"/usr/bin/make build\" --health active --policy window berth service-update set valkey --kind package --package valkey-server --health tcp:6379 berth service-update list berth service-update check queue-worker berth service-update apply queue-worker # now; --target for a specific version berth service-update rollback queue-worker Everything that runs on the server, apps, containers, managed services and extensions, is listed with owner, state and usage under System → Inventory, or berth inventory. System jobs Long work that needs root, such as a diagnosis, a repair run, an update or a vulnerability scan, runs as a system job in its own transient systemd unit, not inside a web request. System → Services → System jobs lists them, newest first; open one to read its log live. Finished jobs stay visible for 90 days with the last lines of their log. The same jobs appear in the progress bar at the top of the panel while they run. berth job list berth job log 812 --follow berth job start doctor Processes System → Processes shows each process with its unit, user, memory and CPU, and can filter to processes that belong to no service at all, which is often where a forgotten script or a compromised site shows up. Actions: TERM, KILL, HUP and renice. Capturing a process (berth proc capture) turns a process outside any service into a proper managed service, with Berth proposing the unit. berth proc list --scope unmanaged berth proc term 4242 berth proc renice 4242 --nice 10 berth proc capture 4242 --name report-generator --create Listening ports System → Ports lists everything that listens, by which process and unit, and whether the firewall lets it be reached from outside. Berth keeps a baseline: a new listener that is reachable from outside and not part of a known service produces a notice. For each new listener you decide: Listen locally only: Berth restricts the unit to loopback and restarts it. Keep closed in the firewall: it keeps listening, but nobody outside can reach it. Accept: it is intended; it goes into the baseline. berth ports list berth ports local-only tcp 0.0.0.0 6379 See firewall and bans for the firewall itself. The doctor The doctor checks whether the server is still as the panel knows it: services, configuration, access and the link with the agent. It runs every day, after every update of the operating system or of Berth, and after repairs, and the results are under System → Diagnosis. Each problem is explained in plain words with what it means, with the technical message underneath. Fix… per finding opens the matching repair. Repair everything the panel can runs all repairs for the current findings in order, as a system job; Dry run only shows what it would change without changing anything. Afterwards the doctor checks again. A new problem produces one notice (Server diagnosis); a problem that persists is not repeated every day. berth doctor berth doctor --json # with title, fix and unit per finding berth doctor --last # the panel's latest run, without checking again berth repair --dry-run # what a repair run would change When the panel itself is down, sudo berth rescue doctor runs the same checks from the console; see rescue mode. The admin terminal For the rare case that a shell is the right tool, Berth includes a root terminal in the browser. It is off by default and built so that a compromised panel cannot use it: It runs as a separate service on its own port of the panel's host name, reachable only through the server's VPN (Tailscale or WireGuard). Every session requires a passkey with PIN or biometrics, checked by the terminal service itself. The panel cannot open a session, and a panel login is not enough. Turning it on and linking the first passkey can only be done on the server, as root. Turning it off can be done from the panel. Every session is recorded; the SHA-256 of the recording goes into the activity log, and berth admin-term verify <session> proves the recording was not changed. Sessions close after a period without input and after a maximum duration, both configurable. sudo berth admin-term enable sudo berth admin-term passkey add --name \"laptop\" # gives a one-time link, VPN only berth admin-term sessions berth admin-term stop <session> Register two passkeys, one as a spare. Administrator accounts and SSH The same page, System → Admin access, manages the people who may log in to the server itself over SSH, with SSH keys that expire on their own and sudo through a checked drop-in file. See Administrator accounts with expiring keys. The terminal for customers is a separate, sandboxed feature; see files, FTP and SSH. Related Logs and log drains OS updates and maintenance Disks and snapshots Rescue mode Architecture, for how the panel and the root agent split the work"},{"s":"disks-and-snapshots","l":"en","t":"Disks, snapshots and the machine","d":"Watch disk space and inodes with a forecast, free up space with fixed safe actions, check SMART, RAID and ZFS health, add data disks as an LVM pool, take snapshots on LVM-thin, btrfs, ZFS or Proxmox, enforce disk quotas, and keep time, hostname and memory in order.","c":"server","g":["disk","storage","snapshot","lvm","zfs","quota","smart"],"h":[["disk-space-and-inodes","Disk space and inodes"],["freeing-up-space","Freeing up space"],["growing-and-mounting-disks","Growing and mounting disks"],["disk-health-smart-raid-zfs-btrfs-and-thin-pools","Disk health: SMART, RAID, ZFS, btrfs and thin pools"],["your-own-data-disks-the-storage-pool","Your own data disks: the storage pool"],["snapshots","Snapshots"],["disk-quotas","Disk quotas"],["time-hostname-and-network","Time, hostname and network"],["memory-swap-and-oom","Memory, swap and OOM"],["related","Related"]],"x":"A full disk is still the most common way for a hosting server to fall over: MariaDB stops, mail is deferred, backups fail. This article covers the Machine group of Berth's server management: disks and their health, extra data disks, snapshots, disk quotas per subscription, and the time, network and memory settings a busy server depends on. Disk space and inodes System → Disks shows every file system with its space as df would, the number of files (inodes), whether it is mounted read-only, and how fast usage is changing. The column Full in is the forecast: a straight line through the last one to two weeks of measurements, shown only when the trend is reliable. The 5 % that most file systems reserve for root is counted as used, because services do not run as root and see the disk as full once only that reserve is left. Notices: when a file system or its inodes pass the percentage you set (berth notify set --disk-percent 90 --inode-percent 90), when the forecast says it will be full soon (Disk filling up (forecast)), when a disk is full and MariaDB or the mail server have stopped, the watchdog reports it through its emergency route, independent of the database. See notifications and alerts. berth system disks berth stats forecast --text berth system disk-top --mount /var --fresh # where the space is: system directories and per subscription Freeing up space Disks → Free up space first shows where the space is: the largest system directories and the usage per subscription (summarised per subscription, never with customers' file names). Then it offers a fixed list of clean-up actions. There are no free-form paths; the agent only knows these actions: Action What it removes journal_vacuum old journal files; active ones stay package_cache downloaded packages rotated_logs rotated log files coredumps crash dumps php_sessions expired PHP session files, without following symlinks podman_prune container images without a name, optionally for one subscription old_kernels old kernels, keeping the running one, the newest and one spare Always run the Dry run first: it measures what each action would gain and changes nothing. The real clean-up runs as a system job with a log. Everything except old kernels counts as safe. The policy decides what the panel does when a disk gets full: off (only the notice), suggest (a dry run is attached to the notice; you clean up) or auto (from a percentage you choose, the panel runs the safe actions itself after a dry run). Kernels are never removed automatically. berth system disk-cleanup --safe --dry-run berth system disk-cleanup --actions journal_vacuum,rotated_logs berth system disk-policy --mode suggest Growing and mounting disks Disks → Grow and mount shows what can grow after you enlarged a virtual disk, and devices that can be mounted. It grows the partition and file system (also on LVM), formats and mounts an empty device at an empty directory, and sets mount options such as nosuid,nodev,noexec for /tmp, /var/tmp and /dev/shm. Every change has a dry run. berth system disk-manage --grow / --dry-run berth system disk-manage --mount /dev/vdb --at /srv/data --fstype xfs --dry-run berth system disk-manage --tmp /tmp --options nosuid,nodev Disk health: SMART, RAID, ZFS, btrfs and thin pools System → Hardware checks: SMART and NVMe: health, wear, power-on hours and temperature (smartmontools is installed on request), RAID: a degraded md array has lost a disk, ZFS pools: health, errors, fill level and the last scrub, btrfs: errors per device, LVM-thin pools: data and metadata usage, because a full thin pool damages the volumes inside it, temperature sensors. On a virtual machine the hardware belongs to the host: SMART and temperature are skipped, and the page reports steal instead, the time the host takes away from the VM. A new finding produces one notice (a failure is critical and goes out outside office hours too), and one message when everything is fine again. berth system hardware --refresh Your own data disks: the storage pool On a server with extra disks you can keep the system disk for the operating system and put customer data on its own storage. Disks → Storage shows all disks, the pool and, per disk, what is stored there: websites, mail, databases, backups and containers. The pool is an LVM volume group of empty disks with one XFS file system (with project quotas) on top. Berth only uses disks on which wipefs finds nothing, and checks that again just before writing. Disks can be added while everything runs; a disk can be removed if the others have room (pvmove); a broken or too small disk can be replaced online by an empty one. Mirroring (LVM raid1) keeps each copy on a different disk. A degraded mirror is a critical notice, and Replace… rebuilds the missing copy on an empty disk. Without a mirror the page warns that losing one disk loses the pool. Moving data onto an unmirrored pool requires a recent successful external backup, or, on a VM, your explicit statement that the hypervisor already mirrors the disks. Moving data: per type (websites, mail, MariaDB, PostgreSQL, backups and history, containers) to the pool, to a volume Berth mounted, or back to the default. The paths stay the same through bind mounts. Berth first copies while everything runs, then takes a short maintenance window to stop the affected services, copy the last changes, switch the mount and start them again, followed by a diagnosis. If anything fails inside the window, everything goes back to the old location. The dry run gives size, duration and the expected interruption. Moving, removing, replacing and switching mirroring off require a typed confirmation and, with four-eyes enabled, a second administrator; see audit trail and approvals. Services get RequiresMountsFor= on their data: if the server boots without the pool, nginx, PHP, mail and the databases do not start (rather than writing into an empty directory on the system disk), while SSH and the panel do. berth storage status berth storage pool create --devices /dev/vdb,/dev/vdc --mirror --dry-run berth storage move mail --to pool --dry-run berth storage pool replace --device /dev/vdb --new /dev/vdd --dry-run Snapshots A snapshot is the quick way back before a risky change. Berth uses them before updates (if enabled in the update policy), before removing components and before a release upgrade. System → Snapshots chooses the provider: Proxmox VE: a snapshot of the whole VM, and rolling back from the panel. Berth links only its own VM: it verifies that the VM is this server (by SMBIOS UUID or MAC address), pins the Proxmox certificate by fingerprint or your own CA, stores the API token sealed, and refuses a token that could delete or take over the VM unless you explicitly accept that. LXC containers are supported too. The server itself: snapshots of the volumes on LVM-thin, btrfs or ZFS. Rolling back is only offered where it is safe; an LVM-thin volume that is in use is rolled back at the next boot (--at-boot). The policy sets how many of Berth's own snapshots to keep (1 to 10); older ones are removed after a new one. Snapshots you made yourself in Proxmox are shown but never touched. berth snapshot proxmox --url https://pve.example.nl:8006 --token-id berth@pve!snap \\ --secret-file - --node pve1 --vmid 101 --fingerprint AA:BB:… berth snapshot proxmox --check # are the token's privileges no broader than needed? berth snapshot policy --provider auto --keep 3 --before-updates on berth snapshot create --label \"before PHP 8.4\" berth snapshot list berth snapshot rollback <name> --yes A snapshot is not a backup: it lives on the same storage. For that, see backups. Disk quotas The disk space in a package becomes a real limit of the file system under System → Disks → Disk quotas, so one customer or one hijacked site cannot fill the server's disk. Project quota limits a subscription's web space, mail and databases together. Uid quota only limits what the system user writes itself (the web space). Switch on runs as a system job after a dry run. Berth never remounts a file system by itself: if a mount or boot option is needed, quotas take effect after the next reboot, which you schedule. Where the file system offers no usable quota, Berth measures usage every hour and warns as the limit comes close, but does not block writes. At the limit, new files, uploads and incoming mail for that subscription are refused. Databases and container storage outside the file system quota are measured separately and locked or stopped above the hard limit of the package. The package also limits the number of files and folders (inodes). Space that falls outside the quota is capped as well: a domain's logs, and a subscription's files in the shared temporary directories (/tmp, /var/tmp, /dev/shm). Berth checks this every minute; berth quota shared runs the check by hand. Each subscription's own /tmp lives inside its webspace and counts towards its quota; see isolation. berth quota status berth quota enable --dry-run berth quota show acme_nl See customers and packages and isolation for how packages set the limit. Time, hostname and network System → Time and network: Clock: time zone, synchronisation, and your own time servers, optionally secured with NTS (Network Time Security, RFC 8915). Berth measures the drift itself with SNTP instead of trusting the time service's own report; a clock that drifts too far breaks TOTP codes, DNSSEC and certificates, so the monitor repairs it and notifies you. Hostname: the server's own name with checks that its A, AAAA and PTR records match. Changing it sets the name everywhere it is used (hostnamectl, /etc/hosts, /etc/mailname) and can set the mail server up again under the new name. The reverse (PTR) record belongs to the owner of the IP address, usually your hosting provider. VPN: the state of Tailscale or WireGuard, through which administrators reach SSH and the admin tools. Network diagnosis from the server: DNS, ping, trace, a TCP port, the certificate a service presents, and an SMTP handshake (nothing is sent). The DNS self-test checks the local resolver, DNSSEC and resolv.conf. berth system time berth system time set --servers time.example.nl,ntp.example.nl --nts berth system hostname berth system hostname --set srv1.example.nl --mail --dry-run berth system net-diag smtp mx.example.nl --port 25 berth system dns --repair Memory, swap and OOM System → Memory and kernel manages a swap file, zram (compressed swap in memory, used first) or both, vm.swappiness, and kernel parameters for busy servers: presets for many connections, file watchers, containers and databases, plus your own values from an allowed list. Every value is read back and differences are shown. When the kernel kills a process for lack of memory, Berth records it. Administrators see OOM kills next to disk errors, crashes and unexpected reboots under System → Events; customers see their own under Applications → Memory problems. Berth also warns before it gets that far: when the server spends a sustained share of its time waiting for memory, administrators get a notice, and a critical one when it gets worse. berth system swap --zram on --zram-percent 50 --swappiness 10 berth system sysctl --preset connections --on berth system events list --kind oom,cgroup_oom --period 30d Related Statistics and metrics, for I/O and the disk-full forecast OS updates and maintenance Services and diagnostics Disaster recovery"},{"s":"rescue-mode","l":"en","t":"Rescue mode","d":"What to do when the panel itself does not work: a static recovery page, a watchdog that heals what it safely can, a console menu that needs no database, a separate rescue web service over the VPN, and a printable emergency card.","c":"server","g":["rescue","recovery","emergency","watchdog","console","outage"],"h":[["layer-1-the-recovery-page","Layer 1: the recovery page"],["layer-2-self-healing-by-the-watchdog","Layer 2: self-healing by the watchdog"],["layer-3-berth-rescue-on-the-console","Layer 3: berth rescue on the console"],["layer-4-the-rescue-web-service-over-the-vpn","Layer 4: the rescue web service over the VPN"],["the-emergency-card","The emergency card"],["a-short-runbook","A short runbook"],["related","Related"]],"x":"Every other article assumes the panel is there to click in. This one is about the day it is not: the panel daemon does not start after an update, the disk is full and MariaDB has stopped, or you are locked out by your own firewall rule. Berth prepares for that in four layers, from fully automatic to fully manual, and none of them depends on the thing that is broken. System → Rescue mode shows what is ready and what the watchdog has done. Layer 1: the recovery page When the panel does not answer, nginx does not show a bare 502. It shows a static page with the state the watchdog writes every round, which needs neither the panel nor its database. An ordinary visitor only sees that the panel is temporarily unavailable and when the monitoring last checked. Someone who comes in through the VPN (Tailscale, WireGuard, or the server itself) sees the details: which services are down, what the watchdog did about it, the last update, and where to reach the rescue web service. The page refreshes itself, and as soon as the panel is back you are on the panel again. The diagnosis warns if the page is no longer being updated. Layer 2: self-healing by the watchdog The watchdog runs on a timer, independently of the panel and without the database. Besides restarting crashed services (see notifications and alerts), it handles these situations by itself, each with a strict limit so it cannot end up in a loop: A failed panel update. If the panel stops answering shortly after a successful update while the database and the agent still work, the watchdog puts the previous version of Berth back. The version that caused the problem is not installed automatically again. A panel that hangs. If the panel has not answered for a few minutes and there was no recent update, the watchdog restarts it, a few times per hour at most; after that it only notifies you. A panel that keeps crashing is reported as a crash loop. A full disk with the database down. It runs the safe clean-up actions (old journal files, the package cache, rotated logs, crash dumps, expired sessions, unused container images), restarts MariaDB and starts the services that stopped because of the full disk. It does not do this when your clean-up policy is set to off; see disks and snapshots. No panel database. When MariaDB is down, the watchdog still starts the web servers, PHP-FPM, mail and the DNS resolver if they stopped, after a configuration test and with a cap per service, because they run on their rendered files and do not need the database. Every intervention is listed on the rescue page, in the watchdog's journal, and sent to your channels through the watchdog's emergency route, which delivers directly to the administrators' channels without the database or the local mail server. Layer 3: berth rescue on the console berth rescue is a menu that works without the database, without the agent and without the network. Use it on the console of your hypervisor or hosting provider, or over SSH through the VPN. sudo berth rescue It offers the state of the server, the diagnosis, restarting services, repairs, rolling back the Berth update, restoring the panel database from a dump, opening access for your address, resetting a login's password or second step, and the state of the network and VPN. Every action also works as a command, for scripts and for documentation: sudo berth rescue status sudo berth rescue doctor sudo berth rescue restart --service=berthd --yes sudo berth rescue repair --areas=services --yes sudo berth rescue rollback --yes sudo berth rescue db-snapshots sudo berth rescue db-restore --snapshot=20261014-030000-systeem.sql --yes sudo berth rescue open --ip=203.0.113.9 --login=admin --yes sudo berth rescue mfa-reset --login=admin --yes sudo berth rescue password-reset --login=admin --yes sudo berth rescue network Anything that changes something asks for --yes, or a confirmation in the menu. open lifts a fail2ban ban for that address, lets it through the firewall and outside the panel's geo-blocking until the panel applies its own rules again, and with --login adds it to that login's allowed addresses. Add the address in the panel afterwards so it stays. db-restore first dumps the current state and keeps the panel stopped while it restores. Berth dumps the panel database automatically before each schema migration, so there is usually a recent dump to go back to. A database that no longer starts because of corruption is not something rescue mode repairs; that remains manual work with InnoDB's recovery modes. mfa-reset and password-reset need the database to be up. Layer 4: the rescue web service over the VPN For when you cannot reach the console but the VPN still works, berth-rescue is a small separate service, running as root, that offers the same actions in a browser. It listens only on the server's VPN addresses and on the server itself, never on the public interface. It has its own recovery password and its own TOTP code, separate from your panel account. Set them as root on the server: sudo berth rescue password You see the TOTP secret and a QR code once: put the code in two authenticator apps and the password in your password vault. The credentials are owned by root and the panel can neither read nor change them, so a compromised panel cannot alter the emergency entrance. Without a recovery password nobody can sign in. From the VPN, geo-blocking, allowed-address lists and fail2ban do not apply to this sign-in screen, so you can still get in when exactly those rules lock you out. Repeated wrong attempts are temporarily blocked per address, every sign-in and every action is sent to the administrators as a notice, and sessions are short and end after a period of inactivity. The diagnosis warns when berth-rescue has no recovery password yet or listens on no VPN address. The emergency card System → Rescue mode → Emergency card is one A4 page to print (or save as PDF) and keep with your vault: the panel address, the VPN addresses with the SSH command, the address of the rescue web service, the console commands, and lines to fill in by hand saying where the secrets are kept: the recovery password, the TOTP, the recovery codes of your second step, and the emergency account. The secrets themselves are never on the card. Print it again after changing the VPN or the recovery password. A short runbook Open the panel address. If you see the recovery page, connect to the VPN and reload it for the details: often the watchdog has already acted. Through the VPN, open the rescue web service shown on the recovery page and on your emergency card. Check the state, then restart, repair or roll back. No VPN? Use the console of your hypervisor or provider and run sudo berth rescue. Locked out by a ban or allow-list? sudo berth rescue open --ip=<your address> --login=<you> --yes. Afterwards, open System → Rescue mode and System → Diagnosis to see what happened, and fix the cause. If the server itself is lost, rescue mode cannot help; that is what disaster recovery is for. Related Services and diagnostics Sign-in security, for the emergency account and recovery codes Firewall and bans Updating Berth"},{"s":"fleet","l":"en","t":"Fleet: managing many servers","d":"Watch and operate many independent Berth servers from one fleet panel: link members by consent or a code, let each member choose what the fleet may do, click through with single sign-on, run actions in waves with a canary, keep policies in sync, close vulnerabilities fleet-wide and roll out updates in rings.","c":"server","g":["fleet","multi-server","rolling updates","sso","policy","canary","vloot"],"h":[["the-model-independent-panels-one-view","The model: independent panels, one view"],["linking-a-member","Linking a member"],["with-consent-recommended","With consent (recommended)"],["with-a-link-code","With a link code"],["unlinking","Unlinking"],["what-the-fleet-panel-may-do-levels","What the fleet panel may do: levels"],["the-overview","The overview"],["clicking-through-with-single-sign-on","Clicking through with single sign-on"],["actions-in-waves","Actions in waves"],["policy-templates-and-drift","Policy templates and drift"],["vulnerabilities-across-the-fleet","Vulnerabilities across the fleet"],["update-plans-rolling-updates-in-rings","Update plans: rolling updates in rings"],["wazuh-cross-check","Wazuh cross-check"],["related","Related"]],"x":"When you run more than a couple of servers, logging in to each panel to check updates and problems stops scaling. Berth's fleet gives you one place to see every server, act on several at once and keep their settings aligned, while each server keeps its own panel and keeps working on its own. This article explains the model, how to link servers, what the fleet panel is and is not allowed to do, and the tools for waves, policies, vulnerabilities and update plans. The model: independent panels, one view A fleet panel is an ordinary Berth installation on which you use the Fleet menu. It can host sites itself, but the recommended set-up is a small separate management VM behind a VPN, so a compromised customer site never sits next to the fleet's keys. A member is a Berth server linked to that fleet panel. It belongs to at most one fleet panel, keeps its own database, customers, configuration and administrators, and runs exactly the same without the fleet. If the fleet panel disappears, the members notice nothing except that nobody is looking; after a while each member warns its own administrators that the fleet panel has gone quiet. The fleet panel pulls status from its members over HTTPS. Every request is cryptographically signed by the fleet panel and checked by the member, so there is no reusable token or password stored on the member that could be stolen. A member can additionally restrict the fleet API to source addresses you list. This is not \"one panel driving many nodes\": there is no central database the servers depend on, and a member's own panel remains the place for anything with real consequences. Linking a member There are two ways; both end with the member's own administrator approving the link. With consent (recommended) On the fleet panel, open Fleet and click Add member. Enter the member's panel address, optionally a name and labels such as productie or klant-x. Follow the link to the member and sign in there as an administrator. The consent page shows the fleet panel's name, address and fingerprint; compare it with the fingerprint the fleet panel shows. Choose the level and the role for click-through (see below), and approve. Each choice is shown with what a compromised fleet panel could do with it. Back on the fleet panel the link completes and the first status arrives immediately. berth fleet link --url https://panel.member.example.nl --labels productie Linking with consent needs a publicly trusted certificate on the member. With a link code For a member with a self-signed certificate, one reachable only on a VPN address, or when no browser is involved: On the member: Settings → Fleet → Create link code, or berth fleet invite. The code contains the member's address and certificate pin and is valid once, for 15 minutes. On the fleet panel: paste it under Add member, or berth fleet add --code -. On the member: compare the fingerprint and confirm, choosing the level, or berth fleet accept --fingerprint <fingerprint> --level lezen. Unlinking On the member, Disconnect under Settings → Fleet or berth fleet leave takes effect immediately, also when the fleet panel is unreachable. On the fleet panel, removing a member (berth fleet remove --name <member>) asks the member to forget the fleet panel. What the fleet panel may do: levels The member chooses the level; the fleet panel cannot raise it. Level Allows lezen (read) status: versions, problems, a metrics summary, pending updates, vulnerabilities, backup state, the diagnosis, and information about update plans bedienen (operate) plus: acknowledge and silence problems, a diagnosis or repair dry run, restart services (the protected list still applies), start updates according to the member's own policy, update Berth to a signed version, run a backup now, and act against a vulnerability: fix it, update PHP, packages or software, turn a service off or on with a reason, apply or revert a mitigation beleid (policy) plus: roll out policy: update policy and maintenance windows, alert rules, notification channels, fail2ban exceptions, allowed admin addresses, hardening of kernel parameters New members start at lezen. Some things never go through the fleet, at any level: the terminal, files, restoring from a backup, deleting domains, subscriptions or databases, firewall rules that could cut off admin access, release upgrades, and changing users or passwords. For those you click through to the member's panel, where its normal rules apply. Every fleet action is a typed operation, not a free-form command. It runs on the member as a normal panel action and appears in the member's activity log as \"by fleet <name> on behalf of <user>\", and in the fleet panel's log. The overview Fleet → Overview shows a tile per member: a status light, open problems, CPU, memory and disk with the disk-full forecast, pending updates with security updates separately, whether a reboot is needed, vulnerabilities by severity and actively exploited ones, the last successful backup and external copy, certificates about to expire. Filter by label, search, or switch to a table for large fleets. Status is fetched every minute and trends every quarter of an hour. A member that cannot be reached becomes a critical problem on the fleet panel under System → Problems, with a notice. Per member you can forward its problems to the fleet panel's own notification channels, deduplicated and with the member's name (berth fleet set --name <member> --forward). berth fleet members berth fleet status --name web-03 berth fleet poll Clicking through with single sign-on Open panel on a member signs you in to that member's panel without a separate login. The member decides what you become: auditor (the default): you can read everything an auditor can, and change nothing; administrator: the member asks for the second step of its own administrator account with the same login, through its normal sign-in (a code from your authenticator app, a recovery code or a passkey). The fleet panel's assertion only replaces the password. If the member has no matching administrator with a second step, you arrive as auditor, and the reason is logged; off: no click-through. The fleet panel also asks for a recent second step before it issues a click-through. So a stolen fleet session alone is not enough to become administrator on a member. berth fleet hub --sso-role auditor # on the member berth fleet open web-03 # shows where to open it in the browser Actions in waves Fleet → Actions runs one action on many members without doing them all at once: Choose the action, the members (selection, labels or all) and how to roll it out. Review the preview: per member whether it may (its level) and what will happen, for example the pre-check of an update. Berth starts with one member as canary, then continues in waves of the size you set, with a waiting time in between. After each member it watches for a while: if a member fails or gets a critical problem, the action stops. You can retry, skip members or cancel. Available actions include updates (by the member's policy or security only), updating Berth, restarting a service, a backup, the diagnosis, a repair dry run, acknowledging or silencing a problem, fixing a CVE, updating PHP, packages or software, turning a service off or on, and applying or reverting a mitigation. Large or policy-level actions can require approval by a second administrator; see audit trail and approvals. berth fleet run --kind updates_security --labels productie --wave 3 --wait 10 --watch 15 --plan berth fleet run --kind updates_security --labels productie --wave 3 --wait 10 --watch 15 berth fleet actions --id 27 --follow Policy templates and drift Fleet → Policy holds named templates: update policy, maintenance windows, alert rules, notification channels (by name; a policy never contains a token or webhook, it only switches channels the member already has on or off), fail2ban exceptions, allowed admin addresses and kernel hardening. A policy is attached to members through their labels. The fleet panel compares each member with its policy (read-only on the member) and shows the drift: what differs and what a rollout would change. Rolling out runs in waves like any action, through each member's normal panel function. Address lists only gain entries; nothing is removed from them. berth fleet policy example > baseline.json berth fleet policy save --file baseline.json berth fleet policy check baseline berth fleet policy rollout baseline Vulnerabilities across the fleet Fleet → Vulnerabilities lists every vulnerability reported by any member: which members are affected, where a fix is ready, who already has it, where a mitigation is in place, and whether it is actively exploited. From a vulnerability you close it in waves, with each member's own post-update check, or put a mitigation on the fleet when there is no fix yet, including for a zero-day Berth does not know about. Services that members turned off with a reason are listed too. See vulnerability management. berth fleet vulns --q openssl berth fleet vulns --id CVE-2026-1234 Update plans: rolling updates in rings Fleet → Update plans puts recurring updates on a schedule: What: security updates, everything the member's own policy would include, one PHP version as a whole, site software (WordPress, Joomla, Drupal) by each site's policy, or Berth itself. When: weekly, monthly, or as soon as security updates are available. Rings: groups of members by label, each with its own canary and wave size, and a soak time between rings. Test servers first, production last. Health gate per member after its update: the member's own post-check, no new critical problem, its monitored sites not more down than before, and optionally no new failure in its diagnosis. A failing gate pauses the plan with the reason; you resume it once you have looked. Windows: a member outside its maintenance window is waited for or skipped, as you choose. Members stay in control. On the member, under Settings → Fleet, an administrator can per plan defer until a date, hold with a reason, set an own window, or update now ahead of its turn. The fleet panel sees the choice within a minute, and a member that already updated itself is recorded as done, not updated twice. berth fleet plan list berth fleet plan show weekly-security berth fleet plan hold weekly-security --reason \"customer migration this week\" # on a member Wazuh cross-check If you run Wazuh, the fleet panel can link to it read-only and compare what Wazuh reports about each member with what the member reports itself. Differences become problems on the fleet panel. See NIS2 and incidents for the wider SIEM picture. Related OS updates and maintenance Vulnerability management Roles and permissions Sign-in security Notifications and alerts"},{"s":"customers-and-packages","l":"en","t":"Customers, subscriptions and packages","d":"Define packages with limits, give one subscription its own exceptions, change packages, suspend, move, assign a dedicated IP, transfer to another Berth server or log in as the customer.","c":"business","g":["customers","packages","plans","subscriptions","limits","suspend","impersonate"],"h":[["how-customers-subscriptions-and-packages-fit-together","How customers, subscriptions and packages fit together"],["creating-a-package","Creating a package"],["what-each-limit-does","What each limit does"],["packages-on-several-servers","Packages on several servers"],["creating-a-customer-and-a-subscription","Creating a customer and a subscription"],["exceptions-for-one-subscription","Exceptions for one subscription"],["changing-package","Changing package"],["suspending","Suspending"],["moving-a-subscription-or-a-domain","Moving a subscription or a domain"],["a-dedicated-ip-address","A dedicated IP address"],["usage-and-alerts","Usage and alerts"],["transferring-a-subscription-to-another-berth-server","Transferring a subscription to another Berth server"],["logging-in-as-the-customer","Logging in as the customer"],["extra-logins-for-a-customer","Extra logins for a customer"],["removing-a-customer","Removing a customer"]],"x":"A hosting customer in Berth is a customer with one or more subscriptions, and every subscription is built from a package. This article covers the day-to-day work of a hosting company: designing packages, creating customers, giving one subscription an exception, and suspending, moving or transferring it later. Everything here can be done in the panel, through the REST API and with the berth CLI. How customers, subscriptions and packages fit together A customer is the account that owns things and can log in. A customer may belong to a reseller. A subscription is one hosting space: a system user with its own uid, its own webspace under /var/www/vhosts, its own PHP-FPM pools and its own systemd slice for CPU, memory and IO. Domains, mailboxes, databases, cron jobs and containers all belong to a subscription. See Domains and subscriptions and Isolation. A package is the template a subscription follows: limits, PHP defaults and what the customer may use. Change the package and every subscription on it follows, unless that subscription has its own exception. In the CLI a subscription is addressed by its system user (--sysuser acme), a customer by its login (--customer acme). Creating a package Panel: Admin → Packages → New package. CLI: berth plan set --name basis --php 8.3 --disk-mb 10240 \\ --max-domains 5 --max-mailboxes 20 --max-databases 5 --for-resellers berth plan list berth plan set creates the package or updates it by name. For count limits, 0 means unlimited. What each limit does Setting Flag Effect Domains, mailboxes, databases, database users, cron jobs, extra FTP accounts, containers --max-domains, --max-mailboxes, --max-databases, --max-db-users, --max-cron, --max-ftp-users, --max-containers Hard caps per subscription; the panel refuses to create more. Disk space --disk-mb Web, mail, databases and containers together. Enforced with filesystem quota where the filesystem supports it: the package value is the soft limit, with a slightly higher hard limit and a grace period. Files (inodes) --inodes Soft limit on the number of files and folders, so a cache or session folder with millions of tiny files cannot exhaust the file system. By default 100 per MB of disk space, at least 250,000; -1 means no limit. Only an administrator sets it. Traffic --traffic-mb Monthly soft limit: a warning, not a block. Mailbox quota --mailbox-quota-mb Default quota for new mailboxes, enforced by Dovecot. PHP --php, --fpm-pm, --fpm-max-children, --php-setting key=value Default PHP version, FPM process model, worker count and php.ini defaults. PHP settings locked --php-locked The customer cannot change PHP version or php.ini of their domains. PHP mail() --php-mail Off by default: a hacked site cannot spam through mail(); sites send through SMTP with a mailbox. PHP may start processes --php-shell Off by default: exec, system, proc_open and similar stay disabled. Outbound mail budget --mail-per-hour Recipients per hour for the subscription, shared by every way mail can leave. Isolation --cpu-percent, --memory-mb, --max-processes, --io-mbps, --io-iops Limits on the subscription's systemd slice. 200 CPU percent is two cores. Network connections --conn-max, --conn-rate Simultaneous TCP connections, and new outgoing connections per second, for the subscription. Database behaviour --db-connections, --db-user-connections, --db-statement-seconds Concurrent connections (by default 60 for the subscription and 20 per database user) and how long one query may run before MariaDB or PostgreSQL stops it. WAF --waf-mode, --waf-level, --waf-exclude Mode and strictness for the subscription's domains. See WAF. Features --shell, --apps, --containers, --postgresql, --no-object-cache Browser terminal and SSH, Node.js/Python apps, rootless containers, PostgreSQL next to MariaDB, and the per-subscription Valkey object cache. Outbound traffic --egress-restricted Sites, apps and containers may reach only web, DNS and the server's own services, with exceptions per subscription. DNS --dns-template-file, --dns-locked Records added to every new zone, and whether the customer may edit records. Custom web server rules --custom-web-directives Lets the customer and reseller add their own nginx/Apache directives per domain. Off by default. Customer alerts --notify-customer The customer also gets the disk warnings (80 % and 95 %) and the traffic warnings (80 % and 100 %). For resellers --for-resellers Resellers may put their customers on this package. The server owner can set hard limits in the server policy that no package can loosen; see Web server settings. Packages on several servers Packages → Export (JSON) downloads all packages; importing the file on another server creates or updates them by name. berth plan export --out packages.json berth plan import packages.json Creating a customer and a subscription Customers → Add customer. Enter login, name and e-mail, optionally a reseller and a password. Domains → Add. Choose the customer and the package. A new domain gets its own subscription, or joins an existing subscription of the same customer. On the command line, a password is always read from standard input so it stays out of the shell history: printf '%s\\n' \"$PW\" | berth customer add --login acme --name \"Acme\" \\ --email info@acme.nl --password-stdin berth customer create --customer acme --domain acme.nl --plan basis \\ --tls --email info@acme.nl berth customer create sets up the subscription and the first domain in one go (system user, webspace, PHP-FPM pool, web server configuration and, with --tls, a certificate). Running it again is safe. Exceptions for one subscription Sometimes one customer needs more databases or mail() switched on without a new package. On the customer page, open the subscription and choose Adjust package. An empty field follows the package, also when the package changes later. Exceptions stay in place when the subscription moves to another package. berth subscription override --sysuser acme # package, exceptions, effective values berth subscription override --sysuser acme --set php_mail=aan --set max_databases=20 \\ --php memory_limit=512M berth subscription override --sysuser acme --unset max_databases # follow the package again berth subscription override --sysuser acme --clear # remove all exceptions Isolation limits can only be changed by an administrator. Changing package Choose the new package at the subscription on the customer page, or: berth subscription plan --sysuser acme --plan webshop The subscription's domains are provisioned again with the new settings. Suspending What How Effect A whole customer Customer page → Suspend; berth customer suspend --customer acme --reason \"…\" All sites show a suspension page; customer logins and mailboxes can no longer sign in. Incoming mail is still accepted. Nothing is deleted. One subscription Subscription on the customer page; berth subscription suspend --sysuser acme --reason \"…\" Websites, SSH/SFTP, cron, FTP and mail of that subscription are closed; apps and containers stop. The customer's other subscriptions keep working. The reason is visible to administrators only. unsuspend reverses everything. To take a single website offline instead, see Domains and subscriptions. Moving a subscription or a domain Subscription to another customer: customer page → To another customer, or berth subscription move --sysuser acme --customer newco. Nothing changes on disk. Domain to another subscription: domain page → Move to another subscription. Files get the new owner; certificate and mail move along; databases and cron jobs stay with their subscription. Because this hands one customer's files to another, a move started from the panel or the API is a request that root approves outside the panel (berth domain move-requests, then berth domain move-approve <id> or move-reject). A dedicated IP address A free address of the server can become the subscription's own address. All its domains move to it, and outgoing mail for those domains leaves from that address. berth ip list berth subscription ip --sysuser acme --ipv4 203.0.113.20 --ipv6 2001:db8::20 berth subscription ip --sysuser acme --shared # back to the shared address An address the server does not have yet is added with berth ip add, which first checks that no other machine on the network already uses it (ARP for IPv4, NDP for IPv6) and keeps it after a reboot. berth ip check does only the check, berth ip remove takes an unused address away again, and berth ip default chooses which address new domains get: berth ip add 203.0.113.20 berth ip default --ipv4 203.0.113.10 The panel lists the A/AAAA records to change when it does not manage the DNS itself, and it regularly checks that the address has a matching PTR record and that SPF allows it; mail from an address without them is often refused by large providers. Usage and alerts The panel compares usage with the package every hour. Subscriptions at or above 80 % of their disk or traffic limit are listed at the top of Packages. Administrators get a notice when a subscription reaches 80 % of its disk space (critical from 95 %), and at 80 % and 100 % of its monthly traffic. berth subscription usage --sysuser acme berth plan warnings With --notify-customer on the package, the customer gets the same warnings. Notification channels are covered in Notifications and alerts. Transferring a subscription to another Berth server A subscription can move to another Berth server as one encrypted file: files, databases, mail, logins with their password hashes and second factor, DKIM keys, certificates, aliases, cron jobs and domain settings. On the old server: customer page → Move to another Berth server, choose a passphrase and click Create export file. On the new server: Admin → Migration → Import, upload the file with the passphrase, or let the new server fetch it with an administrator API token of the old one. berth transfer export --sysuser acme --out acme.berth --passphrase-file - berth transfer import --file acme.berth --passphrase-file - --dry-run berth transfer pull --from https://old-panel.example.nl --token-file token.txt \\ --sysuser acme --passphrase-file - --dry-run reports conflicts without changing anything. Container images the customer uploaded themselves are only included with --images (berth transfer images shows their size first). For whole servers, see Migrating a server. Logging in as the customer On the customer page, Log in as this customer opens the panel exactly as the customer sees it, with a banner at the top and a button Back to admin. Resellers can do the same for their own customers. Impersonation always needs a real panel session: no API token can do it. Every impersonation is recorded in the audit trail and reported by the audit watchdog. Extra logins for a customer A customer can add restricted logins for a web developer or bookkeeper with only the areas they need (domains, files, databases, mail, WordPress, backups, statistics, cron, security), optionally for one subscription: berth customer login add --customer acme --login webdev --perms domains,files,wordpress \\ --sysuser acme --password-stdin See Roles and permissions for what each role can see. Removing a customer Remove the domains first (domain page → Delete domain, or berth domain remove --domain acme.nl, with --purge to delete the webspace too), then the customer on the customer page or with berth customer remove --customer acme. With four-eyes approval enabled, removing the customer, and removing a domain together with its webspace (--purge), become a request to a second administrator. A removed domain name stays reserved for the same customer for 30 days, so no one else can take it over while DNS may still point here. berth domain release --domain acme.nl frees it earlier for someone else; see Domains and subscriptions."},{"s":"resellers-and-white-label","l":"en","t":"Resellers and white label","d":"Let resellers run their own customers and packages within limits, and give them their own brand, panel hostname, mails, status page, login page, reports and webmail.","c":"business","g":["reseller","white label","branding","huisstijl","custom hostname","oversell"],"h":[["what-a-reseller-can-do","What a reseller can do"],["creating-a-reseller","Creating a reseller"],["limits","Limits"],["packages-for-resellers","Packages for resellers"],["moving-existing-customers-to-a-reseller","Moving existing customers to a reseller"],["suspending-a-reseller","Suspending a reseller"],["white-label-the-reseller-s-own-brand","White label: the reseller's own brand"],["what-carries-the-brand","What carries the brand"],["which-brand-a-customer-sees","Which brand a customer sees"],["the-reseller-s-own-panel-hostname","The reseller's own panel hostname"],["the-owner-s-policy","The owner's policy"],["related","Related"]],"x":"A reseller sells hosting under their own name on your server. In Berth a reseller has their own login, their own customers and optionally their own packages, all within limits you set, and their customers see the reseller's brand instead of yours. This article covers creating resellers, what they can and cannot do, and the white-label options. What a reseller can do A reseller manages their own customers: creating them, their subscriptions, domains and logins, logging in as one of their customers, suspending them, and moving subscriptions between their own customers. They can reset a customer's second factor when the customer has lost it. Their menu shows Customers, Packages, Activity, Limits, Branding, AI and credits and Integrations. Everything at server level stays with the administrator: system settings, firewall, backup storage, PHP versions, certificate authorities, single sign-on and other resellers. Roles are compared in Roles and permissions. Creating a reseller Panel: Admin → Resellers → Add reseller. Enter login, name and e-mail; leave the password empty to have one generated and shown once. printf '%s\\n' \"$PW\" | berth reseller create --login reseller1 --name \"Example Hosting\" \\ --email office@example.nl --max-customers 50 --max-subscriptions 80 \\ --disk-mb 100000 --own-plans --password-stdin berth reseller list berth reseller show --login reseller1 Limits Limits apply to all the reseller's customers together; 0 means unlimited. Limit Flag Customers, subscriptions --max-customers, --max-subscriptions Domains, mailboxes, databases --max-domains, --max-mailboxes, --max-databases Disk space: the sum of the package values of their subscriptions --disk-mb Oversell: allow more disk to be assigned than --disk-mb --oversell Own packages --own-plans Custom nginx/Apache rules in their customers' packages --custom-web-directives Monthly AI budget for all their customers together, in credits --ai-credits berth reseller update sets name, e-mail and limits; give all limits again, because the command sets the full set. The AI budget matters because AI usage runs on your provider keys: when it is used up, AI stops for that reseller's customers until the month is over. Packages for resellers A reseller uses the packages you release to resellers, plus their own if --own-plans is set: berth plan set --name basis --php 8.3 --disk-mb 10240 --for-resellers Packages a reseller makes themselves have no resource isolation settings; CPU, memory and IO limits belong to the server owner. See Customers, subscriptions and packages for what each package setting does. Moving existing customers to a reseller On the customer page under Reseller, or: berth reseller assign --customer acme --login reseller1 berth reseller assign --customer acme --login \"\" # back to the administrator The customer's subscriptions must be on packages the reseller may use. Suspending a reseller berth reseller suspend --login reseller1 closes the reseller's logins and all their customers. unsuspend reopens them, except customers that were suspended for another reason. White label: the reseller's own brand A brand has: a name, used in the menu, the browser tab title and mails; a main colour and an accent colour, with a contrast warning; the panel lightens the main colour in dark mode; a logo for light mode and an optional one for dark mode (PNG or JPEG), and a favicon (square PNG; without one, the logo is used); a helpdesk e-mail address, where replies to panel mails go, and a helpdesk URL, shown as Help at the bottom of every page and in mail footers. The branding page shows a live preview in light and dark; others see the changes after Save. Where to set it: A reseller: Branding in their own menu. The administrator, for a reseller: the reseller's page → Branding of reseller1. The administrator, for the server itself (the platform brand): Settings → Branding. berth brand --reseller reseller1 --name \"Example Hosting\" --color '#0a5f8a' \\ --logo logo.png --logo-dark logo-dark.png --favicon favicon.png \\ --support-email help@example.nl --support-url https://example.nl/help --mode own berth brand --reseller reseller1 # show berth brand --name \"Acme Hosting\" --color '#204060' # the platform brand of this server What carries the brand Where What the customer sees The panel Name, colours, logos and favicon, for the reseller and all their customers. An administrator who logs in as a customer sees what the customer sees. Login page The brand, on the reseller's own panel hostname. Mails to customers HTML mails with the brand's name in the From line and replies going to the helpdesk address. The sending address stays the server's, so SPF and DKIM keep working. Public status pages Logo and colours of the brand. See Uptime and status pages. Monthly reports The signed monthly report per customer. Webmail Roundcube on the customer's webmail. hostname shows the reseller's brand. The database tool uses a neutral \"Databases\" title rather than any brand. Which brand a customer sees A reseller chooses one of three modes (--mode): own: their own brand; platform: the server's platform brand; berth: the plain Berth look. Without a brand of its own, a reseller's customers see the platform brand, and without a platform brand, Berth. The reseller's own panel hostname A reseller can have the panel on their own name, for example panel.example.nl, with its own login page and certificate. Point an A record (and AAAA) for the name at the server. Set the name on the branding page under Address, or: berth brand --reseller reseller1 --hostname panel.example.nl --email office@example.nl The panel requests a certificate itself and switches the name to https. The panel's own hostname must already have a certificate. An empty hostname removes it. Passkeys belong to the hostname they were created on, so a customer who signs in on the reseller's hostname uses a passkey made there. Sign-in through single sign-on runs via the main panel hostname. The owner's policy The server owner decides what resellers may do with branding, on the branding page under the policy section, or with berth brand policy: berth brand policy # show berth brand policy --reseller-own=false # resellers may not run their own brand berth brand policy --reseller-berth=false # resellers may not pick the Berth look berth brand policy --allow reseller1 # exception: this reseller may anyway berth brand policy --default reseller1 # back to the general rule Both general rules are on by default. A reseller who may not run their own brand shows the platform brand to their customers. Related Billing integration: let WHMCS or HostBill create the reseller's customers. Mailboxes and Webmail and mail clients: mail and webmail hostnames per domain. Certificates: how the panel requests certificates."},{"s":"billing-integration","l":"en","t":"Billing integration (WHMCS, HostBill, provisioning API)","d":"Connect WHMCS or HostBill so orders create, suspend, upgrade and terminate subscriptions automatically, or drive the same /api/v1/provisioning/ API from your own billing system.","c":"business","g":["whmcs","hostbill","billing","provisioning","api","sso"],"h":[["how-it-works","How it works"],["creating-the-provisioning-token","Creating the provisioning token"],["whmcs","WHMCS"],["setting-up-whmcs","Setting up WHMCS"],["hostbill","HostBill"],["setting-up-hostbill","Setting up HostBill"],["the-provisioning-api","The provisioning API"],["examples","Examples"],["the-single-sign-on-link","The single sign-on link"],["related","Related"]],"x":"When customers order hosting in a billing system, the billing system should create the account, suspend it when an invoice is overdue and remove it when the contract ends. Berth has a provisioning API for exactly that, and ready-made modules for WHMCS and HostBill that use it. One service in the billing system is one subscription in Berth, identified by the service's domain. How it works The billing system authenticates with an API token that has the provisioning scope. That token can only reach /api/v1/provisioning/ and nothing else in the API, so a leaked billing token cannot touch DNS, backups or settings. Every call is identified by the domain of the service. Creating is idempotent on that domain, so a retry after a timeout does not create a second account. The package of a product in the billing system is the name of a package in Berth. The modules load the list of package names from the panel. Every provisioning action is recorded in the audit trail like any other change. Creating the provisioning token Only an administrator can create a provisioning token. In the panel: Account → AI connection (the page AI connection and API keys) → Create key and choose the rights Billing. On the server: berth token create --login admin --name whmcs --scope provisioning > whmcs-token.txt The secret is shown once. Store it in the billing system and nowhere else; revoke it with berth token revoke or on the same page if it leaks. See REST API for tokens in general. WHMCS The WHMCS server module supports: WHMCS function What happens in Berth Create Creates the customer if needed, the subscription on the chosen package, and the domain. Suspend / Unsuspend Suspends only that subscription: sites show the suspension page; SSH/SFTP, cron, FTP and mailboxes are closed. The customer's other services keep working. Terminate Removes the subscription's databases, domains (with mail and files) and the subscription; a customer left without subscriptions is removed too. Change package Moves the subscription to another package. Change password Sets the password of the customer login. Test connection Checks the token and shows the panel version and packages. Single sign-on The client area button logs the customer in to the panel without a password. Package list The Module Settings dropdown is filled with the panel's package names. Usage update Disk and traffic of every service on the server, for WHMCS usage display and billing. Client area A small client area template for the service. The customer in Berth gets the login whmcs-<client id>, so the same WHMCS client with several services ends up as one customer with several subscriptions. Setting up WHMCS Copy the Berth server module (the folder berth) into modules/servers/ of your WHMCS installation. Create the provisioning token as above. In WHMCS: System Settings → Servers → Add New Server. Choose module Berth, set the hostname to the panel's hostname, paste the token into Access Hash, and tick Secure. For each product: Module Settings → module Berth, then pick the Berth package from the list. Use Test Connection on the server to check the token. All module calls are idempotent, so retrying a failed action from WHMCS is safe. HostBill The HostBill hosting module uses the same provisioning API and supports create, suspend, unsuspend, terminate, change package and change password, plus: Status sync: the regular HostBill synchronisation picks up whether the account is suspended, and its usage. Usage: disk and traffic of one account, or of all accounts in one call, in whole MB, for usage billing. Traffic is web traffic in and out for the current calendar month, the same figures the panel shows. Single sign-on: a one-time login link for the customer, requested at the moment they click. The customer in Berth gets the login hostbill-<client id>. Setting up HostBill Copy the Berth module (the folder berth) into includes/modules/Hosting/ and activate it under Settings → Modules → Hosting Modules. Create a provisioning token in Berth. In HostBill: Settings → Apps → Add new App, module Berth, Hostname = the panel, Password = the token, SSL on. Fill in Port only if the panel is not on 443. For each product: Connect with App → Berth, and choose the package. Berth requires customer passwords of at least 12 characters. When HostBill generates a shorter one at creation, the module generates a longer password and stores it on the account. HostBill does not define a fixed hook for single sign-on or usage. The module provides them as functions you call from your own button, task or template. The provisioning API Your own billing or CRM system can use the same endpoints. All requests use Authorization: Bearer <token> with a provisioning token, and request bodies must be sent as Content-Type: application/json. Method and path What it does GET /api/v1/provisioning/test Test the connection: panel version and package names. POST /api/v1/provisioning/accounts Create a service: customer if needed, subscription and domain. Idempotent on the domain. GET /api/v1/provisioning/accounts All services with their usage. GET /api/v1/provisioning/accounts/{domain} One service with its usage. POST /api/v1/provisioning/accounts/{domain}/suspend Suspend this subscription only, with an optional reason. POST /api/v1/provisioning/accounts/{domain}/unsuspend Lift the suspension. PUT /api/v1/provisioning/accounts/{domain}/plan Move to another package. POST /api/v1/provisioning/accounts/{domain}/password Set the password of the customer login. POST /api/v1/provisioning/accounts/{domain}/sso A one-time login link for the customer. DELETE /api/v1/provisioning/accounts/{domain} Terminate: databases, domains and subscription, and the customer when nothing is left, unless ?keep_customer=true. Examples Create a service: curl -s https://panel.example.nl/api/v1/provisioning/accounts \\ -H \"Authorization: Bearer $TOKEN\" \\ -H \"Content-Type: application/json\" \\ -d '{\"domain\":\"acme.nl\",\"plan\":\"basis\", \"customer\":{\"login\":\"acme\",\"name\":\"Acme\",\"email\":\"info@acme.nl\",\"password\":\"…\"}}' The customer object also accepts reseller, to create the customer under a reseller. The answer (201) describes the service, with the same fields that GET …/accounts/{domain} returns: Field Meaning created true when this call created it, false when it already existed domain, domains The service's domain and all domains of the subscription customer, sysuser, plan Customer login, system user of the subscription, package name suspended, suspendreason, customersuspended Suspension state of the subscription and of the customer diskmb, disklimitmb, trafficmb, trafficlimitmb Usage and limits in MB; a limit of 0 is unlimited panelurl, sftphost Where the customer logs in and connects with SFTP, for the welcome mail created_at When the subscription was created Suspend with a reason, and change the package: curl -s -X POST https://panel.example.nl/api/v1/provisioning/accounts/acme.nl/suspend \\ -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\ -d '{\"reason\":\"Invoice 2026-1042 overdue\"}' curl -s -X PUT https://panel.example.nl/api/v1/provisioning/accounts/acme.nl/plan \\ -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\ -d '{\"plan\":\"webshop\"}' Errors come back as a 4xx or 5xx status with a JSON body containing error (a message in Dutch) and request_id, which identifies the request when you report a problem. The single sign-on link POST …/accounts/{domain}/sso returns a URL of the form https://<panel>/sso/<token>. The link is valid for one minute and works once, and the customer arrives logged in on their dashboard. Request it when the customer clicks log in to the panel, redirect them straight away, and never store or e-mail it. Only a provisioning token, or an administrator with their own panel session, can create such a link; no other API key can, including those of extensions. Each request is logged as provisioning.sso and each use as login.sso. Related Resellers and white label: customers created through billing can belong to a reseller and see their brand. Webhooks and extensions: push panel events back to your billing or CRM system. REST API: the full API for everything beyond provisioning."},{"s":"rest-api","l":"en","t":"REST API","d":"Everything the panel does is available as JSON under /api/v1/, described by an OpenAPI 3.1 spec at /api/v1/openapi.json, with scoped bearer tokens or a session with CSRF protection.","c":"automation","g":["api","rest","openapi","token","bearer","automation"],"h":[["the-api-at-a-glance","The API at a glance"],["authentication","Authentication"],["bearer-token","Bearer token"],["session-with-csrf-token","Session with CSRF token"],["api-tokens-and-scopes","API tokens and scopes"],["creating-a-token","Creating a token"],["sensitive-actions","Sensitive actions"],["rules-every-client-must-follow","Rules every client must follow"],["examples","Examples"],["auditing","Auditing"],["related","Related"]],"x":"Berth's web interface and its REST API are two views of the same thing: every page in the panel calls the same panel functions that the API exposes, with the same permission checks, validation and audit logging. If you can do it in the panel, you can script it. This article explains how to find your way in the API, how to authenticate, and the few rules that every client has to follow. The API at a glance Base path: https://<panel hostname>/api/v1/. Format: JSON in, JSON out. Description: an OpenAPI 3.1 document at GET /api/v1/openapi.json, also printed by berth openapi on the server. Size: about a thousand paths and over 1,200 operations, covering domains, mail, DNS, databases, backups, migration, security, server management, fleet and more. Scope: a login sees through the API exactly what it sees in the panel. A customer only sees their own subscriptions, a reseller their own customers. The spec is generated from the route registrations in the code, and a test fails when a route has no description, so the spec and the server do not drift apart. Summaries in the spec are currently in Dutch. Berth does not ship a documentation viewer; load the spec into the tool you prefer, such as Swagger UI, Redoc, Postman, Insomnia or a client generator. curl -s https://panel.example.nl/api/v1/openapi.json -o berth-openapi.json berth openapi > berth-openapi.json # on the server, same document Authentication The spec declares two security schemes. Use a token for scripts and integrations; the session is what the browser uses. Bearer token curl -s -H \"Authorization: Bearer berth_<secret>\" https://panel.example.nl/api/v1/me GET /api/v1/me returns who you are (login, role and, for customers and resellers, their id). It is a good first call to check a token. Session with CSRF token POST /api/v1/login with {\"login\": \"...\", \"password\": \"...\"} sets the session cookie and returns {\"login\": …, \"csrf\": …, \"sessionexpires\": …}. Send the csrf value as the X-CSRF-Token header on every request that changes something. If the account uses two-step verification, the answer says mfarequired; send the code to POST /api/v1/login/mfa with the same cookie and CSRF token. curl -s -c jar -H \"Content-Type: application/json\" \\ -d '{\"login\":\"acme\",\"password\":\"…\"}' https://panel.example.nl/api/v1/login curl -s -b jar -H \"X-CSRF-Token: $CSRF\" -H \"Content-Type: application/json\" \\ -X PATCH -d '{\"hsts\":true}' https://panel.example.nl/api/v1/domains/acme.nl Over https the cookie is a __Host- cookie: bound to the panel's hostname, secure-only and path /. API tokens and scopes A token belongs to a login and acts with that login's rights, narrowed by its scope: Scope Panel label What the token can reach full REST API The whole REST API, as the login. provisioning Billing (provisioning) Only /api/v1/provisioning/, for WHMCS, HostBill or your own billing. Administrators only. metrics Metrics (Prometheus) Only /metrics in Prometheus format. See Statistics and metrics. monitor:read Home Assistant (read only) Only the read-only status used by Home Assistant. ai:read, ai:write, ai:full Read only, Read and change, Full within the subscription Only the MCP endpoint /mcp; the REST API refuses these tokens. See AI assistant and MCP. probe Probe location for uptime Lets another Berth server run uptime checks from this one. Administrators only. Extensions get their own, narrower keys from the panel; see Webhooks and extensions. Rules that apply to every token: The secret (berth_…) is shown once and stored only as a hash. Lost means revoke and create a new one. A token can be limited to one subscription of the login. By default a token expires after a year; you can choose a shorter or no expiry. A token can never create or manage tokens, and never manage two-step verification. An auditor's tokens are read-only, whatever scope is chosen. Revoking works immediately. Creating a token Panel: Account → AI connection (the page AI connection and API keys) → Create key. Give it a name, choose the rights, optionally a subscription and a validity (30 days, 90 days, 1 year, unlimited). Creating a key asks you to confirm it is you first. On the server: berth token create --login admin --name ci --scope full --days 90 berth token create --login acme --name deploy --scope full --sysuser acme --days 30 berth token list --login admin berth token revoke --login admin --id 7 Sensitive actions Some actions need more than an ordinary token or session, because they hand out secrets or destroy data: setting a mailbox or database password, exporting a database or a customer's data, downloading a backup or a file from history, deleting a customer, domain, database, mailbox or backup, lifting a write lock, widening a subscription's outbound traffic, and creating an API key. Situation Response What to do Session without a recent confirmation 403 with code: \"reauth_required\" Confirm with POST /api/v1/me/reauth (a passkey, a second-factor code, or the password if the login has no second step), then repeat the request. Token without the sensitive scope 403 with code: \"sensitivescoperequired\" Use a token created with Allow sensitive actions, --sensitive on the CLI. The error body names the action in action. Only create sensitive tokens for integrations that really need them: the panel normally asks a person to confirm these actions, and a token cannot. Rules every client must follow Send JSON as JSON. A request with a JSON body must carry Content-Type: application/json; otherwise the API answers 415. This is deliberate: browsers can send some content types across sites without a preflight check, and requiring the JSON type closes that path for cross-site requests. Send exactly what the operation expects. Bodies are decoded strictly: unknown fields, more than one JSON value and oversized bodies are refused with a 4xx error. Check the schema of the operation in the spec. Expect errors in one shape. Errors return a 4xx or 5xx status with a JSON body: {\"error\": \"…\", \"request_id\": \"…\"} Messages are in Dutch. Some refusals carry a stable code for programs, such as the two above, or coverage_loss (409) when a backup change would leave subscriptions without an external copy; such a body tells you which field to resend (confirm: true) to go ahead deliberately. Respect rate limits. Sign-in and other sensitive endpoints are rate-limited. Calls from customers, resellers and their tokens are also limited per account, both in how many requests may run at once and in requests per second, with room for a short burst. A client that gets 429 should honour Retry-After and back off. Examples Create a mailbox (the password is generated when you leave it empty and shown once in the answer): curl -s -X POST https://panel.example.nl/api/v1/domains/acme.nl/mail/accounts \\ -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\ -d '{\"local\":\"info\",\"quota_mb\":2048}' Add a domain with a certificate for an existing customer: curl -s -X POST https://panel.example.nl/api/v1/domains \\ -H \"Authorization: Bearer $TOKEN\" -H \"Content-Type: application/json\" \\ -d '{\"domain\":\"shop.example.com\",\"customer\":\"acme\",\"plan\":\"basis\",\"tls\":true}' Usage of a subscription against its package, and what is currently running or waiting: curl -s -H \"Authorization: Bearer $TOKEN\" https://panel.example.nl/api/v1/subscriptions/acme/usage curl -s -H \"Authorization: Bearer $TOKEN\" https://panel.example.nl/api/v1/summary Long operations (an update, a restore, a WordPress install) run as background tasks; GET /api/v1/tasks lists them with their progress. Auditing Every change through the API lands in the activity log under the login's name, with the token's name, exactly as if it had been done in the panel. Four-eyes approval, where enabled, applies to API calls too: the call becomes a request for a second administrator. Related The berth CLI: the same functions on the server, without a token. Webhooks and extensions: get notified of changes instead of polling. Sign-in security: passkeys, two-step verification and re-authentication."},{"s":"berth-cli","l":"en","t":"The berth command line","d":"An overview of the berth CLI on the server: the command tree by area, how it talks to the agent, --local, reading secrets from stdin, JSON output and everyday examples.","c":"automation","g":["cli","command line","berth","terminal","scripting","ssh"],"h":[["how-it-runs","How it runs"],["finding-your-way-help","Finding your way: --help"],["the-command-tree-by-area","The command tree by area"],["addressing-things","Addressing things"],["passwords-and-secrets-never-on-the-command-line","Passwords and secrets: never on the command line"],["output-for-scripts","Output for scripts"],["everyday-examples","Everyday examples"],["things-only-root-can-do","Things only root can do"],["when-the-panel-is-down","When the panel is down"],["related","Related"]],"x":"berth is the command-line tool on the server itself. It covers everything the panel does, from creating a customer to migrating a Plesk server, and some things the panel deliberately leaves to root, such as approving a domain move or trusting an extension publisher. You never need it for daily work, but it is the natural tool for scripts, configuration management and for the moments when the web interface is not reachable. How it runs Run berth on the server as root. Some read commands also work for members of the berth group, but they get only what the panel itself may do. By default a command talks to berth-agent, the small root service that performs privileged work, over its local socket. The agent validates each operation and runs it in a separate subprocess, exactly as it does for the panel. See Architecture. Many commands accept --local: run the operation in-process as root instead of through the agent. That is useful when the agent itself is the problem, and during installation or recovery. Changes made with the CLI land in the same panel database and the same activity log as changes made in the panel. Finding your way: --help Every level has help: berth --help # all top-level commands with a one-line description berth backup --help # the subcommands of backup berth backup schedule add --help # the flags of one command Shell completion is available for bash, zsh, fish and PowerShell: berth completion bash > /etc/bash_completion.d/berth The panel shows the matching CLI command next to many actions, which is a quick way to learn the right flags. The command tree by area There are more than 100 top-level commands. Grouped by what they are for: Area Commands Setup and lifecycle install, uninstall, doctor, repair, rescue, dr, update, license, release, offline-bundle, version, modules, export, status, task, job, watchdog, vulndb Customers and tenancy customer, subscription, plan, reseller, brand, transfer, search, quota, lock, egress, beleid Access admin, admins, approvals, sso, token, ssh, sftp, sshd, admin-term, audit, auditwatch, privacy, evidence, incident Integrations webhook, extension, homeassistant, ai, openapi, fleet Websites domain, php, tls, cdn, geoip, ip, render, sjablonen, files, ftp, cron, git Mail and DNS mail, mail-reports, lists, dns Databases and backups database, backup Applications software, wp, joomla, drupal, nextcloud, matomo, laravel, app, container, docker, sysapp Monitoring and logs uptime, webvitals, stats, logs, logdrain, report, notify, alert, siem Server management system, service, service-backup, service-update, component, unit, proc, ports, inventory, integrity, hardening, mitigation, maintenance, snapshot, storage, panel, agent, security, waf Migration migrate, migration, import The server-management commands that have no page of their own in this library are explained here: admins and sshd in Firewall and bans, sysapp in system apps, ip in Customers and packages, system local-config in How changes go live, sjablonen in Web server settings, service-update in Services and diagnostics, and system repos and system lifecycle in OS updates and maintenance. Most commands have subcommands: berth mail account add, berth backup history restore, berth migration cutover … go. Addressing things Commands use the same names as the panel: a customer by login: --customer acme; a subscription by its system user: --sysuser acme; a domain by name: --domain acme.nl; a mailbox by address: --address info@acme.nl; a package by name: --plan basis. Passwords and secrets: never on the command line Arguments end up in the shell history and are visible in the process list to other users. Berth therefore never takes a password or key as a plain argument. Commands that need one read it from standard input or from a file: Pattern Used by, for example --password-stdin customer add, customer login add, reseller create, ftp add, migration add --key-file -, --token-file, --secret-file DNS provider tokens, AI provider keys, S3 keys, API tokens of another server --code-file - license activate --passphrase-file - transfer export, import and pull --client-secret-file - sso set Typical use: printf '%s\\n' \"$PW\" | berth customer add --login acme --name \"Acme\" \\ --email info@acme.nl --password-stdin berth dns account-add --provider cloudflare --name cf --token-file /root/cf-token.txt berth license activate --code-file - < licence-code.txt Secrets that Berth generates (a mailbox password left empty, an API token, a webhook secret) are printed once. Store them where they belong straight away. Output for scripts Many read commands accept --json, for example berth status --json, berth doctor --json, berth search acme --json, berth backup list --json, berth task list --json. berth doctor and berth hardening exit with status 1 when a check fails, so they fit in monitoring or a deploy pipeline. berth status always exits 0, even when something is pending. Long work runs as a job or background task. berth job log <id> --follow and berth task show <id> --wait follow it until it is done; many commands accept --wait themselves. Everyday examples Customers and packages (details): berth plan set --name basis --php 8.3 --disk-mb 10240 --max-domains 5 --max-mailboxes 20 berth customer create --customer acme --domain acme.nl --plan basis --tls --email info@acme.nl berth subscription usage --sysuser acme berth subscription suspend --sysuser acme --reason \"Invoice overdue\" Mail and DNS (mailboxes, DNS): berth mail enable --domain acme.nl berth mail account add --address info@acme.nl --quota-mb 2048 berth mail status --domain acme.nl --check berth dns link --domain acme.nl --auto && berth dns apply --domain acme.nl Backups and restore (restoring data): berth backup schedule list berth backup history restore --sysuser acme --at \"2026-10-28 14:00\" \\ --domain acme.nl --path httpdocs/wp-config.php Server health and updates (OS updates, updating Berth): berth doctor berth system updates berth update --check berth logs --unit nginx --priority err --since 1h Finding things: berth search acme # domains, mailboxes, aliases, databases, subscriptions, customers, logins berth status # background tasks, pending actions and notices Things only root can do A few actions are deliberately not available in the panel or the API, so that a compromised panel process cannot perform them. They are done on the server as root: approving a request to move a domain to another subscription (berth domain move-approve); trusting an extension publisher (berth extension trust add); changing the server policy with hard limits that packages cannot loosen (berth beleid); installing an unsigned or HTTP extension (berth extension install). When the panel is down The CLI does not depend on the web interface. If the panel daemon will not start, berth doctor shows why, berth repair re-renders configuration from the database and fixes ownership, and berth rescue opens a recovery menu that works even without the database. See Rescue mode and Services and diagnostics. Related REST API: the same functions over HTTPS, with tokens. Installing Berth: berth install and its options."},{"s":"webhooks-and-extensions","l":"en","t":"Webhooks and extensions","d":"Send signed panel events to your own systems with HMAC-signed, retried webhooks, and extend the panel with separate-process extensions that add pages, API routes and hooks that can veto or adjust actions.","c":"automation","g":["webhooks","hmac","extensions","plugins","sdk","hooks","integration"],"h":[["webhooks","Webhooks"],["creating-a-webhook","Creating a webhook"],["what-the-receiver-gets","What the receiver gets"],["retries","Retries"],["verifying-the-signature","Verifying the signature"],["extensions","Extensions"],["isolation","Isolation"],["the-manifest","The manifest"],["writing-one-in-go","Writing one in Go"],["other-languages-the-protocol","Other languages: the protocol"],["pages-from-blocks","Pages from blocks"],["hooks-that-veto-or-modify","Hooks that veto or modify"],["the-extension-s-api-key","The extension's API key"],["access-to-webspaces","Access to webspaces"],["http-extensions","HTTP extensions"],["installing","Installing"],["signed-updates","Signed updates"],["related","Related"]],"x":"Berth offers two ways to connect your own software. Webhooks push events from the activity log to a URL you choose: a domain was created, a backup was restored, a site went down. Extensions go further: a separate program that the panel starts and supervises, which can receive events, add its own pages and API routes, and step in before an action happens. Both are for administrators. Webhooks Every change in the panel is an entry in the activity log with a dotted name such as domain.create, mail.account.create, customer.create, backup.restore or uptime.down, whether it came from the panel, the API or the CLI. A webhook subscribes to those names with patterns: domain. for everything about domains, for everything. Creating a webhook Panel: Integrations → Webhooks. Enter the https address of the receiver and the event patterns. The signing secret is shown once. berth webhook add --url https://hooks.example.nl/berth --events 'domain.*,customer.create' berth webhook list # with the latest deliveries per webhook berth webhook test 3 # queue a test message berth webhook disable 3 The receiver must use https. A receiver on your own network or on the server itself (a private or loopback address) is refused unless you allow it explicitly with --allow-private, which also permits plain http for that target. What the receiver gets A POST with a JSON body: { \"event\": \"domain.create\", \"at\": \"2026-10-29T09:14:03Z\", \"actor\": \"admin\", \"target\": \"acme.nl\", \"details\": {}, \"audit_id\": 48213, \"server\": \"srv1.example.nl\" } and these headers: Header Value Content-Type application/json User-Agent Berth/<version> X-Berth-Event The event name, e.g. domain.create X-Berth-Delivery A delivery id; the same id on every retry X-Berth-Timestamp Unix time in seconds when this attempt was sent X-Berth-Signature sha256= followed by the hex HMAC-SHA256 of <timestamp>.<body> with the webhook's secret Retries A delivery succeeds when the receiver answers with a 2xx status. On an error or any other status, Berth tries again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours; after seven attempts the delivery is marked as failed and shown as such in the webhook's delivery list. Redirects are not followed. Because a delivery can arrive more than once, make your receiver idempotent on X-Berth-Delivery or audit_id. Verifying the signature Compute the HMAC over the timestamp, a dot and the raw body exactly as received, compare in constant time, and reject messages whose timestamp is too far from your own clock (five minutes is a sensible window). This proves the message came from your panel and stops an old message from being replayed. import hashlib, hmac, time def verify(secret: bytes, headers: dict, body: bytes, window: int = 300) -> bool: ts = headers.get(\"X-Berth-Timestamp\", \"\") sig = headers.get(\"X-Berth-Signature\", \"\") if not ts.isdigit() or abs(time.time() - int(ts)) > window: return False expected = \"sha256=\" + hmac.new(secret, ts.encode() + b\".\" + body, hashlib.sha256).hexdigest() return hmac.compare_digest(expected, sig) The same in Node.js: const crypto = require('node:crypto'); function verify(secret, headers, rawBody, windowSeconds = 300) { const ts = headers['x-berth-timestamp'] || ''; const sig = headers['x-berth-signature'] || ''; if (!/^\\d+$/.test(ts) || Math.abs(Date.now() / 1000 - Number(ts)) > windowSeconds) return false; const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(ts + '.').update(rawBody).digest('hex'); return expected.length === sig.length && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(sig)); } Use the raw request body: parsing and re-serialising the JSON changes the bytes and breaks the signature. Notifications can also go to your own URL as a signed webhook, per account, alongside Slack, Teams and the other channels. That is the better fit for alerts; see Notifications and alerts. Extensions An extension is a separate program that extends the panel. The panel starts it, talks to it, and restarts it if it crashes, hangs or stops answering pings, without the rest of the panel noticing. An extension can: receive events from the activity log, with the same patterns as webhooks; offer its own API routes under /api/v1/ext/<name>/…, for administrators or for every signed-in user; add pages to the panel under /ext/<name>/…, optionally in the menu, built from blocks rather than HTML; hook into actions: before a domain, customer, subscription, database or mailbox is created, or a package is saved, the panel asks the extension whether it may proceed, and the extension can adjust certain fields; use the panel's API with its own scoped key; update itself from a signed update source. Typical uses: enforce naming rules for customers, sync new customers to a CRM, block domains on an internal deny list, add a report page for your support team, or adjust a package's limits to match a contract. Isolation A program extension runs as its own temporary system user with resource limits from its manifest (memory, CPU share, number of processes). The system is read-only to it except its own data directory; it has no access to the panel's configuration, webspaces, mail or databases, no extra privileges and its own /tmp. Whatever it needs from the panel goes through the API with its own key, so even a compromised extension cannot read panel secrets or customer files. Failures stay contained: a page that fails shows a clean error, a hook that does not answer in time lets the action continue by default, and an extension can always be switched off under Settings → Extensions or with berth extension disable. That page shows state, restarts, recent errors and the extension's log. The manifest An extension is a directory with extension.json and the program: { \"name\": \"crm-sync\", \"version\": \"1.0.0\", \"description\": \"Sends new customers to the CRM\", \"command\": \"crm-sync\", \"events\": [\"customer.*\", \"provisioning.*\"], \"routes\": [{\"method\": \"GET\", \"path\": \"/status\", \"access\": \"admin\"}], \"pages\": [{\"path\": \"/\", \"title\": \"CRM\", \"access\": \"admin\", \"menu\": true}], \"hooks\": [\"customer.create\"], \"hook_failure\": \"allow\", \"api\": \"read\", \"limits\": {\"memory_mb\": 128, \"cpu_percent\": 25, \"tasks\": 32} } Writing one in Go Berth ships a Go SDK (package sdk) that handles the protocol: sdk.Serve(sdk.Extension{ Name: \"crm-sync\", Version: \"1.0.0\", OnEvent: func(ctx context.Context, e sdk.Event) error { return pushToCRM(ctx, e) // your code }, Routes: map[string]sdk.Handler{ \"GET /status\": func(ctx context.Context, r sdk.Request) (sdk.Response, error) { return sdk.Text(200, \"ok for \"+r.Principal.Login), nil }, }, }) Other languages: the protocol Extensions speak JSON-RPC 2.0, one message per line, over standard input and output: Direction Method Purpose panel → extension initialize Start-up: protocol version, panel version, hostname and, if requested, the API key. The extension answers with its name and version. panel → extension event An activity-log event (action, target, actor, at, details). panel → extension request A call to one of its routes or pages, with the signed-in principal. panel → extension hook Before an action: answer {allow: true}, {allow: false, message: \"…\"} or {allow: true, changes: {…}}. panel → extension ping, shutdown Health check and clean stop. panel → extension health Periodic health report (only with health in the manifest). extension → panel log A log line for the extension's log. extension → panel alert Report a problem or its recovery; the panel notifies through its usual channels. extension → panel metric A measurement usable in alert rules as ext:<extension>:<name>. Events arrive in order. A new extension starts at \"now\"; it does not get past events. Pages from blocks A page is not HTML. The extension returns a view made of blocks: text, heading, notice, facts, table, links, code and form (text, number, e-mail, password, textarea, select, checkbox and hidden fields). The panel draws them in its own design, escapes all text and adds its CSRF protection to forms, so an extension page looks like the rest of the panel, works in light and dark mode, and cannot run scripts on the panel's origin. Hooks that veto or modify Hooks are available for domain.create, customer.create, subscription.create, database.create, mail.account.create and plan.save. A refusal shows the extension's message to the user and is logged as extension.hook_denied. A hook can also change fields: Action Fields an extension may change customer.create name, email mail.account.create quota_mb plan.save the package's limits and settings (not its name or owner) The panel then runs the action again with the new values through all its usual checks, and logs which extension changed which field (extension.hookchanged). If the extension does not answer in time, hookfailure decides: allow (the default) or deny. Hooks apply to actions through the panel and the API, not to the CLI. The extension's API key With \"api\": \"read\" or \"api\": \"admin\" the extension receives its own key at every start, acting as the user ext-<name>, so its actions are visible under that name in the activity log. The key is replaced at each start and revoked when the extension is disabled or removed. An extension key is never a full administrator key: accounts, settings, the system and extensions themselves are always out of reach, and so are actions that affect the whole server or move customers around, such as firewall changes, packages, resellers and transfers. Without apipermissions the key reaches all the regular parts of the API (writing with admin, reading with read); apipermissions narrows it further, such as [\"domains:read\", \"mail:write\", \"stats:read\"]. No API key, an extension's included, can manage keys or log in as a customer. Give every extension the narrowest list it needs. Access to webspaces An extension has no access to webspaces unless three parties agree: the manifest asks for it with a reason (\"webspace\": {\"access\": \"read\", \"reason\": \"Looks for outdated plugins.\"}), the administrator approves it, and for each subscription the customer, their reseller or the administrator grants it. The effective level is the lowest of the three, consent is given in a panel session and never with an API token, and every file read or written is logged. Files are always accessed as the subscription's own system user, never as root. HTTP extensions An extension can also be a web service in any language, on the same server or elsewhere: use \"url\": \"https://ext.example.nl/rpc\" instead of command. The panel sends the same JSON-RPC messages as POST requests, signed like webhooks with X-Berth-Extension, X-Berth-Timestamp and X-Berth-Signature (HMAC-SHA256 over <timestamp>.<body> with a shared secret). Check the signature and the time, and answer 401 when they do not match. Events that do not get a 2xx are delivered again, so process them idempotently on their id. Instead of a shared secret, an HTTP extension can use mutual TLS: the panel has its own CA for extensions and presents a client certificate for that extension, renewed automatically before it expires. berth extension ca and berth extension cert <name> show the CA and the certificate. Installing On the server, as root, from a directory owned by root: sudo berth extension install /opt/build/crm-sync berth extension list From the panel, only extensions signed by a trusted publisher can be installed. Only root can add a publisher, after checking the key's fingerprint with the publisher, so a compromised panel cannot add a publisher of its own: sudo berth extension trust add acme --key-file acme-publisher.pub berth extension trust list Then Settings → Extensions → Install extension: give the https address of the release or upload the archive. The panel shows what the extension asks for (events, pages, routes, hooks, API access) and who signed it; you confirm, with four-eyes approval when enabled. The agent verifies the signature over name, version, SHA-256 and size again before installi"},{"s":"ai-assistant-and-mcp","l":"en","t":"AI assistant and MCP","d":"Connect AI providers with your own keys, sell or grant AI credits per subscription, use the in-panel assistant and website builder, and let Claude, ChatGPT or Cursor work in the panel through the MCP endpoint at /mcp.","c":"automation","g":["ai","mcp","assistant","claude","chatgpt","credits","oauth"],"h":[["connecting-providers-and-models","Connecting providers and models"],["the-credit-ledger","The credit ledger"],["selling-credits-in-your-own-shop","Selling credits in your own shop"],["resellers","Resellers"],["the-assistant-in-the-panel","The assistant in the panel"],["the-ai-website-builder","The AI website builder"],["connecting-your-own-ai-client-over-mcp","Connecting your own AI client over MCP"],["with-oauth-claude-ai-chatgpt","With OAuth (Claude.ai, ChatGPT)"],["with-a-key-claude-code-cursor-scripts","With a key (Claude Code, Cursor, scripts)"],["rights-ai-read-ai-write-ai-full","Rights: ai:read, ai:write, ai:full"],["the-tools","The tools"],["what-an-ai-connection-can-never-do","What an AI connection can never do"],["related","Related"]],"x":"Berth has two kinds of AI support. Inside the panel there is an assistant that answers questions about a subscription and proposes changes, and a website builder that drafts a page. Both run on AI providers that you, the host, connect with your own keys, and customers pay for them with credits. Separately, the panel is an MCP server: anyone with a login can connect their own AI client, such as Claude, ChatGPT or Cursor, and let it read or manage what that login may manage. No AI provider is built in or switched on by default. Connecting providers and models Panel: Settings → AI and credits → Add provider, then Add model. Providers: Anthropic, OpenAI, Mistral, or any OpenAI-compatible service (for example a self-hosted Ollama) with its own address. The API key is stored encrypted and never shown again. Models: the model name at the provider, a name customers see, whether customers may choose it, and the price in credits per 1,000 input tokens and per 1,000 output tokens. berth ai provider --name anthropic --kind anthropic --key-file - berth ai model --provider anthropic --model <model-name> --label \"Assistant\" \\ --price-in 0,003 --price-out 0,015 berth ai plan --plan basis --enable --monthly 5 berth ai plan switches AI on for a package with a monthly allowance in credits. Credits are your own unit: you decide what a credit costs your customers and how it relates to what the provider charges you. The credit ledger Every subscription has its own ledger, shown on the subscription's AI credits page and with berth ai credits --sysuser acme. The monthly allowance from the package is added every month and expires at the end of it. Deposits add credits, optionally with an expiry: after a payment, or as a goodwill gesture. A reference such as an order number is booked only once. Credits are spent oldest expiry first. At zero, AI stops for that subscription. Every call reserves its estimated cost before it goes to the provider, so concurrent calls cannot spend more than the balance. The customer gets a notice when 80 % of the monthly allowance is used, and when the credits run out. berth ai deposit --sysuser acme --credits 20 --ref ORDER-1042 --expires-days 365 berth ai requests # open credit requests from customers berth ai decide 12 --approve Customers can request credits from the panel; you approve (which deposits immediately) or reject with a reason they see. Selling credits in your own shop You can link the AI credits page to your own webshop. The panel builds a signed link to the shop with the subscription and a nonce; after payment, the shop reports the purchase to POST /api/v1/ai/credits/deposit, signed with a shared secret in the same way as webhooks (X-Berth-Timestamp and X-Berth-Signature). The same order is booked only once, so the shop may safely retry. Resellers A reseller can run their own shop with their own secret, booking only on their own customers' subscriptions. Because AI usage runs on your provider keys, you give each reseller a monthly AI budget for all their customers together (berth reseller create|update --ai-credits). When it is used up, AI stops for that reseller's customers until the month is over. See Resellers and white label. The assistant in the panel On a subscription's AI credits page, Ask the assistant opens a conversation with the chosen model about that subscription. The assistant works with the panel's MCP tools and the user's own rights: it sees only what the user may see. Reading happens immediately: usage, DNS records, mail settings, recent errors. Changes are proposals. The assistant describes what it wants to do; nothing changes until the user confirms that specific proposal. It cannot delete or overwrite. Destructive tools are not available to it at all; for those it points the user to the panel. It is instructed to treat content from files, logs and other tool output as data, not as instructions. Every step costs credits; the cost and remaining balance are shown with each answer. Conversations are not kept unless the user chooses to save them; saved conversations are deleted after 90 days. The AI website builder Under a domain, Website builder generates a page from a description, or refines the current draft. The draft is stored outside the document root and shown in a sandboxed preview, so it is never public until you publish it. Publish writes it as the site's index.html and keeps the previous page. Like the assistant, it uses credits. Connecting your own AI client over MCP The panel speaks the Model Context Protocol at https://<panel hostname>/mcp (Streamable HTTP, JSON-RPC 2.0). Claude.ai, ChatGPT, Claude Code, Cursor and other MCP clients can connect. This does not use the host's credits: the AI runs in the user's own client. With OAuth (Claude.ai, ChatGPT) Add a custom connector with just the MCP address. The client registers itself, you land on a consent page of the panel, sign in if needed, and choose the rights. The connected app appears under Account → AI connection as a Connected app, where you can revoke it. Berth implements OAuth 2.1 for this: authorisation server and protected-resource metadata (RFC 8414, RFC 9728), dynamic client registration (RFC 7591) for public clients with PKCE (S256), and token revocation (RFC 7009). With a key (Claude Code, Cursor, scripts) Account → AI connection → Create key, choose the rights, optionally one subscription and a validity. Or on the server: berth token create --login acme --name claude-laptop --scope ai:write --sysuser acme --days 90 The page shows how to add the key to your client, for example for Claude Code: claude mcp add --transport http berth https://panel.example.nl/mcp \\ --header \"Authorization: Bearer <key>\" Rights: ai:read, ai:write, ai:full Scope Panel label Tools available ai:read Read only Only reading tools ai:write Read and change Reading, creating and changing ai:full Full within the subscription Also deleting, restoring backups and replacing mailbox, database or FTP passwords The server tells the model which level its token has, and marks destructive tools so that clients can ask for confirmation. Replacing a mailbox or database password also requires a key with Allow sensitive actions, just as in the REST API. An auditor only ever gets reading tools, without file contents. The tools There are more than 220 tools: about 120 that read, about 90 that create or change, and 21 that delete or overwrite. They cover domains and their settings, mail, DNS, databases, backups and restores, apps and containers, the software installer, cron, SSH access, statistics and logs, uptime, alerts and background tasks, and for administrators also services, updates, vulnerabilities, migrations, SIEM and the fleet. Every tool runs through the same panel functions as the UI and REST API, with the same scope, validation and audit logging. What is not in the list cannot be done. What an AI connection can never do There are no tools for the login's own password, two-step verification, API keys or panel sign-in, and none to add or remove domains. AI keys work only on /mcp; the REST API and the web interface refuse them, so a leaked AI key cannot be used elsewhere in the panel. Browser session cookies are not accepted on /mcp. Each key's calls are rate-limited. Every change is recorded in the activity log under the login's name with the key's name. Revoking a key or app takes effect immediately. Related REST API: tokens and scopes in general. Customers, subscriptions and packages: switching AI on per package. Roles and permissions: what each login may do, and therefore what its AI may do."},{"s":"home-assistant","l":"en","t":"Home Assistant integration","d":"Show server health, updates, vulnerabilities, backups, certificates and per-subscription usage as Home Assistant sensors, with a read-only key and a pinned certificate.","c":"automation","g":["home assistant","sensors","monitoring","dashboard","integration"],"h":[["what-you-get","What you get"],["requirements","Requirements"],["setting-it-up","Setting it up"],["security","Security"],["licence","Licence"],["related","Related"]],"x":"The Berth integration for Home Assistant turns the state of your server into ordinary Home Assistant sensors: CPU and memory, disks, failed services, pending updates, vulnerabilities, the last backup, unreachable sites and expiring certificates. You can put them on a dashboard, get a phone notification when a backup fails, or blink a lamp when a site goes down. The integration only reads; nothing in Home Assistant can change the panel. What you get What appears depends on who creates the link: an administrator sees the server, a customer or reseller only their own subscriptions. Server (administrators and auditors): CPU, load, memory and swap, network in and out, last boot; per disk: usage, free space and inodes; running and failed services; pending updates, security updates, and whether a reboot is needed; vulnerabilities by severity, including how many are fixable and how many are actively exploited; the problems found by the last diagnosis. For every account: the last backup, unreachable sites and the next certificate to expire. Alarms (binary sensors): update needed, reboot needed, service failed, backup failed, disk almost full, critical vulnerability, site unreachable, certificate expiring. Per subscription, optionally: disk space (also against the package limit), traffic this month, last backup and certificate, as one device per subscription. Customers and resellers always get their own subscriptions; for an administrator this is a choice when creating the link. New disks and subscriptions show up by themselves; one that disappears becomes unavailable. Requirements Home Assistant 2025.1 or newer. The integration needs no extra Python packages and is available in English and Dutch. The panel must have its own hostname with a certificate (see Certificates), because the integration only connects over https. The link is made by the account owner. Restricted logins cannot create one. Setting it up In Berth: Settings → Integrations → Home Assistant (for resellers and customers: Integrations → Home Assistant) → Create link. Choose how often Home Assistant refreshes (from seconds up to an hour; one minute by default), optionally the addresses it may connect from (your router's public address or a range), and, as an administrator, whether subscriptions are included. Download gives a zip with the integration and a file berthconnection.json that holds the panel address, a new key, the pinned certificate fingerprint and the interval. The same details are shown once as a pairing code** starting with BERTH1-. Unpack the zip in the Home Assistant configuration directory (the one with configuration.yaml), so that custom_components/berth/ exists, and restart Home Assistant. In Home Assistant: Settings → Devices & services → Add integration → Berth. The integration finds the connection file, shows which panel and account it will link, tests the connection and then deletes the file, because it contains the key. Without access to the configuration directory (for example on Home Assistant OS without a file add-on), install the integration files another way and paste the pairing code when adding the integration. You can also enter the address, key and fingerprint by hand. The refresh interval can be changed later in the integration's options. Linking the same account on the same panel again updates the existing entry instead of creating a second one. On the server the same is available as: berth homeassistant zip --ip 203.0.113.7 -o berth-ha.zip berth homeassistant zip --code # print the pairing code instead berth homeassistant keys # keys with last seen and requests per hour berth homeassistant revoke --id 4 berth homeassistant state # the JSON Home Assistant receives A listing in HACS, so that updates arrive through Home Assistant, is planned. Until then, install from the zip; it contains the integration version that comes with your Berth version. Security A read-only key for one purpose. The key has the scope monitor:read and works on exactly one endpoint, the status the integration reads. Every other API path, including other reads, is refused. It cannot create keys or change anything. Requests per key are rate-limited; above the limit Home Assistant keeps its last values. Optionally the key only works from the addresses you chose. A pinned certificate. The integration pins the SHA-256 fingerprint of the panel's certificate. When the panel renews its certificate, the integration accepts the new one only if a trusted certificate authority issued it for the panel's hostname, and then pins that one. A self-signed certificate that changes requires a new link. Turning certificate verification off is not possible, and the integration does not follow redirects, so the key never travels to another address. No key lying around. The panel does not store the key after creating it; the download is available briefly and only to the person who made it. After pairing, the key is only in Home Assistant's configuration. Logs and diagnostics show at most berth_ and the last four characters. Visible and revocable. The panel page lists each key with when and from which address it was last used, the integration version and the number of requests per hour. Revoking works immediately: Home Assistant gets a refusal and asks for a new link. Licence The integration is open source under the MIT licence. Related Statistics and metrics: Prometheus metrics for Grafana and similar tools. Notifications and alerts: alerts by mail, chat, push or SMS. REST API: the monitor:read scope among the other token scopes."},{"s":"gdpr","l":"en","t":"GDPR (AVG)","d":"Use Berth's data register, customer data export, erasure with a signed statement, log retention and IP masking to meet your GDPR obligations as a host, with all data on servers you control and nothing loaded from third parties.","c":"compliance","g":["gdpr","avg","privacy","data protection","erasure","dpa"],"h":[["data-stays-on-your-servers","Data stays on your servers"],["the-data-register","The data register"],["export-the-right-of-access-and-portability","Export: the right of access and portability"],["erasure-with-a-signed-statement","Erasure with a signed statement"],["log-retention-and-ip-masking","Log retention and IP masking"],["a-processing-agreement-template","A processing agreement template"],["security-of-processing","Security of processing"]],"x":"As a hosting provider you process personal data for your customers: their contact details, their visitors' IP addresses in logs, the mail in their mailboxes. The GDPR (in Dutch: AVG) gives those people rights, and gives you duties. Berth has tools for the parts a hosting panel can handle: knowing where data is, handing it over, erasing it with proof, and keeping logs no longer than needed. This article describes those tools. It is not legal advice. Your own processing agreements and policies still apply. Data stays on your servers Berth is self-hosted. The panel, its database, customer sites, mail and databases all run on servers you control, and backups go to the locations you choose, encrypted before they leave the server. See Backups overview. Nothing is loaded from third parties. The panel's pages load scripts, styles, fonts and images only from the panel itself. A strict Content Security Policy enforces this. There are no external fonts, CDNs, trackers or analytics, so opening the panel tells no other company who your administrators and customers are. Apart from connections you set up yourself (backup places, DNS providers, log drains, webhooks, notification channels, a SIEM), the server's own outbound connections carry no customer content, and most can be switched off: Connection What it sends Can be switched off Licence check Licence information only No (sites keep running if it fails, see Licence and trial) Updates of Berth and the OS Normal package downloads Use offline bundles instead Certificates (Let's Encrypt) The domain names on the certificate and the contact address; the names are public in Certificate Transparency logs anyway Needed for HTTPS; you can choose another certificate authority Vulnerability data Downloads only; the optional NVD lookup sends a CVE number Yes, offline mode with signed bundles Breach-password check The first five characters of a password's SHA-1 hash (k-anonymity) Yes, see Sign-in security Country data for geoblocking and sign-in alerts Download of a database; lookups happen locally Optional; without it, sign-in alerts report new devices only AI features Only when you configure an AI provider, and then only what a user sends to it Off unless you configure a provider, see AI assistant and MCP Core Web Vitals (Google PageSpeed Insights) The site's address Off by default; switched on per site The data register For each customer Berth can show where their data is and how long it is kept: account and login details, the activity log, notification channels, monthly reports, and per subscription the system user, website files, logs, certificates, mailboxes, databases, scheduled tasks, FTP accounts, SSH keys, uptime monitors, local backups and statistics. It also lists the external backups and the current retention periods. Administrators and resellers: the customer's page → Data (GDPR), or berth privacy register --customer acme. Customers themselves: Account → My data, where they see where their data is, how long it stays, and can download it. The register is a good starting point for the record of processing activities you need for your own administration. Export: the right of access and portability The export contains everything the panel knows about a customer as JSON: the account, the logins, the subscriptions with their domains, mailboxes, aliases, databases, scheduled tasks, FTP accounts, SSH keys and uptime monitors, the notification channels, the data register and the customer's entries in the activity log. Secrets are never included: no password hashes, keys or tokens. The content itself (website files, mail, database data) is not in the JSON. That comes from a backup or a transfer file. In the panel: Data (GDPR) or My data → download. On the server: berth privacy export --customer acme > acme.json Downloading an export is a sensitive action and asks for a fresh confirmation, see Sign-in security. Erasure with a signed statement When a customer leaves and asks to be forgotten, an administrator or the customer's reseller erases them in one go: every subscription with its system user, websites and logs, mailboxes, databases, scheduled tasks, FTP accounts, local backups, local history, uptime monitors and statistics, then the notification channels, the logins and the customer record. Open the customer's Data (GDPR) page and go to the erasure section. Enter a reason and type the customer's login to confirm. Berth erases everything and produces an erasure statement: what was removed, when, by whom, on which server and why. berth privacy erase --customer acme --confirm acme --reason \"Contract ended, erasure requested on 2026-10-28\" The statement is signed with the installation's Ed25519 key, and lists what was deliberately kept: Activity log entries about the customer stay until the log's retention period ends. They are needed for accountability, and removing them would break the hash chain. External backups, which are encrypted, still contain the data until they expire under their own retention policy. The statement itself, with the customer's name and login, as proof of the erasure. The names of the customer's removed domains also stay reserved for 30 days, together with the former customer's login, so that no one else can take over their mail or certificates while DNS still points here. See Domains and subscriptions; an administrator can release them earlier with berth domain release. Give the statement to the customer as proof. Anyone can check that it is genuine and unaltered: berth privacy verify statement.json Statements are kept under Settings → Privacy, section Erasure statements, for download later. Log retention and IP masking Web server logs contain visitors' IP addresses, which are personal data. Keep them only as long as you need them. Under Settings → Privacy, section Retention periods, set: how long access logs, error logs and PHP logs of websites are kept; how long the system journal with the mail logs is kept; after how many days IP addresses in rotated access logs are masked. Masking keeps the logs useful for statistics and troubleshooting while removing the individual: an IPv4 address keeps its first three parts (203.0.113.0), an IPv6 address its first 48 bits (2001:db8:1::). Masking must happen before the logs are deleted. berth privacy settings # show berth privacy settings --access-days 30 --mask-after 7 berth privacy mask-logs # mask existing old logs now Log drains to an external log service can mask IP addresses too, see Logs and log drains. The activity log has its own retention period, see Audit trail and approvals. A processing agreement template Under Settings → Privacy you can download a template for a data processing agreement (verwerkersovereenkomst) between you and your customers, in Markdown, or print it with berth privacy dpa-template. Have a lawyer review it before you use it. Security of processing Article 32 of the GDPR requires appropriate technical and organisational measures. For an overview of what Berth does, see Security model. For proof towards a customer, a supervisory authority or an auditor, see Evidence for audits."},{"s":"nis2-and-incidents","l":"en","t":"NIS2 and incidents","d":"Record security incidents in an append-only dossier, let Berth run the NIS2 reporting clocks of 24 hours, 72 hours and one month, generate the text for your CSIRT, and export the dossier as a signed ZIP.","c":"compliance","g":["nis2","incident","csirt","incident response","reporting","dossier"],"h":[["what-nis2-asks","What NIS2 asks"],["record-an-incident","Record an incident"],["the-dossier","The dossier"],["the-reporting-clocks","The reporting clocks"],["text-for-the-csirt","Text for the CSIRT"],["export-the-dossier","Export the dossier"],["beyond-a-single-incident","Beyond a single incident"]],"x":"When something goes wrong, such as a compromised account, a hacked site that was used to attack others, or an outage caused by an attack, two things matter afterwards: a complete, trustworthy record of what happened and what you did, and, for organisations covered by NIS2, reporting to the CSIRT on time. Berth's incident dossier handles both, under Security → Incidents. What NIS2 asks Under article 23 of the NIS2 directive, an essential or important entity reports a significant incident to its CSIRT or competent authority in three steps: Deadline Report Content 24 hours after becoming aware Early warning Is it suspected to be malicious or unlawful? Could it have cross-border impact? 72 hours after becoming aware Incident notification First assessment of severity and impact, indicators of compromise One month after the notification Final report Root cause or type of threat, measures taken and ongoing, cross-border impact The clock starts when the organisation becomes aware of the incident, not when it began. Berth records both moments separately. Record an incident Go to Security → Incidents and choose Record incident. Enter a title, What happened, the affected customers, domains or services, and the severity: low, medium, high or critical. Set When: when it was detected and when the organisation became aware. Both default to now. Mark it as significant if it falls under NIS2 reporting. The reporting clocks only run for significant incidents. berth incident create --title \"Webshell on shop.example.com\" --severity high --significant \\ --description \"Webshell found in the uploads directory, used to send spam\" \\ --affected shop.example.com,acme --detected \"2026-10-28 09:40\" --aware \"2026-10-28 10:15\" You can also create an incident with one click from a finding of the audit watchdog (see Audit trail and approvals), or as a mitigation for a vulnerability you cannot fix yet (see Vulnerability management). The dossier Each incident has a Log that can only grow: every change of status, severity, times or NIS2 details is added as an entry, together with your own notes. Nothing is overwritten or removed, so the dossier shows the course of events as it happened. Status: open, contained, resolved or closed. Add notes as you work: what you checked, what you found, who you informed. Correct the detected or aware time if you learn more. The deadlines move along, and the correction is logged. berth incident note --id 4 --text \"Webshell quarantined, FTP password of acme reset\" berth incident update --id 4 --status contained berth incident show --id 4 berth incident list The reporting clocks For a significant incident, the incident page shows the three deadlines under Reporting deadlines, and Incidents lists the deadlines that need attention. The panel reminds administrators four hours before a deadline and again when it has passed. When you have made a report, record it with Record report to the CSIRT, with the time and the CSIRT's reference. That deadline is then done. berth incident report --id 4 --kind early_warning --ref CSIRT-2026-0815 berth incident report --id 4 --kind notification berth incident report --id 4 --kind final_report Text for the CSIRT Under Reporting details (NIS2), fill in what each report needs: suspected malicious or unlawful: yes, no or unknown; possible cross-border impact: yes, no or unknown; severity and impact; indicators of compromise; type of threat or root cause; measures taken and ongoing. Berth then produces the text of the early warning, the notification or the final report, with the fields article 23(4) asks for in each step, ready to copy into your CSIRT's reporting portal. Fields that are still empty are marked, so you see what is missing before you send it. The generated text is in Dutch. berth incident nis2 --id 4 --malicious ja --cross-border nee \\ --impact \"Outbound spam from one subscription for about two hours; no data accessed\" \\ --iocs \"203.0.113.77; uploads/cache.php\" \\ --root-cause \"Outdated form plugin\" --mitigation \"File quarantined, plugin updated, password reset\" berth incident csirt --id 4 --kind early_warning Export the dossier Download the whole dossier as a signed ZIP: a summary as HTML and PDF, the incident and its log, and the security timeline and activity log from the day before discovery until closure. A manifest.json lists every file with its SHA-256 and is signed with the installation's Ed25519 key, so the recipient can check that nothing was changed. berth incident export --id 4 --out incident-4.zip berth evidence verify incident-4.zip Hand it to your CSIRT, your insurer, a customer or an auditor. Auditors with the auditor role can read incidents and download dossiers themselves. Beyond a single incident The audit watchdog helps you detect incidents in the first place. The security timeline and the evidence pack show what happened over a longer period, see Evidence for audits. Notifications and alerts decides who is woken up, and how."},{"s":"evidence-for-audits","l":"en","t":"Evidence for audits","d":"Produce a signed evidence pack for BIO2, ISO 27001 and NIS2 audits, an access review as CSV, read-only access for auditors, and signed monthly reports per customer.","c":"compliance","g":["audit","evidence","iso 27001","bio2","nis2","access review","auditor"],"h":[["the-evidence-pack","The evidence pack"],["verify-a-pack","Verify a pack"],["how-it-maps-to-the-frameworks","How it maps to the frameworks"],["every-function-mapped-to-a-control","Every function mapped to a control"],["access-review","Access review"],["give-the-auditor-their-own-login","Give the auditor their own login"],["monthly-reports-for-customers","Monthly reports for customers"],["see-also","See also"]],"x":"An audit asks for proof: who has access, whether changes are logged and the log is intact, whether patches are applied on time, whether backups exist and can be restored. Collecting that by hand from a hosting server takes days, and screenshots prove little. Berth produces it on demand, signed, so an auditor can check that nothing was altered after it left the server. The evidence pack Go to Security → Evidence, choose a period, and click Download evidence pack. You get one ZIP with a file per topic and a summary: File What it shows samenvatting.html, samenvatting.pdf One-page summary with the status of every topic below toegang.csv Access review: every account with role, second step, last sign-in, sessions, tokens and allowed addresses audit.jsonl, auditketen.json The activity log for the period, and the result of verifying its hash chain against the agent's anchors wijzigingen.jsonl Configuration changes in the period, with diffs patches.json Pending updates (security and other) and known CVEs cve-register.csv, cve-register.json, exceptions.csv The vulnerability register with deadlines, and the recorded exceptions with reason and expiry sbom.cdx.json, vex.json Software bill of materials (CycloneDX) and vulnerability statements (VEX) backups.json Backups in the period, restore tests and their results, and the external backup locations tls.json Certificate inventory with expiry dates, and the TLS profile hardening.json The hardening check with its score and the points that fail integriteit.json The last integrity check against the baseline and the critical-package check tijdlijn.csv Timeline of security events: sign-ins, access, security, recovery, maintenance and data manifest.json SHA-256 of every file, signed with the installation's Ed25519 key The default period is the last 30 days. The page also offers presets, and you can choose any range up to about a year. berth evidence export --from 2026-07-01 --to 2026-09-30 --out evidence-q3.zip berth evidence timeline --from 2026-07-01 --to 2026-09-30 Verify a pack The recipient checks the signature and every file, outside the panel, with the installation's public key: berth evidence verify evidence-q3.zip # on the server that made it berth evidence verify evidence-q3.zip --key <public key, base64> # anywhere else A file that was edited, added or removed after export makes the check fail. How it maps to the frameworks The pack does not make you compliant. It gives an auditor the technical evidence for controls that are usually asked about. Your policies and procedures remain your own. Topic in the pack ISO 27001:2022 Annex A NIS2 article 21(2) Access review, roles, second step 5.15–5.18, 8.2, 8.5 (i) access control, (j) multi-factor authentication Activity log and chain verification 8.15 logging (b) incident handling, (f) assessing effectiveness Configuration changes 8.9 configuration management, 8.32 change management (e) maintenance Patches, CVE register, exceptions, SBOM 8.8 management of technical vulnerabilities (e) vulnerability handling, (d) supply chain Backups and restore tests 8.13 information backup (c) backup management and disaster recovery TLS inventory 8.24 use of cryptography (h) cryptography Hardening and integrity 8.9, 8.16 monitoring (f) assessing effectiveness Timeline 8.16 monitoring, 5.24–5.28 incident management (b) incident handling Every function mapped to a control Behind that table is one register that links every function of the panel to the ISO 27001:2022 Annex A controls, and the NIS2 article 21(2) measures, it provides evidence for. A function that has nothing to do with security, such as branding, is marked as not applicable with a reason. A test in the product fails when a new function has no mapping, so the register cannot fall behind. Today it covers 45 of the 93 Annex A controls with around 75 functions; the rest are organisational, people and physical controls that remain your own. The evidence pack contains the register as controls.csv and a table per control with the evidence that supports it, in the HTML and the PDF summary. The Evidence page shows the same table, and the command line prints it: berth evidence controls berth evidence controls --csv > controls.csv BIO2, the baseline for Dutch government organisations, builds on the same ISO 27002 controls, so the same evidence applies. Incident reporting under NIS2 article 23 is covered by the incident dossier, see NIS2 and incidents. Access review Periodic access reviews are a standard control: does everyone with access still need it, at the right level? Berth shows all accounts in one list under Settings → Access, section All accounts, with role, customer, whether they have a second step, last sign-in, active sessions, API tokens, rights of restricted logins and allowed addresses. Export (CSV) downloads the list for your review spreadsheet. berth admin access Disable or remove what is no longer needed, end stale sessions, revoke unused tokens, and keep the CSV with your review notes. The same list is toegang.csv in the evidence pack. Certificates can be exported too, with CSV for audits on Security → Certificates. Give the auditor their own login Rather than sending files back and forth, give the auditor a read-only login: printf '%s\\n' \"$PASSWORD\" | berth admin create --login auditor-acme --role auditor --email auditor@example.nl An auditor sees all lists, settings, logs, the activity log, the access review, certificates, incidents, the vulnerability register, and can download the evidence pack and incident dossiers. They change nothing, and customer content and secrets stay out of reach: no webspace files, backups, database dumps or customer mail, and secret values show as (hidden). See Roles and permissions. Auditors can sign in through your identity provider like other staff, see Single sign-on. If an auditor needs to act briefly, they can request temporary administrator rights, which another administrator approves, see Audit trail and approvals. Monthly reports for customers Your customers have audits of their own, and they ask their host for proof. Berth makes a monthly report per customer: availability from the uptime monitoring, backups, updates (WordPress and others), WAF activity, certificates, the security score of their sites and malware scans. Each report is signed with the installation's key and kept in the panel. Customers find their reports under Reports, administrators under the customer's page → Monthly reports. Reports can be mailed automatically as PDF. The regular report deliberately leaves out details about the server itself. When a customer needs them for an audit, an administrator or auditor creates an audit appendix: the same report including the server's external backups and restore tests, system updates and hardening, signed and recorded in the activity log. berth report settings # generate and/or mail monthly berth report list --customer acme berth report audit --customer acme --month 2026-09 --pdf acme-2026-09-audit.pdf berth report verify report.json See also Security model: the overview of the measures the evidence is about. Restore tests: proving that backups come back. GDPR: data register, export and signed erasure."},{"s":"faq","l":"en","t":"Frequently asked questions","d":"Short answers about supported systems, migration and downtime, DNS, licensing and price, backups, language, data location, Docker, WordPress, mail deliverability and more.","c":"reference","g":["faq","questions","answers","licence","migration","support"],"h":[["the-product","The product"],["what-is-berth","What is Berth?"],["which-operating-systems-are-supported","Which operating systems are supported?"],["what-does-the-server-need","What does the server need?"],["is-the-panel-available-in-english","Is the panel available in English?"],["can-one-panel-manage-several-servers","Can one panel manage several servers?"],["is-berth-open-source","Is Berth open source?"],["licence-and-price","Licence and price"],["what-does-it-cost","What does it cost?"],["is-there-a-trial","Is there a trial?"],["what-happens-when-the-licence-ends","What happens when the licence ends?"],["how-do-i-get-early-access","How do I get early access?"],["migration","Migration"],["can-i-migrate-from-plesk-cpanel-or-directadmin","Can I migrate from Plesk, cPanel or DirectAdmin?"],["do-my-customers-have-to-change-dns","Do my customers have to change DNS?"],["how-much-downtime-does-a-migration-cause","How much downtime does a migration cause?"],["can-i-keep-plesk-running-during-the-migration","Can I keep Plesk running during the migration?"],["daily-operation","Daily operation"],["how-are-backups-made","How are backups made?"],["can-a-customer-restore-a-single-file-or-mailbox","Can a customer restore a single file or mailbox?"],["does-berth-support-docker","Does Berth support Docker?"],["what-about-wordpress","What about WordPress?"],["will-mail-from-my-server-be-delivered","Will mail from my server be delivered?"],["is-two-step-verification-required","Is two-step verification required?"],["can-i-automate-it","Can I automate it?"],["data-and-security","Data and security"],["where-is-my-data","Where is my data?"],["what-if-a-customer-s-change-breaks-the-web-server-configuration","What if a customer's change breaks the web server configuration?"],["can-i-install-without-internet-access","Can I install without internet access?"]],"x":"Short answers to the questions people ask most, each with a link to the article that explains it properly. The product What is Berth? A self-hosted web hosting control panel written in Go. It runs web, PHP, mail, DNS, databases, backups and applications on your own server, and was built to replace Plesk while keeping its directory layout. See What is Berth. Which operating systems are supported? Debian 13 (the primary platform), Ubuntu 24.04 and 26.04 LTS, and AlmaLinux and Rocky Linux 10, on amd64 and arm64. Enterprise Linux 9 is not supported. See System requirements. What does the server need? A fresh server with at least 2 vCPU and 4 GB of memory; for production, 4 vCPU and 8 GB is a better starting point. You also need a fully qualified hostname, a DNS name for the panel, and a VPN interface (WireGuard or Tailscale), because administrator SSH is only reachable over the VPN after installation. See System requirements. Is the panel available in English? Yes. The panel is available in English, Dutch, German, French, Spanish, Polish, Ukrainian and Italian. Each login chooses its own language (or follows the browser), and mail from the panel goes out in the recipient's language. WordPress and Drupal sites can be installed in other languages. Can one panel manage several servers? Each server runs its own panel. With Fleet a normal Berth installation can watch and manage many such servers together: status, updates in waves, vulnerabilities and single sign-on to each member. Is Berth open source? Berth itself is commercial software, licensed per server. It is built on well-known open-source components: nginx, Apache, PHP-FPM, Postfix, Dovecot, rspamd, ClamAV, OpenDKIM, Roundcube, MariaDB, PostgreSQL, BIND, Unbound, ProFTPD, restic, Podman, Valkey, ModSecurity and Coraza with the OWASP Core Rule Set, nftables and fail2ban. Libraries compiled into Berth itself are permissively licensed (MIT, BSD, Apache or MPL). The Home Assistant integration is MIT-licensed. See Architecture. Licence and price What does it cost? Prices are announced at launch. There is one licence per server, and it unlocks everything; there are no editions or paid modules. See Licence and trial. Is there a trial? Yes: every server starts with a 30-day trial with everything switched on, without a licence. What happens when the licence ends? Nothing goes offline. Existing sites, mail, databases and backups keep running and stay manageable. What stops is creating new customers, subscriptions, domains, resellers and imports, and installing Berth updates. See Licence and trial. How do I get early access? Berth is in early access for hosting companies, agencies and organisations that run their own servers. Request it through the contact page. Migration Can I migrate from Plesk, cPanel or DirectAdmin? Yes. Berth takes over whole servers over a read-only SSH connection, or imports backup files from all three. Customers keep their passwords, mail clients do not download everything again, and databases keep their names and passwords. See Migration overview. Do my customers have to change DNS? Not when the new server can take over the old server's IP addresses, for example on the same virtualisation host or with a movable IP at the same provider. Then the cutover is an address takeover and nothing changes for customers: no DNS, no mail client settings, no new passwords. If the addresses cannot move, DNS has to point to the new server; Berth updates it itself for domains at a linked DNS provider. See Migrating a server. How much downtime does a migration cause? Everything is copied in advance while the old server keeps running, and you can sync as often as you like. Downtime is limited to the cutover window: the final sync and the address takeover, usually 30 to 90 minutes for a whole server. See Migrating a server. Can I keep Plesk running during the migration? Yes, and you should. Berth only reads from the source server, at the lowest CPU and IO priority, and its source watch can slow down or pause the copy when the source sites get slower. Nothing on the old server is changed. Until you open the new server to customers, going back is free; after that, the rollback still works, but changes customers made on Berth stay on Berth. See Parity checks for comparing both servers before you switch. Daily operation How are backups made? You choose places (the server itself, a local hourly history, S3, a NAS or another restic repository) and schedules that say what goes where and how long it is kept. External copies are deduplicated and encrypted, and S3 copies can be made immutable with Object Lock. Regular automatic restore tests in a sandbox prove that backups can actually be restored. See Backups overview. Can a customer restore a single file or mailbox? Yes, from the hourly history or an archive: a single file or folder, a mailbox or one mail folder, or a database, next to the original or over it. See Restoring files, mail and databases. Does Berth support Docker? Berth runs containers with rootless Podman, one user namespace per subscription, without a Docker daemon. Docker images and compose stacks work, and there is a one-click catalogue. An existing Docker installation on the server can keep running next to it. See Containers. What about WordPress? WordPress, Joomla, Drupal, Nextcloud and Matomo can be installed from the panel. Core files are checked against the vendor's checksums, staging copies can be pushed back to live, and smart updates test an update on a temporary copy before touching the live site. See Software installer and Smart updates. Will mail from my server be delivered? Berth sets up what receivers check: DKIM signing, SPF, DMARC, MTA-STS, TLS reporting and DANE, and it reads DMARC reports so you can see which sources fail. Each subscription has an outbound budget and PHP mail() is off by default, which keeps a hacked site from ruining the server's reputation. See Mail authentication and Outbound mail. Is two-step verification required? No. Two-step verification with an authenticator app or passkeys is each user's own choice and takes a minute to set up; we recommend it for every account. Single sign-on through your own identity provider is also available. See Sign-in security. Can I automate it? Everything in the panel is available through a REST API with an OpenAPI description and through the berth CLI. Modules for WHMCS and HostBill are available; see Billing integration. Data and security Where is my data? On your own server. Berth is not a hosted service: sites, mail and databases stay where you install it. Backups go only to places you configure, each marked as inside or outside the EU, and the S3 setup wizard offers EU regions only. AI features use only providers you connect yourself, and none are on by default. See GDPR. What if a customer's change breaks the web server configuration? It does not take the server down. Every configuration change is rendered, tested with the service's own check (such as nginx -t), swapped in atomically and only then reloaded; a failing change is rolled back. If one customer's file is invalid, only that file is set aside and everyone else's changes still go through. See How changes go live. Can I install without internet access? Yes. An offline bundle contains the packages, binaries and definitions needed for an installation in an isolated network. See Installing Berth."},{"s":"glossary","l":"en","t":"Glossary","d":"The terms used in Berth and in this documentation, from agent and cutover to place, schedule, parity and rollback.","c":"reference","g":["glossary","terms","definitions","vocabulary"],"h":[["a-c","A–C"],["d-h","D–H"],["i-p","I–P"],["q-r","Q–R"],["s-z","S–Z"]],"x":"The words Berth uses for its building blocks, in alphabetical order. A–C Agent (berth-agent): The small service that runs as root and does all privileged work: writing configuration, managing system users, restoring files. The panel itself is unprivileged and asks the agent for each operation over a local socket, using a typed protocol in which every operation is validated and individually authorised. See Architecture. Auditor: A role that sees everything an administrator sees but changes nothing, with secrets hidden and without downloading content. Meant for internal audit, compliance officers and external auditors. An auditor can request temporary administrator rights. See Roles and permissions. Background task: Long work started from the panel, such as installing WordPress or applying updates. It shows in a bar at the top of the panel with its progress and steps, and can be stopped where that is safe (berth task). Break-glass account: An administrator account for when normal access fails. Every sign-in is reported, sessions are short and it cannot have API tokens. Configuration quarantine: When one customer's web server or PHP configuration fails the validity test, only that file is set aside (renamed with .berth-quarantine) and an alert is raised, so everyone else's changes still go live. See How changes go live. Credits: The unit in which AI usage is paid per subscription: a monthly allowance from the package, plus deposits. See AI assistant and MCP. Customer: The account that owns subscriptions and can log in to the panel. A customer can belong to a reseller and can have restricted logins for others. Cutover: The moment a migration switches from the old server to Berth. With an address takeover it runs in two phases: the final sync, then taking over the IP addresses and activating the accounts, with go/no-go checks in between. See Migrating a server. D–H Doctor: The built-in health check of the server and panel (berth doctor, System → Diagnosis), with a suggested fix per finding. It also runs daily and after every update. Drill: A disaster-recovery restore onto a disposable server in which all outbound connections are silenced and all mail is held, so you can practise a full restore without side effects. See Disaster recovery. Emergency card: A printable page with what you need to reach and repair the server when the panel is unavailable. Part of rescue mode. Extension: A separate program that adds events, pages, API routes or hooks to the panel, supervised by the panel and isolated from it. See Webhooks and extensions. Fleet: Many independent Berth servers managed together from one Berth panel: status, actions in waves, update plans and vulnerabilities across servers. Every member keeps its own panel. See Fleet. Four-eyes approval: An optional rule that sensitive actions, such as deleting, changing the firewall or restoring a backup, need a second administrator's approval. See Audit trail and approvals. History: The local, deduplicated backup of each subscription, made hourly by default, from which single files, mail folders and databases can be restored, searched and compared between two moments. See Restoring files, mail and databases. Hook: A point where an extension is asked before an action (a new domain, customer, database, mailbox or a saved package) and can allow, refuse or adjust it. I–P Impersonation: An administrator or reseller working in the panel as one of their customers, with a banner and a way back. Always logged. Maintenance window: The days and times in which automatic updates and reboots may happen. See OS updates and maintenance. MCP: The Model Context Protocol, through which AI clients such as Claude or ChatGPT work with the panel at /mcp. OS adapter: The layer that hides the differences between Debian, Ubuntu and AlmaLinux/Rocky Linux: package names, paths, service names and the configuration test commands. Package: The template for subscriptions: limits, PHP defaults and which features a customer may use. Called a plan or service plan in other panels. See Customers, subscriptions and packages. Parity: A comparison of the old and the new server during a migration, per domain: web pages, certificates, mail services and mail folder contents, with a verdict per check. See Parity checks. Place: Where backups go: the server itself, the local history, an external restic repository (S3, NAS, SFTP and others) or an S3 bucket for loose archives. Each place carries a jurisdiction (EU or outside the EU) and a health status. See Backups overview. Provisioning: Creating, suspending, changing and terminating subscriptions from a billing system, through /api/v1/provisioning/. See Billing integration. Q–R Quarantine: Where suspicious or unwanted files are moved instead of being deleted, so they can be restored: malware findings, extra files found next to a CMS core, and placeholder files moved aside before an install. See Malware scanning. Render, rendered configuration: Berth keeps the desired state in its database and writes every service configuration it owns from it as complete files, which are then tested, swapped in atomically and reloaded (a hoster's own Postfix additions, which have no include file, are set as individual parameters). See How changes go live. Rescue mode: A minimal recovery service with its own menu and web page that works without the panel database, for when the panel itself does not start. See Rescue mode. Reseller: An account that sells hosting onward, with their own customers, packages and brand within limits set by the server owner. See Resellers and white label. Restore test: An automatic, regular restore of recent backups into a sandbox, including databases and a request to each site, to prove the backups are usable. See Restore tests. Restricted login: An extra login a customer creates for someone else, with access to selected areas only (for example files and WordPress) and optionally one subscription. Rollback: Going back to the old server after a cutover: accounts on Berth return to waiting and the IP addresses are released. Before the new server is opened, nothing is lost; after that, changes customers made on Berth stay only on Berth. S–Z Schedule: A backup rule: what (which subscriptions, which parts), when, to which place, how long to keep it and how often to test a restore. Server policy: Hard limits set by root in files on the server that no package, reseller or panel action can loosen. Setup code: The code printed at the end of the installation, needed for the first-time setup in the browser. Smart update: An update of WordPress, Joomla or Drupal that first runs on a temporary, protected copy and compares pages before and after; only when they match does the live site get updated. See Smart updates. Source watch: During a migration, watching the response times of the source server's sites and slowing down or pausing the copy when they get slower. Staging: A copy of a site on another domain for trying out changes, which can be refreshed from live and pushed back to live. See Staging. Subscription: One hosting space: a system user with its own uid, webspace, PHP-FPM pools, resource limits and backups, holding one or more domains. See Domains and subscriptions. System job: Long root work, such as an update or a repair, run in its own systemd unit with a live log (berth job). System user: The Linux user of a subscription. The CLI addresses subscriptions by it (--sysuser). Virtual patch: A WAF rule from a signed bundle that blocks a known vulnerability until the software is updated. See Vulnerability management. Webspace: A subscription's files under /var/www/vhosts/<domain>, in the same layout as Plesk. See On-disk layout. White label: A brand of name, colours, logos and helpdesk that customers see instead of Berth's, per reseller or for the whole server. Write lock: Making a subscription's code read-only, with writable exceptions such as upload folders, to stop a compromised site from changing its own files. It can be lifted temporarily for updates."},{"s":"compared-with-other-panels","l":"en","t":"Berth compared with Plesk, cPanel and DirectAdmin","d":"A topic-by-topic comparison of what Berth includes in its base licence, how it differs in architecture and layout, and where established panels are ahead.","c":"reference","g":["comparison","plesk","cpanel","directadmin","alternative","migration"],"h":[["the-short-version","The short version"],["topic-by-topic","Topic by topic"],["architecture-what-is-actually-different","Architecture: what is actually different"],["plesk-compatible-layout","Plesk-compatible layout"],["where-established-panels-are-ahead","Where established panels are ahead"],["choosing","Choosing"]],"x":"Plesk, cPanel and DirectAdmin are mature, widely used control panels, and most people reading this run one of them today. This page compares Berth with them by topic, so you can judge whether Berth fits. It describes Berth as it is now; for the other panels it stays general, because their editions, extensions and prices change over time and differ per vendor. Check the vendors' own current information for the details. The short version The same building blocks. Customers, resellers, packages and subscriptions; nginx in front of Apache with PHP-FPM; mail with IMAP, POP3 and webmail; DNS; Let's Encrypt; MariaDB; file manager, FTP, cron; a WAF and fail2ban; backups; an API. If you know one of these panels, Berth will feel familiar. One licence per server, everything included. Berth has no editions and no paid modules: the WordPress toolkit, malware scanning, backups to S3 with Object Lock, monitoring, migration, Git deploy and containers are all part of the base. In other panels some of these are commonly sold as an extension or limited to higher editions. A different architecture. An unprivileged panel, a small root agent with individually authorised operations, and configuration that is rendered, tested and swapped in atomically. See Security model. Plesk-compatible on disk, so whole servers can be taken over without customers noticing. Younger and smaller. Berth is in early access, and it does not have the large third-party ecosystem of the established panels. Topic by topic Topic In Berth Commonly in other panels Licensing One licence per server unlocks everything. A 30-day full trial; a lapsed licence never takes sites offline. Licensing models differ per vendor and edition; some features are commonly sold as an extension or included only in higher editions. Operating systems Debian 13, Ubuntu 24.04/26.04 LTS, AlmaLinux and Rocky Linux 10; amd64 and arm64. Each panel supports its own set of Linux distributions; Plesk also has a Windows edition. WordPress toolkit Installer for WordPress, Joomla, Drupal, Nextcloud and Matomo; integrity check against vendor checksums with repair; staging both ways with selective push; smart updates tested on a temporary copy; one-click login; hardening checklists. A WordPress manager is common; advanced features such as staging, cloning or smart updates are commonly sold as an extension or tied to an edition. Malware scanning ClamAV plus Berth's own code-aware webshell detector; weekly full scans, real-time scanning, upload scanning through the WAF, scans on restore, import and deploy; quarantine with restore. Commonly provided through an extension or a third-party product. Backups Places and schedules; an hourly deduplicated local history per subscription with search and diff; encrypted external copies with restic to S3, B2, SFTP or a NAS; S3 Object Lock and append-only NAS for immutability; automatic restore tests; full-server disaster recovery, also onto another OS. Scheduled backups with local and remote storage are standard; incremental backups, cloud targets and immutability vary per panel and are sometimes extensions. Monitoring Uptime checks with confirmation from other Berth servers, public status pages, an alert engine with mail, chat, push, SMS and on-call channels, Prometheus metrics and a Home Assistant integration. Basic service and resource monitoring is common; external uptime checks and status pages are commonly separate products or extensions. Migration Built in: whole servers from Plesk, cPanel, DirectAdmin and other Berth servers over read-only SSH, or from their backup files; parity checks old against new; cutover by IP takeover with a rollback. Transfer tools between servers of the same panel are common; importers from other panels exist with varying coverage. Git and apps Git deploy with zero-downtime releases and rollback; Node.js and Python apps; Laravel tools. Git and Node.js support exist in several panels, in some as an extension. Containers Rootless Podman per subscription with a one-click catalogue and compose stacks; an existing Docker can keep running alongside. Docker support, where present, is commonly an extension. Server management OS updates with snapshot and automatic rollback, emergency patches for exploited vulnerabilities, services, logs, disks and a rescue mode, so administrators rarely need a terminal. Varies per panel; OS-level tasks are commonly left to the administrator on the command line. Security and compliance WAF with OWASP CRS at five strictness levels, vulnerability management with KEV/EPSS prioritisation, a hash-chained activity log, four-eyes approvals, an auditor role, and evidence packs for NIS2, BIO2 and ISO 27001. WAF and brute-force protection are common; compliance tooling is usually outside the panel. Automation REST API with an OpenAPI 3.1 description, a full CLI, webhooks, extensions, WHMCS and HostBill modules, and an MCP endpoint for AI clients. APIs and billing integrations are standard and mature, with large ecosystems. Architecture: what is actually different The panel cannot do everything root can. The panel daemon runs as an unprivileged user. Every privileged action goes to a separate root agent as a typed operation that is validated and authorised on its own, and the agent refuses what its policy does not allow, even if the panel process were compromised. See Architecture. Configuration is never patched. The database holds the desired state. Every nginx, Apache, PHP-FPM, Postfix, Dovecot and BIND configuration is rendered as complete files, tested with the service's own check (nginx -t, postfix check, named-checkzone and so on), swapped in atomically and only then reloaded. A broken file from one customer is set aside without blocking the others. See How changes go live. Every subscription is fenced in. Each subscription has its own systemd slice with CPU, memory and IO limits, its own PHP-FPM pools, disk quota, outbound traffic rules and container user namespace. See Isolation. Plesk-compatible layout Berth keeps the layout that Plesk uses on disk: What Where Webspace of a domain /var/www/vhosts/<domain>/httpdocs, group psacln Mailboxes Maildir under /var/qmail/mailnames/<domain>/<user> Mail folders Dovecot namespace INBOX. with . as separator Users The same uids and gids as on the source server That is what makes a migration from Plesk a takeover rather than a rebuild: files keep their owners, mail clients keep their folders and do not download all mail again, and scripts that rely on these paths keep working. Migrations from cPanel and DirectAdmin are converted into the same layout. See On-disk layout. Where established panels are ahead A fair comparison includes what Berth does not offer: Maturity and ecosystem. The established panels have many years of production use, large communities, many hosting providers offering them pre-installed, and extension catalogues with third-party integrations. Berth is new and in early access. Platforms. Berth runs only on the Linux distributions listed above; there is no Windows or IIS hosting and no Enterprise Linux 9. Some features are still planned, such as ordering paid certificates and registering domains from the panel. Clustering. Berth does not drive several nodes from one panel. Fleet manages many independent Berth servers together instead. Choosing Berth suits you if you run your own servers, want security, backups, migration and server management in the base product rather than as add-ons, and value the Plesk directory layout. If you need Windows hosting or a specific third-party extension, an established panel may fit better today. The migration overview and parity checks show how to try Berth next to your current server without changing it. Plesk, cPanel and DirectAdmin are trademarks of their respective owners. Berth is not affiliated with, endorsed by or sponsored by them. The names are used only to describe compatibility and migration."}]