Docs apolopanel.com ↗ Start trial ↗

Requirements and installation

APOLO installs on a fresh server with one command. This page lists what the server needs, what the installer does, the options it takes, the ports to open and how to remove APOLO again.

Requirements

ItemMinimumRecommended
Operating systemAlmaLinux, Rocky Linux or RHEL 9 or 10AlmaLinux 9 or 10, a fresh minimal install
Architecturex86_64x86_64 with x86-64-v3 (required by version 10)
Memory1 GB2 GB or more for busy servers
CPU1 vCPU2 vCPU or more
Disk10 GB freeSSD, sized for your websites, mail and backups
Accessrootroot on a clean VPS or dedicated server
  • A clean server. Install APOLO on a server without another control panel and without a web server, database or mail server set up by hand. APOLO installs and manages its own Nginx, PHP, MariaDB, Redis and the rest, and expects to own their configuration.
  • Version 10 and the CPU. AlmaLinux, Rocky Linux and RHEL 10 are built for CPUs with x86-64-v3. On a VPS with an older virtual CPU type the installer stops and says so; choose the CPU type "host" or "x86-64-v3" in your provider's or hypervisor's settings, use version 9, or AlmaLinux 10 for x86_64_v2 (the installer warns that some PHP packages may be missing there).
  • RHEL needs an active subscription; the installer turns on the CodeReady Builder repository that some packages come from.
  • A host name. Give the server a proper host name (such as server1.example.com) whose DNS points to the server. The panel can then get a Let's Encrypt certificate for it; you can also set it later (First steps).
  • Outgoing connections to the package mirrors, to update.apolopanel.com (the package and updates) and to the licence server.

One licence covers one server. Every server starts with a free 15-day trial; see Updates and licence.

Install

When you order APOLO or start the trial, the portal shows your personal install command with your licence key in it. Nothing has to be downloaded ahead of time.

  1. Start a fresh AlmaLinux, Rocky Linux or RHEL 9 or 10 server and sign in to it over SSH as root.
  2. Copy the install command from the portal (portal.apolopanel.com, your licence) and paste it into the terminal. It looks like this:
    curl -fsSL https://update.apolopanel.com/apolo-install.sh | APOLO_LICENSE_KEY=XX-XXXX-XXXX-XXXX bash
  3. Answer the installer's first question, the server's host name, or press Enter to skip it.
  4. Wait a few minutes. The installer shows each step, and at the end prints the panel's addresses and the administrator's password.
  5. Open the administration address in your browser and sign in as admin with that password. On the host name the certificate is valid; on the IP address the browser asks once to accept it. Then follow First steps.

Save the password. The administrator's password is printed only once and isn't stored anywhere in readable form. If you lose it, set a new one on the server with apolo reset-password.

Without a licence key in the command, APOLO installs as well; enter the key later in the panel under Updates (the licence card). Keys pasted from an e-mail or a web page are cleaned of spaces, quotes and look-alike dashes.

Checking the installer before it runs

The command above runs the installer while it downloads. To check it first, download it, compare its SHA-256 checksum with the one on this page (this site and the update server are separate hosts), and only then run it:

curl -fsSLo apolo-install.sh https://update.apolopanel.com/apolo-install.sh
echo "1d989c82e96158de90777d615ddeca659779f1e546eb31cd4b03ab43dfb07330  apolo-install.sh" | sha256sum -c -
APOLO_LICENSE_KEY=XX-XXXX-XXXX-XXXX bash apolo-install.sh

The second line must print apolo-install.sh: OK; if it prints FAILED, don't run the file. This page shows the checksum of the current installer, the one for the newest release; the same checksum is in https://update.apolopanel.com/apolo-install.sh.sha256. Options go after the file name, for example bash apolo-install.sh --hostname server1.example.com. From there the installer checks the package itself: its checksum and APOLO's signature.

The host name

Before it downloads anything, the installer asks for the server's host name, for example panel.example.com. Its DNS A record should point to the server; the installer says where the name points now.

  • At the end the installer makes it the server's host name and gets a free Let's Encrypt certificate for it, which the panel, mail and FTP use. The addresses it prints then include the host name, next to the IP address.
  • When the name doesn't point to the server yet, the host name is still set. APOLO keeps trying to get the certificate for about 10 minutes; later, get it under Settings → Server → Host name (Host name and certificate).
  • Press Enter to keep the server's current host name when it is a full one (it is shown in brackets), or to skip the question when it isn't; - skips it too. Without a host name, the panel opens on the IP address with a self-signed certificate.
  • The host name can be changed at any time under Settings → Server.
  • An installation without a terminal (cloud-init, a script) doesn't ask: give the name with --hostname or APOLO_HOSTNAME=panel.example.com before bash.

Installer options

Add options after bash -s --, for example:

curl -fsSL https://update.apolopanel.com/apolo-install.sh | bash -s -- --hostname server1.example.com --email admin@example.com
--hostname NAME
The server's host name, so the installer doesn't ask for it (also APOLO_HOSTNAME). It becomes the server's host name, with a Let's Encrypt certificate for the panel, mail and FTP once its DNS points to this server; see The host name.
--email ADDRESS
The first administrator's e-mail address (default root@ and the host name). Used for notices and password resets.
--port N
The administration port. 8443
--user-port N
The hosting users' panel port. The same number as --port puts both panels on one port. 2083
--apps-port N
The port for webmail and the database tools (phpMyAdmin, Adminer); off serves them on the panel's own port. 2096
--zip PATH
Install from a local apolo.zip instead of downloading it. Its signature, apolo.zip.sig, must be next to it; with --upgrade, the installer takes it from the update server when it isn't (since 1.9.3). A package without a valid signature isn't installed.
--upgrade
Upgrade only: refuses to run on a server without APOLO. This is how the panel runs the installer for its own updates.
--uninstall, --purge
Remove APOLO; see below.
--help
The list of options.

What the installer does

  1. Checks the system: the operating system and its version, the CPU and that the package is for this architecture.
  2. Downloads and verifies the package: apolo.zip must match its SHA-256 checksum and carry the publisher's signature (Ed25519), also when it is given with --zip and when the panel runs the installer for an update. A package that doesn't is refused before anything from it runs.
  3. Installs the web stack from the distribution, EPEL and Remi: Nginx, Apache (behind Nginx, for websites that need .htaccess), PHP 8.4 and 8.3 with the common extensions (other versions are added later from the panel), MariaDB 11.4 LTS from MariaDB.org (or the distribution's MariaDB if that fails), Redis, certbot for Let's Encrypt, disk quota tools, Git, WP-CLI and Composer.
  4. Writes the configuration (Nginx, PHP-FPM, MariaDB, systemd units, SELinux rules where SELinux is on) and opens the ports below in firewalld or ufw.
  5. Starts the services, secures MariaDB's root account on a first install, creates the administrator admin, and starts APOLO's own services: apolo-agent (does the work that needs root), apolo-api (the panel, as the unprivileged user apolo) and apolo-pulse (Apolo Pulse).
  6. Checks that the new version answers. If it doesn't, the previous version is put back by itself. The three newest versions are kept on the server for that.
  7. Sets up Apache behind Nginx on 127.0.0.1:8080 and, with a host name, sets the host name and gets its certificate, through the same operations as the panel (apolo setup).

Mail (Postfix, Dovecot, Rspamd, webmail), DNS, more PHP versions, Node.js, PostgreSQL, resource limits and the addons are installed later, from the setup wizard or the panel, only if you want them.

Running the installer again on a server with APOLO upgrades it: the administrator, the settings, websites, databases and mail stay as they are.

Ports

PortWhatOpened by
80, 443Websites (HTTP and HTTPS); Let's Encrypt checks domains over port 80the installer
8443The administration panelthe installer
2083The hosting users' panelthe installer
2096Webmail and the database toolsthe installer
25, 465, 587Mail: receiving, and sending with a password (SMTPS and submission)installing the mail server
143, 993, 110, 995Mail: IMAP and POP3, plain with STARTTLS and over TLSinstalling the mail server
21, 30000-30100FTP and its passive data portsinstalling FTP
53 TCP and UDPDNS, when APOLO answers for your domainsturning DNS on
22SSH (the port can be changed in the panel, see SSH ports)the operating system

A firewall in front of the server

The installer and the panel open ports in the server's own firewall. Many providers also have a firewall in front of the server (a cloud firewall or a security group). Open the same ports there, or the panel, webmail or mail won't be reachable even though everything runs on the server. Port 80 must be reachable from the internet for Let's Encrypt certificates.

Later you can limit the administration port to your own addresses (Administration access) and keep any other port open only to listed addresses (Network); updates keep those limits.

After the installation

  • Addresses: the administration panel at https://<server>:8443, the users' panel at https://<server>:2083, webmail and the database tools at https://<server>:2096/. The installer lists them with the host name when its certificate was issued, and always with the IP address.
  • The certificate: with a host name whose DNS points to the server, the panel has a Let's Encrypt certificate (on the IP address the browser asks once to accept it). Without one, it is self-signed: the browser asks once.
  • Logs: journalctl -u apolo-api -u apolo-agent -f; settings of the panel's services are in /etc/apolo/apolo.env. See Command line.
  • Updates: APOLO updates itself from the panel; see Updates.

Removing APOLO

curl -fsSL https://update.apolopanel.com/apolo-install.sh | bash -s -- --uninstall

--uninstall removes APOLO's services, its program and /etc/apolo. The panel's state in /var/lib/apolo stays, and the websites in /home, the databases and the web stack are never deleted. Add --purge to also delete the panel's state and APOLO's website settings.

With --purge, the accounts, packages, settings and history of the panel are gone for good. Take a backup to storage outside the server first.

If the installation stops

  • "… is not supported": the server runs another distribution or version. Reinstall it with AlmaLinux, Rocky Linux or RHEL 9 or 10.
  • "the CPU doesn't support x86-64-v3": see the CPU note under Requirements.
  • A package can't be installed: the installer refreshes the package cache and tries again; check the server's DNS and its access to the mirrors, then run the command again. Running it again is safe.
  • "APOLO doesn't start": the installer prints the last lines of the log; run journalctl -u apolo-api -u apolo-agent -n 100 and send them to support.
  • The panel doesn't open in the browser after a successful installation: open port 8443 in your provider's firewall (above).

Something missing or unclear? Ask support or report a bug.