Control Panel

How to Install PufferPanel on Ubuntu 20.04

In this article, we’ll explain how to install PufferPanel on Ubuntu 20.04.

PufferPanel is a web-based Game Server Management System that allows you to create multiple game servers. PufferPanel supports Minecraft, Forge, Spigot, Sponge, Source Dedicated Servers, BungeeCord, PocketMine, Forge, and much more.

Prerequisites

  • A KVM VPS or Dedicated server with Ubuntu 20.04 installed.
  • SSH access and administrative (root or sudo) privileges on the server
  • PHP 7.1+
  • MySQL 5.6+ (MariaDB 10.2 is recommended)
  • Subdomain for the panel

Install PufferPanel on Ubuntu 20.04

Step 1 – Keep the server updated

# apt update -y

# apt upgrade -y

Step 2 – Add the installation source

# curl -s https://packagecloud.io/install/repositories/pufferpanel/pufferpanel/script.deb.sh | sudo bash

Step 3 – Install PufferPanel

# apt-get install pufferpanel -y

Step 4 – Start and enable the PufferPanel service.

# systemctl start pufferpanel

# systemctl enable pufferpanel

Step 5 – Configure firewall

If you are using UFW.

# ufw allow 8080/tcp

# ufw allow 5657/tcp

If you are using firwalld

# firewall-cmd –add-port=8080/tcp –permanent

# firewall-cmd –add-port=5657/tcp –permanant

# firewall-cmd –reload

Step 6 – Create your administrator account

Answer Y when PufferPanel asks if this account is an administrator.

# pufferpanel user add

Access the PufferPanel WebUI at port 8080 in your web browser. Replace the example IP address with your server’s address.

# http://192.0.0.100:8080

The installation has been completed successfully.

Configure PufferPanel

  1. Log in to the PufferPanel WebUI using your administrator credentials.
  2. Navigate to Templates in the left side menu.
  3. Click Import Templates to open the pop-up.
  4. Select a game server template you want to import from the drop-down options.
  5. Click Import Templates. Wait for the template to download.

Create a Server

  1. Click Servers in the left side menu.
  2. Click the plus button in the bottom-right of your screen.
  3. Enter the requested information.
  4. Deploy the gaming server you created.

Add custom subdomain for SSL

To perform this task you need FQDN. Before going forward, first add a DNS “A” record for your server.

Install Nginx

# apt-get install -y nginx

Create an Nginx configuration file for PufferPanel.

# vi /etc/nginx/sites-enabled/pufferpanel.conf

Paste the following code into the file. Replace panel.example.com with your server’s name.

server {
listen 80;
root /var/www/pufferpanel;

server_name panel.example.com;

location ~ ^/\.well-known {
root /var/www/html;
allow all;
}

location / {
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Nginx-Proxy true;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “Upgrade”;
proxy_set_header Host $host;
client_max_body_size 100M;
}
}

Save and exit the file.
Restart Nginx.

# systemctl restart nginx

Install Let’s Encrypt.

# apt-get install -y certbot python3-certbot-nginx

Request an SSL certificate with Certbot. Replace panel.example.com with your server’s name.

# certbot –nginx -d panel.example.com

Answer the question posed by Certbot.

Navigate to PufferPanel in your web browser using the server name.

We have successfully installed and configured PufferPanel.

In this article, we have seen how to install PufferPanel on Ubuntu 20.04.

Related Articles