Getting started

Installer options

What this does: options change what the installer sets up: which services, which ports, which PHP version, and whether it opens your firewall.

When you need it: only if you want something other than the plain install. Most hosts need no options at all.

How to give options

Options go at the end of the one-line command, after bash -s --:

curl -fsSL https://repo.atlantishosting.net/install | sudo bash -s -- --hostname panel.example.com

Copy bash -s -- exactly: it tells bash that what follows is for the installer. As root, leave out sudo. To see the list on your server, run curl -fsSL https://repo.atlantishosting.net/install | bash -s -- --help.

Many sections below name the programs freePanel installs, such as Postfix or PowerDNS. The option's first line says what it gives you.

The one rule to remember

There are two kinds of option:

For example, this installs everything a plain install does, plus Redis:

curl -fsSL https://repo.atlantishosting.net/install | sudo bash -s -- --redis

And this installs only websites, MySQL databases and mail, and opens their ports:

curl -fsSL https://repo.atlantishosting.net/install | sudo bash -s -- --web --mysql --mail --open-firewall

Running it again with options

A re-run never removes or turns off a service that is already installed. It sets up the services the command asks for, and leaves the others as they are. So:

What a plain install sets up

EL family (AlmaLinux, Rocky, RHEL, CloudLinux 9 and 10)Ubuntu family (Ubuntu 24.04, 26.04, Debian 12)
Services--web --mysql --postgres --dns --mail --spam --dbadmin --webmail --dav --ftpThe same
Login protection (--protect)Added unless you give --no-firewall; firewalld is turned on if it is offAdded unless you give --no-firewall
Firewall--open-firewall, unless you give --no-firewallThe same
Server nameThe server's own (hostname -f)The same

The options below each have a short section. Each says what it needs and how the two families differ.

--hostname

What it does: sets the server's full name for freePanel, such as --hostname server.example.com. Mail, DNS, the certificate and the panel's address all use it.

Default: the server's own name (hostname -f). The one-line installer stops if that is not a full name.

A name given here is used as it is; only its characters are checked. It does not change the system's own name.

--web

What it does: sets up website hosting: the Apache web server with HTTPS (mod_ssl) and PHP for each account, run as that account.

Needs: nothing. Mail, FTP, webmail, the database admin tool, app hosting, nginx and Varnish all need it.

It also sets up the web application firewall (ModSecurity with the OWASP Core Rule Set), which blocks common attacks on websites, and the virus scanner (ClamAV). The firewall is on from the start. The scanner is on when the server has 4 GB of memory or more; on a smaller server you can turn it on later in the panel. Use --no-waf or --no-virus-scan to leave one out.

Per family: on EL, PHP comes from the Remi repository (a well-known outside source of PHP versions; a repository is a place a system downloads software from). On Ubuntu and Debian 12 it comes from the system itself (8.3 on Ubuntu 24.04, 8.5 on Ubuntu 26.04, 8.2 on Debian) or, for other versions, from the Ondřej Surý PHP repository (another well-known PHP source, also called a PPA).

--php

What it does: chooses the PHP version new websites start with, such as --php 8.4. PHP is the programming language most websites, such as WordPress, are written in.

Needs: --web.

SystemVersions you can chooseDefault
AlmaLinux, Rocky, RHEL, CloudLinux 97.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.58.3
Ubuntu 24.048.2, 8.3, 8.4, 8.58.3
Ubuntu 26.048.2, 8.3, 8.4, 8.58.5
Debian 128.2, 8.3, 8.4, 8.58.2

Webmail needs PHP 8.1 or later. You can add other versions later in the panel, in Web server and PHP > PHP versions.

--no-php-ppa

What it does: on Ubuntu and Debian 12, uses only the system's own PHP (8.3 on Ubuntu 24.04, 8.5 on Ubuntu 26.04, 8.2 on Debian) and does not add the Ondřej Surý PHP repository.

Needs: Ubuntu or Debian 12. On EL the installer stops with --no-php-ppa is for Ubuntu.

--no-waf

What it does: leaves out the web application firewall that --web sets up. The installer's last lines say it is off.

Needs: --web.

Leave it in unless you run a firewall of your own in front of your websites. You can set it per site later in Security > Web application firewall (how), once it is installed.

--no-virus-scan

What it does: leaves out the virus scanner that --web sets up. The installer's last lines say it is off.

Needs: --web.

The scanner keeps about 1.5 GB of memory while it runs. On a small server, leave it out here, or let the installer leave it off and turn it on later in Security > Virus scanner (how).

--nginx

What it does: installs nginx, a second web server that can sit in front of Apache and pass visitors on to it. It is installed stopped and turned off: nothing changes until you turn it on in the panel, in Web server and PHP > nginx front.

Needs: --web.

Per family: both install nginx from the system's own repositories. On Ubuntu, the installer keeps it from starting on Apache's ports while it installs.

--varnish

What it does: installs Varnish, a cache that can sit between the secure connection and Apache and keep copies of pages. It is installed stopped and turned off: nothing changes until you turn it on in the panel, in Web server and PHP > Varnish cache. Varnish then listens on the server itself only, never on a public address.

Needs: --web. It works with or without --nginx.

Per family: both install Varnish from the system's own repositories (AppStream on AlmaLinux, Rocky and RHEL; the archive on Ubuntu and Debian), so the server's automatic security updates keep it up to date. On Ubuntu and Debian, the installer keeps it from starting while it installs.

--dns

What it does: sets up a DNS server (PowerDNS) that answers for each account's domains, so this server can be their name server. A name server is the server the internet asks where a domain lives.

Needs: nothing. Port 53 must be reachable from the internet for it to be useful.

Per family: EL takes PowerDNS (the DNS server program) from EPEL, the usual extra repository for EL systems; Ubuntu and Debian from their own repositories.

--nameservers

What it does: names the name servers new DNS zones list, such as --nameservers ns1.example.com,ns2.example.com (two or more, separated by commas, no spaces).

Needs: --dns.

Default: ns1 and ns2 under the domain of the server's name. For server.example.com that is ns1.example.com and ns2.example.com.

These names must also be set up at your domain's registrar. See the first hour checklist.

--ip

What it does: sets the IPv4 address new DNS zones point at, such as --ip 203.0.113.10.

Needs: --dns.

Default: the server's main address (the one it uses to reach the internet), or the public address behind NAT when you give one. If it can't find one, the installer stops with could not find this server's IPv4 address; give it with --ip.

An --ip that isn't on any of the server's network cards is taken as the public address behind NAT, and the installer says so.

--public-ip

What it does: tells freePanel the router's public IPv4 address when the server is behind NAT: its network card has a private address (such as 10.0.80.11) and a router with a static public address forwards ports to it. For example --public-ip 203.0.113.10.

New DNS zones point at it (their A records and the SPF record), mail for a domain whose MX points at it is delivered here, free certificates reach the domains that point at it, and FTP's passive mode gives it to clients. It is saved once, in /etc/freepanel/network.json. Change it later in Server > IP addresses, under Public address behind NAT.

Needs: a public address. A private one (10.x, 172.16-31.x, 192.168.x, or the CGNAT range 100.64-127.x) is refused, and so is one that is already on the server's network card.

Default: none. On a first install with web, DNS, mail or FTP, a private address on the server's card stops the installer with this server's address 10.0.80.11 is private, so it may be behind NAT until you give --public-ip ADDR, or --public-ip none to publish the private address as it is (a server on a LAN only, or a test). The installer never looks the address up on the internet: you give it. FREEPANEL_PUBLIC_IP=ADDR in the environment does the same as the option. A re-run keeps the setting.

--public-ipv6 ADDR adds a public IPv6 address the router forwards, which is rarely needed.

Forward these ports on the router to the server's private address:

PortFor
80 and 443 (TCP)websites, and the free certificates' checks
53 (TCP and UDP)DNS, with --dns
25, 465 and 587 (TCP)mail in and mail programs sending, with --mail
993 and 995 (TCP)mail programs reading mail, with --mail
21 and 30000 to 30999 (TCP)FTP and its passive data ports, with --ftp
7443 and 7444 (TCP)the admin and customer panels (or your --port and --user-port)
7445 and 7446 (TCP)the database tool and webmail, with --dbadmin and --webmail

Hairpin NAT: the server can't reach its own public address unless the router supports hairpin NAT (also called NAT loopback). freePanel's own checks don't need it, but a site that calls itself by its name does. If the router doesn't, add the server's names to /etc/hosts with the private address, for example 10.0.80.11 panel.example.com shop.example.com, or run a local DNS resolver that answers them so.

--mail

What it does: sets up email: Postfix to send and receive mail, Dovecot so mail programs on phones and computers can read it (IMAP and POP are the two ways they fetch mail), Sieve for filters and auto-replies, and OpenDKIM to sign outgoing mail so other servers trust it.

Needs: --web. Without it the installer stops with --mail needs the web stack: add --web.

--spam

What it does: installs the rspamd spam filter from rspamd.com's own repository. It stays stopped until you turn spam filtering on in the panel, in Email > Spam settings.

Needs: --mail. Without it the installer stops with --spam needs --mail.

--webmail

What it does: sets up webmail (Roundcube), so mailbox owners can read their mail in a browser. It runs on its own port, 7446. Customers open it from their panel already signed in, or sign in there with a mailbox's password.

Needs: --web, --mail, and PHP 8.1 or later.

--webmail-port

What it does: changes webmail's port, such as --webmail-port 7450.

Needs: --webmail. It must differ from the panels' ports and the database admin tool's port.

--pgp

What it does: adds encrypted mail (PGP) to webmail. Each mailbox can make its keys there and sign, encrypt and read encrypted mail.

Needs: --webmail. Without it the installer stops with --pgp needs --webmail.

--dav

What it does: adds calendars and contacts that phones and computers can sync (CalDAV and CardDAV), using Radicale from freePanel's own package repository. They are reached through webmail's address, at /dav/. A mailbox signs in with its own address and password.

Needs: --webmail. Without it the installer stops with --dav needs --webmail (calendars and contacts are served on webmail's host and port).

--mysql

What it does: sets up MariaDB, so customers can have MySQL databases. It listens on the server itself only, not on the internet.

Needs: nothing.

--postgres

What it does: sets up PostgreSQL, so customers can have PostgreSQL databases. It listens on the server itself only.

Needs: nothing.

Per family: on EL it is PostgreSQL 16. On the Ubuntu family it is the system's own version.

--dbadmin

What it does: sets up the web database admin tool (phpMyAdmin and Adminer) on its own port, 7445. Customers open it from their panel to look at and change their databases.

Needs: --web, and --mysql or --postgres.

--dbadmin-port

What it does: changes the database admin tool's port, such as --dbadmin-port 7449.

Needs: --dbadmin. It must differ from the panels' ports.

--redis

What it does: installs Redis, a fast store many apps use for caching. Each account can then turn on a Redis of its own, run as that account and reachable only by it. The shared Redis server that comes with the package stays off.

Needs: nothing.

--memcached

What it does: the same as --redis, for Memcached. Each account's Memcached runs as that account and only it can reach it.

Needs: nothing.

--ftp

What it does: sets up FTP (Pure-FTPd) for the FTP logins customers add in their panel. Only encrypted connections are allowed. FTP is an older way to upload files, still used by many website programs.

Needs: --web.

--apps

What it does: installs Node.js, Python and Ruby from the system's own repositories, so an account can run an app of its own behind one of its websites. Nothing runs until an account adds an app. You can then install other Node.js LTS versions from the panel (Web server and PHP > App hosting).

Needs: --web.

--protect

What it does: turns on login protection: fail2ban watches SSH, the panels, and mail and FTP where installed, and blocks addresses that keep failing to sign in. It also turns on the deny list in Security > Login protection. The address you install from is put on the "never blocked" list first.

Needs: it can't go with --no-firewall.

Per family:

To add login protection to a server that is already installed, use Security > Login protection > Turn on in the admin panel, or run the installer again with the services you first chose plus --protect (a plain install's are --web --mysql --postgres --dns --mail --spam --dbadmin --webmail --dav --ftp), and --open-firewall if you want the ports opened too. See Running it again with options.

--protect-allow

What it does: adds more addresses to the "never blocked" list, such as --protect-allow 198.51.100.7,192.0.2.0/24 (addresses or ranges, separated by commas). A range such as 192.0.2.0/24 means every address that starts 192.0.2.; if you don't need ranges, list single addresses.

Needs: --protect.

--open-firewall and --no-firewall

A firewall decides which ports the internet can reach. A plain install opens the ports it needs (it adds --open-firewall for you). When you choose your own services, the installer opens nothing unless you add --open-firewall.

--open-firewall opens the ports of what it installs, in whichever firewall is running: firewalld (usual on EL) or ufw (usual on the Ubuntu family). It never opens SSH (port 22) and never closes anything:

WhatPorts
Admin panel and customer panel7443, 7444
Websites (--web)80, 443
DNS (--dns)53
Mail (--mail)25, 587, 143, 993
Webmail (--webmail)7446
Database admin tool (--dbadmin)7445
FTP (--ftp)21 and 30000 to 30999

The databases themselves (3306, 5432) are never opened. If neither firewall is running, the installer says No active firewalld or ufw found; nothing opened.

--no-firewall leaves the firewall alone, opens nothing, and turns off login protection: nothing then blocks password guessing on SSH, mail or FTP. Use it only if you run your own firewall and fail2ban. It can't go with --open-firewall or --protect. The installer's last lines then list the ports to open yourself; Install freePanel shows the commands.

Your hosting company's own firewall, if it has one, is separate: the installer can't open ports there. See Open ports.

Default: a plain install opens the ports. When you choose the services yourself, nothing is opened unless you add --open-firewall.

--port

What it does: changes the admin panel's port, such as --port 8443.

Default: 7443. It must differ from --user-port.

--user-port

What it does: changes the customer panel's port, such as --user-port 8444.

Default: 7444. It must differ from --port.

--license-key

What it does: stores your licence key once the panel is up.

Prefer the FREEPANEL_LICENSE_KEY environment setting, which keeps the key off the command line where others on the server could see it. See Enter your licence key.

--no-quotas

What it does: leaves the server's disk quotas as they are. Without it, the installer turns them on for the disk that holds /home, so packages' disk space limits work (see Disk quotas). Use it only if you manage disk quotas yourself.

FREEPANEL_RELEASE

What it does: installs a named release instead of the newest, such as FREEPANEL_RELEASE=1.2.3. Put it before bash:

curl -fsSL https://repo.atlantishosting.net/install | sudo FREEPANEL_RELEASE=1.2.3 bash

If something goes wrong

The installer checks your options before it changes anything. If two don't fit together, it stops at once and says why. For example: