Installation

Install ScalPanel with one command, add web, mail, DNS, backup and probe servers, sign in to the admin panel, and keep everything up to date with signed releases.

ScalPanel installs with one command on a fresh server. The installer checks the server, installs Docker, downloads a signed release, and starts everything. At the end it prints the admin panel's address and a one-time password.

Before you install

Use a fresh server that runs nothing else. The installer stops when another program already listens on a port ScalPanel needs, such as a web or mail server.

CheckWhat the installer requires
Userroot (run it with sudo or as root)
CPU architecturex86_64. Other architectures, including ARM, are refused.
Operating systemUbuntu 22.04, Ubuntu 24.04, Debian 12 or Debian 13, AlmaLinux 9 or 10, Rocky Linux 9 or 10. On AlmaLinux and Rocky Linux the main server keeps SELinux as it is (enforcing included): ScalPanel's services run confined. firewalld stays on when it runs: the installer opens the server's SSH port and ScalPanel's ports in it; ScalPanel's own firewall (Admin → Firewall) filters by address. Separate nodes installed with install-node.sh do the same.
Init systemsystemd
DiskAt least 20 GB free in /var/lib. Less stops the installer.
Memory4 GiB or more is recommended. With less, the installer warns and continues.
PortsNone of the ports in Ports in use
Existing installNo ScalPanel already installed. Use scalpanelctl update instead.

Before you start, create a DNS A record for the server's name (for example panel.example.com) that points to the server's public IPv4 address. The installer does not need it to finish, but the panels get a trusted certificate only once the name points at the server.

Install

Run this on the server:

curl -fsSL https://scalpanel.scalws.com/install.sh | sudo bash

The installer asks three questions. Press Enter to accept the suggested value in brackets.

QuestionSuggested valueUsed for
Server namethe server's own host nameThe panels' address and their certificate
Public IPv4 addressdetected from the default routeDNS answers, the fallback certificate, FTP
Administrator emailadmin@ plus the server nameThe first admin user, certificate notices

The installer checks that the server name is a DNS name, the address is IPv4 and the email looks like an email address.

Note: The installer takes a few minutes. Most of the time goes to downloading the release's images.

What the installer does

  1. Checks the server, as in the table above.
  2. Installs ca-certificates, curl, openssl, jq, iproute2 and openssh-client with apt.
  3. Installs Docker Engine and the Docker Compose plugin from Docker's own apt repository, if they are not already installed, and enables Docker.
  4. Reads the signed release channel, the signed release description and the bundle, and verifies each one against the release key built into the installer. If a check fails, it stops and installs nothing.
  5. Hands over to scalpanelctl install, which verifies the release again and then:
    • generates the server's secrets and a self-signed certificate for the panels;
    • loads the release's images into a local registry, checking every file against its signed digest;
    • starts the databases and creates the schema;
    • creates the provider and its first administrator, admin, with a random password;
    • registers the local MariaDB server and the server's node;
    • starts every service and waits until each one is healthy;
    • turns on the update service, so the admin panel can start updates.

Where things are

PathContents
/etc/scalpanel/scalpanel.envThis server's settings
/etc/scalpanel/secretsGenerated passwords and keys (root and the services only)
/etc/scalpanel/node-enrollThe server's node's enrollment bundle, the only secret the node sees
/etc/scalpanel/tlsThe panels' fallback certificate
/opt/scalpanel/currentThe active release
/var/lib/scalpanelThe local image registry, database dumps taken before updates, state
/usr/local/sbin/scalpanelctlThe administrator command, see Command line
/scriptsAdministrator scripts with cPanel-style names

Install without questions

To install from a script, set the answers as environment variables. Become root first, so the variables reach the installer:

sudo -i
export SCALPANEL_YES=1
export SCALPANEL_HOSTNAME=panel.example.com
export SCALPANEL_PUBLIC_IP=203.0.113.10
export [email protected]
curl -fsSL https://scalpanel.scalws.com/install.sh | bash
VariableMeaning
SCALPANEL_HOSTNAMEThe server name (required with SCALPANEL_YES=1)
SCALPANEL_PUBLIC_IPThe public IPv4 address (required with SCALPANEL_YES=1)
SCALPANEL_ADMIN_EMAILThe administrator email (required with SCALPANEL_YES=1)
SCALPANEL_YES1: ask nothing; stop if a required value is missing
SCALPANEL_MAIL_HOSTNAMEThe mail server's name. Default: the server name.
SCALPANEL_NAMESERVERSThe nameservers, comma-separated. Default: ns1. and ns2. plus the server name.
SCALPANEL_UPDATE_CHANNELThe release channel. Default: stable.
SCALPANEL_UPDATE_URLThe release site. Leave it at its default.

The settings are saved in /etc/scalpanel/scalpanel.env. Variables with the older VPANEL_ prefix are still read.

Note: The installer always installs the newest release of its channel. Installing an older release is not offered.

Sign in

When the installer finishes, it prints:

  • the admin panel: https://<server name>:2087, or https://<public IP>:2087;
  • the hosting panel: https://<server name>:2083;
  • webmail: https://<server name>:2096;
  • the username admin and its password.

Warning: The password is shown only once and is not stored on the server. Copy it before you close the terminal.

  1. Open the admin panel in your browser.
  2. Until the server name points at the server, the panels use a self-signed certificate, and your browser shows a warning. Accept it for this first sign-in.
  3. Sign in as admin with the printed password.
  4. Change the password, and set up two-factor authentication, in My security.

Continue with Your first server.

Add more servers

The main server runs everything on its own: the panels, websites, mail, DNS and backups. When you need more room or more safety, add servers with a role. Each one is installed with install-node.sh, from the same release site, on a fresh server with the same requirements as the main server (see Before you install).

ServerWhat it doesPorts to open on itInstalled with
Web nodeRuns websites, like the main serverTCP 80, 443, 21, 30000–30049, UDP 443--role web
Replica serverA web node that also runs copies of websites and takes them overAs a web node, plus UDP 51821 from the other web servers--role web, then a replica link
Mail serverHolds mailboxes and receives mailTCP 25, 80, 110, 465, 587, 993, 995--role mail
DNS serverA secondary nameserver for every zoneTCP and UDP 53--role dns
Backup nodeKeeps off-site copies of backupsTCP 80, 443--role backup
Uptime probeChecks your websites and servers from another networkNone--role probe

Web nodes, replica servers, mail servers and DNS servers talk to the main server over a private, encrypted link (WireGuard): open UDP 51820 to the main server in any firewall in front of it. They follow the main server's release by themselves after each update. The full steps, with what each command prints, are in Adding servers.

Note: There is no separate Redis server. Each website's Redis (Caching in the hosting panel) runs next to the website, on the web node that runs it.

Web node

Four steps on two servers: the panel, the new server, the main server, the new server again.

1. In the admin panel, Servers → Nodes → Add, role web; copy the enrollment bundle (spe1…, valid one hour).

2. On the new server:

curl -fsSL https://scalpanel.scalws.com/install-node.sh | sudo bash -s -- --role web --name web2

3. On the main server, run the scalpanelctl link add command step 2 printed (the first time, run sudo scalpanelctl link init before it). It prints a link code, --link spl1….

4. On the new server again:

curl -fsSL https://scalpanel.scalws.com/install-node.sh | sudo SCALPANEL_NODE_BUNDLE='spe1…' bash -s -- --role web --name web2 --link spl1…

Then add its public address under Servers → IP addresses. Details: Web node.

Replica server

A replica server is a web node with a replica link: websites run on it and on their other servers at once, and it takes them over when their primary server fails.

  1. Install it as a web node.
  2. In the admin panel, open it under Servers → Nodes and, under Replica links, choose Link a server… for each web server it should share websites with. Open UDP 51821 between them.
  3. On a web server's website list, choose Replica… on a website and add the servers in the order they should take over.

Details: Website replicas.

Mail server

You need a host name with an A record and a matching reverse DNS (PTR) record, and port 25 open both ways.

1. On the new server:

curl -fsSL https://scalpanel.scalws.com/install-node.sh | sudo bash -s -- --role mail --name mx2 --hostname mx2.example.com

2. On the main server: sudo scalpanelctl link add mx2 <the key> <its IPv4> --mail mx2.example.com. It prints a link code and SCALPANEL_MAIL_SECRETS='…', shown once.

3. On the new server:

curl -fsSL https://scalpanel.scalws.com/install-node.sh | sudo SCALPANEL_MAIL_SECRETS='…' bash -s -- --role mail --name mx2 --hostname mx2.example.com --link spl1…

4. In Email → Mail servers, move a test domain to it, then set it active.

Details: Mail server.

DNS server

1. On the new server:

curl -fsSL https://scalpanel.scalws.com/install-node.sh | sudo bash -s -- --role dns --name ns2

2. On the main server: sudo scalpanelctl link add ns2 <the key> <its IPv4> --dns. It prints a link code and SCALPANEL_DNS_SECRETS='…', shown once.

3. On the new server:

curl -fsSL https://scalpanel.scalws.com/install-node.sh | sudo SCALPANEL_DNS_SECRETS='…' bash -s -- --role dns --name ns2 --link spl1…

4. Add it to your nameservers and register its glue record at your registrar.

Details: DNS server.

Backup node

Point a host name to the server, then on it:

curl -fsSL https://scalpanel.scalws.com/install-node.sh | sudo bash -s -- --role backup --hostname backup.example.com --email [email protected]

It prints an address, a user name and a password. Add them in Backup → Off-site backups → Add destination. Details: Backup node.

Uptime probe

In System health → Alerts → Uptime probes, add a probe and copy the command it shows (it holds the probe's token), then run it on a server in another network:

curl -fsSL https://scalpanel.scalws.com/install-node.sh | sudo bash -s -- --role probe --panel https://panel.example.com:2087 --token <token>

Details: Uptime probe.

Updates

New releases appear in the admin panel under Settings → Updates. The server checks the release site every 6 hours, and you can check at once with Check now. A banner tells provider administrators when a new release is available.

To update from the panel, open Settings → Updates and choose Update to the new version. To update from the server:

sudo scalpanelctl update

An update:

  1. checks that there is enough disk space (twice the download plus 1 GiB), and removes unused old images first if there is not;
  2. downloads only the files the server does not have yet, and verifies each one;
  3. takes a dump of the panel's database (the last three dumps are kept in /var/lib/scalpanel/backups);
  4. switches to the new release and restarts the services;
  5. waits until every service is healthy. If the new release does not start, the previous release is restored automatically.

During an update the panels are unavailable for about a minute, and websites restart for a few seconds.

Only a release newer than the installed one is installed. Downgrades are refused, from the panel and from the server.

Channels

A channel names the newest release for a group of servers. Releases are published to the stable channel, which servers follow by default. The channel is set in SCALPANEL_UPDATE_CHANNEL in /etc/scalpanel/scalpanel.env.

Every release, with its notes, is listed on the releases page.

How releases are signed

Every file the installer and the updater use is checked against the ScalPanel release key, an Ed25519 key that is built into the installer and into scalpanelctl:

  • the channel file and each release's description are signed with the release key;
  • the release description holds the SHA-256 of the bundle and of the list of image files;
  • every image file is checked against its SHA-256 as it is downloaded, and the images are pinned by digest;
  • PHP versions from the runtime catalog are signed the same way.

Trust comes from the key, not from the web server that hosts the files. A file that does not verify is never used.

The installer script itself is not signed; it is downloaded over HTTPS. If you want to read it first, download it, check the key in its RELEASE_PUBLIC_KEY line against the key published at https://scalpanel.scalws.com/release.pub, then run it:

curl -fsSL -o install.sh https://scalpanel.scalws.com/install.sh
grep '^RELEASE_PUBLIC_KEY=' install.sh
curl -fsSL https://scalpanel.scalws.com/release.pub
sudo bash install.sh

Verify a file by hand

Signatures are stored next to each file, as <file>.sig. This checks the stable channel file with OpenSSL 3:

KEY=$(curl -fsSL https://scalpanel.scalws.com/release.pub)
b64=$(printf '%s' "${KEY#*.}" | tr '_-' '/+')
while [ $(( ${#b64} % 4 )) -ne 0 ]; do b64="$b64="; done
printf -- '-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA%s\n-----END PUBLIC KEY-----\n' "$b64" > release.pem
curl -fsSLO https://scalpanel.scalws.com/channels/stable.json
curl -fsSL https://scalpanel.scalws.com/channels/stable.json.sig | base64 -d > stable.json.sigbin
openssl pkeyutl -verify -pubin -inkey release.pem -rawin -in stable.json -sigfile stable.json.sigbin

OpenSSL prints Signature Verified Successfully when the file is genuine.

If the installer stops

MessageWhat to do
ScalPanel needs an x86_64 serverUse an x86_64 server. ARM is not supported.
supported: Ubuntu 22.04/24.04, Debian 12/13Reinstall the server with a supported system.
at least 20 GB of free disk space is needed in /var/libFree space or enlarge the disk.
these ports are in useStop or remove the programs on those ports.
ScalPanel ... is already installedUse sudo scalpanelctl update.
the signature of ... does not verifyDo not continue. Try again later and report it to [email protected].

An installation that stops part way can be started again with the same command: each first-time step checks what is already done.