panelOwl docs 1.41.1

Installation

Requirements

SSH lockout protection. If your sshd_config already contains AllowUsers, AllowGroups, DenyUsers or DenyGroups, the installer stops. panelOwl installs its own AllowGroups drop-in and sshd ANDs such directives; remove yours first (the installer adds root, every sudo/adm member and the invoking user to the root-access group so nobody gets locked out).

Before you start: DNS

Create these records at your DNS provider before running the installer, so the hostname certificate can be issued immediately:

Record Name Value
A panel.hoster.example the server's public IPv4
AAAA panel.hoster.example the server's public IPv6 (only if the server actually has one)
PTR (reverse DNS) server IPv4 panel.hoster.example — set at your server provider; needed for outbound mail reputation

Set the system hostname too: hostnamectl set-hostname panel.hoster.example.

The one-line install

On the server, as root:

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

The script fetches the latest release from the signed feed, checks the tarball against the manifest's SHA-256, unpacks it and runs the installer, which asks for the hostname, the admin email and your licence key (the key is read without echo). Any installer flag can follow, for example ... | sudo bash -s -- --hostname panel.hoster.example --public-ipv4 203.0.113.10. The rest of this page describes what the installer does and the manual way of getting the release onto the server.

Getting the release onto the server

Releases are published at https://panelowl.com/releases/ as a signed tarball, panelowl-<version>.tar.gz, next to latest.json (the manifest the update feed reads). On the new server, logged in as a user with sudo:

cd ~
curl -fsSLO https://panelowl.com/releases/latest.json
v=$(python3 -c 'import json; print(json.load(open("latest.json"))["version"])')
curl -fsSLO "https://panelowl.com/releases/panelowl-$v.tar.gz"
curl -fsSLO "https://panelowl.com/releases/panelowl-$v.tar.gz.sha256"
sha256sum -c "panelowl-$v.tar.gz.sha256"

(Or copy the file from wherever you have it with scp panelowl-<version>.tar.gz user@server:.)

Running the installer

On the server, unpack and run the installer as root:

cd ~
tar xzf panelowl-$v.tar.gz
cd panelowl-$v
sudo ./install/install.sh --hostname panel.hoster.example --email admin@hoster.example

The installer shows every setting it is about to use and asks for confirmation (press Enter to accept the value in brackets). Options:

Flag Meaning
--hostname FQDN server hostname (default: hostname -f)
--email ADDRESS admin email registered with Let's Encrypt
--php 8.3[,8.4] PHP versions to install (default 8.3); more can be added later with panelctl php install
--public-ipv4 IP the address clients' DNS records should point at. Detected automatically, but behind NAT the detection sees the firewall's outbound address, which may differ from the one forwarded to the server — pass the forwarded address
--public-ipv6 IP likewise for IPv6, or none
--admin NAME name of the first admin login (default admin); created on a fresh install with a generated password printed at the end
--no-trial do not request the free 14-day trial licence (new servers get one automatically; panelctl license trial EMAIL requests it later)
--license KEY the licence key from your panelowl.com purchase; without one the server cannot create accounts (panelctl license set KEY installs it later)
--update-url URL release feed the server updates from (default https://panelowl.com/releases/; a private mirror is fine, the manifest is signed either way)
--skip-dns-check continue even if the hostname does not resolve to this server (the certificate is then requested later by the hourly timer)
--yes no prompts; requires --hostname and --email on a first install
--force continue despite an existing web/mail/database stack or busy ports
--skip-resource-check warn instead of abort below 2 GB RAM / 20 GB disk (test environments only)

It takes about five minutes and is safe to re-run. What it does, in order:

  1. Preflight checks (OS, root, resources, existing services, sshd directives).
  2. Adds the PHP PPA with a pinned signing key, installs Apache, PHP-FPM, MariaDB, Postfix, Dovecot, Rspamd, Redis, fail2ban, certbot, ufw and unattended-upgrades (security updates only).
  3. Creates the panelowl-web user, the groups panelowl-sftp, panelowl-ssh, panelowl-nopass and root-access, and the directories under /var/lib/panelowl, /var/log/panelowl, /etc/panelowl.
  4. Installs the binaries to /usr/local/lib/panelowl/ (with panelctl linked into /usr/local/sbin/), the systemd units and the version marker.
  5. Writes /etc/panelowl/config.toml (hostname, admin email, detected public IPs, PHP versions, default limits).
  6. Generates a self-signed bootstrap certificate, then writes the base configuration of every service: default Apache vhosts (unknown hosts get a 404 page, the hostname redirects to the panel), PHP-FPM placeholder pools, MariaDB with secure defaults, Postfix/Dovecot/Rspamd for virtual mailboxes with DKIM, the sshd drop-in, /etc/cron.allow, fail2ban jails, sysctl hardening, logrotate, ufw rules.
  7. Starts panelowld, runs the schema migrations and panelctl rebuild, then requests the hostname certificate from Let's Encrypt.
  8. Prints a summary with the panel URL and the DNS/PTR records to verify.

Behind a NAT firewall

panelOwl works fine on a private address behind a firewall that forwards ports (pfSense/OPNsense, a home router, a cloud NAT). Two things to get right:

From inside the same LAN, the public address only works if the firewall does NAT reflection (hairpin); otherwise use the server's LAN address, and add hosts-file entries on your PC to test client sites before their DNS exists.

After installation

Check the server's health and the certificate:

panelctl doctor
panelctl ssl status

Until the hostname certificate is issued, the panel, mail services and default vhost use the self-signed bootstrap certificate; browsers and mail clients will warn. The panel is also reachable by IP address (https://<ip>:8443/) for a first look, with the same warning. Client sites are selected by hostname, so a site opened by IP shows the server's "Site not found" page. The hourly panelowl-ssl.timer retries issuance once DNS is correct; panelctl ssl retry panel.hoster.example forces an attempt.

Create the first client account:

panelctl account create acme --domain example.com --email owner@example.com

This prints the panel URL, the account's generated password (shown once) and the DNS records the client must create. See panelctl reference for all options, and hand the client the Getting started page.

What the installer configures, by service

Service Configuration written Notes
Apache /etc/apache2/panelowl/ (global + one file per domain), mod_proxy_fcgi to PHP-FPM sockets AllowOverride All, .htaccess works; php_value in .htaccess does not (PHP-FPM)
PHP-FPM /etc/php/<ver>/fpm/pool.d/panelowl-<account>.conf one pool per account and version, pm = ondemand, runs as the account user
MariaDB bind-address = 127.0.0.1, root via Unix socket, no test DB / anonymous users clients connect to localhost only
Postfix /etc/postfix/main.cf, master.cf, maps in /etc/postfix/panelowl/ submission 587 (STARTTLS) and 465 (TLS), SASL via Dovecot, senders restricted to their own address, Rspamd milter
Dovecot /etc/dovecot/conf.d/99-panelowl.conf, passwd files /etc/dovecot/panelowl-* IMAPS 993 / POP3S 995 only, Maildir under /home/<account>/mail/, quotas, Sieve files spam into Junk
Rspamd /etc/rspamd/local.d/ DKIM signing with per-domain keys in /var/lib/rspamd/dkim/, 200 messages/hour per mailbox, spam tagged (never rejected by score)
sshd /etc/ssh/sshd_config.d/50-panelowl.conf AllowGroups root-access panelowl-sftp panelowl-ssh; SFTP-only accounts get internal-sftp
cron /etc/cron.allow = root; crontabs rendered by the helper clients edit cron only through the panel
fail2ban /etc/fail2ban/jail.local sshd, Postfix SASL, Dovecot and panel-login jails
ufw ports listed under Requirements everything else denied
certbot /etc/letsencrypt/renewal-hooks/deploy/panelowl renewals reload Apache (and Postfix/Dovecot for the hostname certificate)
backups panelowl-backup.timer, /var/backups/panelowl/ nightly full archive at 03:00; see Operations
webmail, phpMyAdmin Roundcube + phpMyAdmin from Ubuntu's archive, pool panelowl-apps, https://<hostname>/webmail/ and /phpmyadmin/ see Operations
admin UI panelowl-admin.service (user panelowl-admin, 127.0.0.1:8082), Apache on 2087 the installer creates the first login (name from --admin, default admin, password shown once at the end); more with panelctl admin create; restrict port 2087 to admin addresses

Uninstalling panelOwl

panelOwl is ordinary software on an ordinary Ubuntu server: removing it is a matter of stopping its services and deleting the files it owns. Nothing phones home, so there is nothing to deregister; if you have a subscription, cancel it as described in the refund and cancellation policy.

What stays. The hosting accounts panelOwl created are normal Unix users with their files under /home/<account>/, their mailboxes under /home/<account>/mail/ and their MariaDB databases. Apache, PHP-FPM, MariaDB, Postfix, Dovecot, Rspamd, PowerDNS, fail2ban and the other packages the installer added stay installed and keep running. If you want the accounts gone too, delete them with panelctl account delete <name> before uninstalling, and remove the packages with apt afterwards if the server will not host anything.

What goes. Run the following as root. It removes the panel programs, their state, the configuration files panelOwl wrote under other services' directories, and its system users and groups.

# 1. Stop and remove the panel's services, timers and per-account PHP masters
systemctl disable --now panelowl-admin panelowl-web panelowld 'panelowl-*.timer' 2>/dev/null
systemctl stop 'panelowl-php*@*.service' 'panelowl-*.slice' 2>/dev/null
rm -f /etc/systemd/system/panelowl*.service /etc/systemd/system/panelowl*.timer \
      /etc/systemd/system/panelowl*.slice /etc/systemd/system/panelowl-php*@.service
rm -rf /etc/systemd/system/panelowl*.d
systemctl daemon-reload

# 2. The programs, the state database, logs and configuration
rm -f /usr/local/sbin/panelctl
rm -rf /usr/local/lib/panelowl /etc/panelowl /etc/panelowl-apps /var/lib/panelowl \
       /var/log/panelowl /var/log/apache2/panelowl /run/panelowl
# Backups of every account are in /var/backups/panelowl/; keep or delete them as you wish.

# 3. Apache: the panel's global file and the virtual hosts it rendered.
#    To keep serving the sites without panelOwl, copy /etc/apache2/panelowl/100-*.conf
#    into /etc/apache2/sites-available/ and enable them first.
a2disconf -q panelowl 2>/dev/null; rm -f /etc/apache2/conf-available/panelowl.conf
rm -rf /etc/apache2/panelowl
rm -f /etc/php/*/fpm/pool.d/panelowl-*.conf /etc/php/*/fpm/pool.d/00-panelowl-apps.conf
systemctl reload apache2; systemctl restart 'php*-fpm'

# 4. Drop-ins panelOwl placed in other services. Removing the sshd file restores
#    Ubuntu's default login policy (no AllowGroups); test before reloading.
rm -f /etc/ssh/sshd_config.d/50-panelowl.conf && sshd -t && systemctl reload ssh
rm -f /etc/fail2ban/jail.d/*panelowl* /etc/fail2ban/filter.d/panelowl-panel.conf && systemctl restart fail2ban
rm -f /etc/dovecot/conf.d/99-panelowl.conf /etc/dovecot/panelowl-* && systemctl restart dovecot
rm -rf /etc/postfix/panelowl && systemctl restart postfix
rm -f /etc/mysql/mariadb.conf.d/60-panelowl.cnf /etc/powerdns/pdns.d/panelowl.conf \
      /etc/phpmyadmin/conf.d/panelowl.php /etc/sysctl.d/60-panelowl.conf \
      /etc/logrotate.d/panelowl /etc/letsencrypt/renewal-hooks/deploy/panelowl \
      /etc/apt/preferences.d/panelowl-no-mod-php /etc/cron.allow

# 5. System users and groups (after the sshd drop-in is gone)
for u in panelowl-web panelowl-admin panelowl-apps; do userdel "$u" 2>/dev/null; done
for g in panelowl-sftp panelowl-ssh panelowl-nopass root-access; do groupdel "$g" 2>/dev/null; done

Postfix's main.cf and master.cf, Rspamd's files in /etc/rspamd/local.d/ and the unattended-upgrades setting in /etc/apt/apt.conf.d/20auto-upgrades were written by the installer for a mail server; they are valid stock configurations and can stay, or be reset by purging and reinstalling the package. The firewall rules the installer opened (ports 22, 25, 80, 443, 465, 587, 993, 995, 8443 and 2087) are listed by ufw status numbered and removed with ufw delete <n>; the PHP repository in /etc/apt/sources.list.d/ondrej-php.list can be removed if you do not need several PHP versions. After these steps no panelOwl process, file, user or scheduled job remains, and the server is a plain Ubuntu server with the sites, mail and databases that were on it.