First steps
After you install Nefo, work through these steps in order. Each one is short and links to a page with the details.
Sign in
- Open the URL that the installer printed, such as
https://203.0.113.10:28443/k3x9p2qa7m1z/. - Accept the browser's certificate warning. It goes away once the panel has its own certificate (see below).
- Enter Username
adminand the password from the installer, then click Sign in.
If you lost the URL or the password, run nefo info or nefo reset-password on the server (see Command line).
Change the password
Replace the password from the installer with one you keep in a password manager.
- In the left menu, open Account. You can also open it from the account menu at the top right: Password and 2FA.
- Under Change password, fill in Current password, New password and Repeat new password. The new password needs 12 to 72 characters.
- Click Change password.
The panel signs you out on every device. Sign in again with the new password.
Turn on two-factor authentication
With two-factor authentication, signing in needs your password and a 6-digit code from an authenticator app, such as Google Authenticator, Authy or 2FAS. Until you turn it on, the dashboard and the notifications menu show "Two-factor sign-in is off".
- Open Account.
- Under Two-factor authentication, click Set up.
- Scan the QR code with your authenticator app, or type in the Setup key.
- Enter the 6-digit code that the app shows, and click Turn on.
From now on, the sign-in page asks for a Two-factor code after your password.
Keep a way back in
If you lose your phone, you can only turn two-factor authentication off from the server, with nefo reset-password --disable-2fa (see Troubleshooting). Keep your SSH access working, or save the setup key somewhere safe.
Install a web server and PHP
Websites need a web server. Nefo runs one per server.
- Open Websites. On a new server it shows Install the web server.
- Choose a web server:
- Nginx: fast and light, the best choice unless your websites need
.htaccessfiles. - Apache: reads
.htaccessfiles, which many WordPress plugins and sites from shared hosting rely on. It uses a little more memory. - OpenLiteSpeed: reads the rewrite rules in
.htaccessfiles and has LiteSpeed Cache built in. It comes from LiteSpeed's own package repository.
- Nginx: fast and light, the best choice unless your websites need
- Click the install button, such as Install Nginx.
The panel installs the web server and your distribution's PHP version, and opens ports 80 and 443 if the firewall (ufw) is on. This takes one to three minutes, and the progress shows on the page.
To switch to another web server later, you must delete all websites first. Add more PHP versions, MariaDB and other components on the Software page. See Software.
Give the panel its own domain
With its own domain, the panel gets a free Let's Encrypt certificate, and the browser warning goes away. You need a web server first, because it answers Let's Encrypt on port 80.
- At your DNS provider, create an A record for a name such as
panel.example.com, pointing to the server's IP address. It must point straight to the server, without a proxy or CDN in front (with Cloudflare, use "DNS only"). - Make sure port 80 is open, also in your provider's cloud firewall.
- In the panel, open Settings → Certificate.
- In Domain of the panel, enter
panel.example.com, and click Get certificate.
The panel first checks that the domain reaches this server, then asks Let's Encrypt for the certificate. It uses the new certificate within a minute, and shows the new address, such as https://panel.example.com:28443/k3x9p2qa7m1z/. Use that address from now on: the panel keeps the same port and secret path. With the IP address, the browser warns again, because the certificate is for the domain.
The certificate renews automatically. To go back to the self-signed certificate, click Delete on the same page.
If the request fails, see Troubleshooting.
Create your first website
- Point the domain's A record, such as
example.com, to the server's IP address. - Open Websites and click Add website.
- Enter the Domain without
http://orwww.. Keep Also answer on www.example.com ticked if you want both names. - Choose the Type: a PHP version, Static (HTML only), or an app (Node.js or Python).
- Click Create website.
- Click Turn on HTTPS next to the website to get a free certificate.
Upload your files to /var/www/example.com/public, with the Files page or over SFTP. To install WordPress or another application instead, use the App store. See Websites, SSL certificates and App store.
Set up backups
- Open Backups.
- Under Automatic backups, click Add schedule.
- Choose what to back up (a website, a database or a folder), how often, and the Number of backups to keep.
- Click Save schedule.
A website backup contains its files and the databases linked to it. Backups are kept on the server in /var/backups/panel. Add Remote storage (S3-compatible or SFTP) so a copy survives if the server is lost. See Backups.
Turn on the firewall
If the dashboard says "The firewall is off", every port that a program opens is reachable from the internet.
- Open Firewall & SSH.
- Click Turn on the firewall.
The panel keeps SSH and the panel's own port open. If the page says that ufw is not installed, install it first with apt install ufw. See Security.