Getting started
Before you install
What this does: this page lists the five things to have ready before you run the installer: a fresh server, root access, a name for the server, DNS for that name, and open ports.
When you need it: once, before your first install. It takes about 15 minutes, plus the time your DNS change needs to spread.
1. A fresh server
A server is a computer in a data centre that stays on all the time. You rent one from a hosting company. It may be called a VPS, a cloud server or a dedicated server.
- Order it with one of the supported systems, for example AlmaLinux 9 or Ubuntu 24.04.
- Start from a fresh server: one with only the operating system on it. freePanel installs its own web server, mail server, databases and DNS server, and expects nothing else to run them.
- Write down the server's IP address (its number on the internet, such as
203.0.113.10). Your hosting company shows it in their control area or in the welcome email.
2. Root access
Root is the administrator login of the server. Only root can install freePanel.
You type the install command over SSH. SSH is a safe way to type commands on the server from your own computer.
Connect to your server
- Open a terminal on your own computer. On Windows, open PowerShell from the Start menu. On a Mac, open Terminal from Applications > Utilities.
- Type
ssh root@203.0.113.10, using your server's IP address in place of203.0.113.10, and press Enter. - The first time, you see a question that ends in
Are you sure you want to continue connecting (yes/no/[fingerprint])?. Typeyesand press Enter. - Type the root password your hosting company gave you and press Enter. Nothing shows while you type: that is normal.
- You see a prompt such as
[root@server ~]#. You are now typing on the server.
If your hosting company gave you an SSH key (a file, often ending in .pem or with no ending) instead of a password, type ssh -i path/to/the-key-file root@203.0.113.10 in step 2, with the key file's place on your computer. You are then not asked for a password.
PS C:\Users\you> ssh root@203.0.113.10
root@203.0.113.10's password:
[root@server ~]#
If your hosting company gave you a user other than root (such as ubuntu or almalinux), sign in as that user. You then put sudo in front of the install command, as the install page shows. sudo runs one command as root, after asking for your own password.
3. A name for the server
The server needs a full name of its own, called its hostname, such as server.example.com. The panel's address, mail and the server's certificate all use it.
- It must be under a domain you own. If you own
example.com, you can useserver.example.com. Don't have a domain yet? Buy one first from a registrar: a company that sells domain names. - It must be a full name with at least one dot. Names such as
localhost,server1,vps.localdomainorip-10-0-0-5.ec2.internaldo not work, and the installer stops before it downloads anything. - Pick a name under a domain that sends no other email, or under a part of it that sends none. Why: every login on the server may send mail as
name@the server's name. If your business email isyou@example.com, don't name the serverexample.com;server.example.comis fine as long as no one sends mail from@server.example.com. A domain kept just for your servers, such asexample-hosting.net, is safest.
Give the server its name
- On the server, type
hostnamectl set-hostname server.example.comand press Enter, using your own name. If your prompt ends in$(you are not root), putsudoin front:sudo hostnamectl set-hostname server.example.com. - Type
hostname -fand press Enter. - You see the name you chose, such as
server.example.com.
You can also give the name only to freePanel, with --hostname, without changing the server's own name. See installer options.
4. DNS for the name
DNS is the internet's address book: it tells browsers which server a name lives on. You add a record that says "server.example.com is at 203.0.113.10".
Point the name at your server
- Sign in where your domain's DNS is managed today. That is usually the company you bought the domain from (your registrar) or your hosting company.
- Open the DNS settings for your domain, for example
example.com. - Add a record of type A. Set the name to
server(the part before your domain). Some DNS pages want the full name,server.example.com, instead: if the page shows your domain after the box, type onlyserver. Set the value (also called "points to" or "IPv4 address") to your server's IP address, such as203.0.113.10. - Leave the TTL (how long other computers remember the record) at the page's default.
- Save it.
- Wait. A new record usually works within minutes, but can take up to a day to reach everyone.
- To check, open a terminal on your own computer, type
nslookup server.example.comand press Enter. When the record works, the answer ends with your server's address, such asAddress: 203.0.113.10. If it says the name can't be found, wait a few minutes and try again.
You can install without this record. The panel still works, but two things wait for it:
- The links the installer prints use the name. Until the name works, open them with the IP address in place of the name, for example
https://203.0.113.10:7443/setup#...instead ofhttps://server.example.com:7443/setup#.... Your browser warns that the connection is not private; create your admin login shows how to go on. - The server can't get a free certificate for its name, so your browser keeps warning when you open the panel.
You can add the record later.
If you plan to run your own name servers with freePanel (the --dns option, which a plain install includes), you will also add records for ns1 and ns2 later. The first hour checklist shows how.
5. Open ports
A port is a numbered door on the server; each service listens behind its own door. A firewall decides which doors the internet can reach.
There can be two firewalls:
- The server's own firewall (firewalld or ufw). A plain install opens the ports it needs in it for you, if it is running.
- Your hosting company's firewall, which some companies have in their control area (it may be called a firewall, security group or network rules). The installer can't change this one. If your company has one, allow these ports there, coming in:
| Ports | What uses them |
|---|---|
| 22 | SSH, so you can still sign in (usually already allowed) |
| 7443 and 7444 | The admin panel and the customer panel |
| 80 and 443 | Websites, and free certificates |
| 53 (TCP and UDP) | DNS, if this server will be a name server |
| 25, 587, 143 and 993 | Mail: receiving, sending from mail programs, and reading |
| 7445 | The database admin tool |
| 7446 | Webmail, and calendars and contacts |
| 21 and 30000 to 30999 | FTP |
Many hosting companies also block outgoing port 25 on new servers, to stop spam. Then your server can't send email to other servers. Ask your hosting company to open it, or check their help pages.
Checklist
- A fresh server running a supported system, with its IP address written down.
- You can sign in to it over SSH as root, or as a user that can use
sudo. hostname -fshows a full name such asserver.example.com.- An A record points that name at the server's IP address (or you know to use the IP address until it does).
- The ports above are allowed in your hosting company's firewall, if it has one.
Next: install freePanel.