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.

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

  1. Open a terminal on your own computer. On Windows, open PowerShell from the Start menu. On a Mac, open Terminal from Applications > Utilities.
  2. Type ssh root@203.0.113.10, using your server's IP address in place of 203.0.113.10, and press Enter.
  3. The first time, you see a question that ends in Are you sure you want to continue connecting (yes/no/[fingerprint])?. Type yes and press Enter.
  4. Type the root password your hosting company gave you and press Enter. Nothing shows while you type: that is normal.
  5. 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.

Give the server its name

  1. On the server, type hostnamectl set-hostname server.example.com and press Enter, using your own name. If your prompt ends in $ (you are not root), put sudo in front: sudo hostnamectl set-hostname server.example.com.
  2. Type hostname -f and press Enter.
  3. 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

  1. 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.
  2. Open the DNS settings for your domain, for example example.com.
  3. 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 only server. Set the value (also called "points to" or "IPv4 address") to your server's IP address, such as 203.0.113.10.
  4. Leave the TTL (how long other computers remember the record) at the page's default.
  5. Save it.
  6. Wait. A new record usually works within minutes, but can take up to a day to reach everyone.
  7. To check, open a terminal on your own computer, type nslookup server.example.com and press Enter. When the record works, the answer ends with your server's address, such as Address: 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:

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:

PortsWhat uses them
22SSH, so you can still sign in (usually already allowed)
7443 and 7444The admin panel and the customer panel
80 and 443Websites, and free certificates
53 (TCP and UDP)DNS, if this server will be a name server
25, 587, 143 and 993Mail: receiving, sending from mail programs, and reading
7445The database admin tool
7446Webmail, and calendars and contacts
21 and 30000 to 30999FTP

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

Next: install freePanel.