Getting started
System requirements
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.
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 (x86_64) 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
clamdruns. 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 suggestswebmail.andadminer.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.