Skip to content
🧮 Is Lifetime with ZapX Pass worth it? Work it out for your own servers in 30 seconds. Open the Lifetime calculator →

Set Up Pterodactyl on a Linux Server – Host Your Own Game Server Panel

Learn how to install Pterodactyl Panel and Wings on your Linux server and conveniently manage your own game servers through a web interface

29 November 202620 min read102 Views0 helpful

Introduction

Pterodactyl is a free, open-source panel that lets you manage game servers like Minecraft, Rust, ARK, or CS2 through a web interface. Each game server runs in its own Docker container, completely isolated from the others.

Pterodactyl consists of two parts:

  • Panel – the web interface where you manage servers, users, and resources (a PHP application with a database and web server)
  • Wings – the service on the server that starts, stops, and monitors the game server containers

In this guide, we’ll show you two options: the easy way using a One-Click App, where the Panel and Wings are already connected, and the manual installation via the console on your ZapX VPS or Dedicated Server with your own domain, SSL, and first game server. We’ll also show you how to connect another VPS to your Panel as a Node using the Wings One-Click App.

Easy option: Pterodactyl as a One-Click App

With your VPS’s One-Click Apps, you can install the complete setup in just a few clicks: the Panel, including the database (MariaDB 11.8) and Redis, plus Wings. Wings is already added and connected in the Panel as the This vServer Node, so you can create your first game server right after your first login.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set Up One-Click Apps for instructions.
  • At least 4 GB RAM for Pterodactyl; 4 vCPU, 8 GB RAM, and 70 GB SSD are recommended. Your game servers will run on the same VPS and require additional resources.
Info: Choose the right app

For a complete setup, choose the Pterodactyl app: it’s the only one that includes the Panel with Wings already connected. The Wings app contains only the Wings service, without a Panel. It’s intended for another VPS that you want to connect to an existing Panel. See the “Connect another VPS as a Node” section below.

Install

  1. Open your VPS in the ZapX Dashboard and go to the One-Click Apps tab.
  2. Search for Pterodactyl in the app catalog and click Install app.
  3. Fill in the fields:
FieldDescription
ADMIN_EMAILRequired. Your email address, which you’ll use to sign in to the Panel.
ADMIN_PASSWORDRequired. Your Panel password, at least 8 characters long.
ADMIN_USERNAMEOptional. Your admin account name; the default is admin.
TIMEZONEOptional. The time zone for the Panel and game servers; the default is Europe/Berlin.
  1. Use a custom subdomain or zap.cloud is already selected, with a randomly generated name. Leave this option enabled or enter your own name: with a domain, the Panel is available over HTTPS instead of only HTTP.
  2. Click Queue installation. It may take a few minutes for the Panel, database, and Wings to be ready.

First login and first game server

Open the app’s address and sign in with the ADMIN_EMAIL and ADMIN_PASSWORD you entered during installation. Create a game server as described below under Create your first game server, and select This vServer as the Node.

These ports are already set up as Allocations for game servers:

PortsTypical use
25565–25599Minecraft
27015–27029Source games, Rust, ARK, and many Steam games

You can add more ports in the admin area under Nodes > This vServer > Allocation, using the IP address 0.0.0.0. Players connect using <app address>:<port>, for example, port 25565 for Minecraft. SFTP uses port 2022. You can upload files up to 100 MB directly in the Panel’s file manager.

Info: Minecraft: Accept the EULA

The first time you start a Minecraft server, it will stop unless you accept the Minecraft EULA. The next time you start it, the Panel will display the Accept Minecraft EULA dialog. Click I Accept.

Tip: Coming from the old web interface?

Have you been managing your game servers in the old game server web interface? Ask the ZapX AI Agent to migrate your game servers to Pterodactyl. You’ll then be able to manage them through a graphical interface again.

Email delivery and uninstalling

  • By default, the Panel doesn’t send emails. “Forgot password” will say that a link was sent, but the email never arrives. The same applies to emails about new accounts or installed servers. Set up email delivery right after your first login in the admin area under Settings > Mail, using the SMTP details from your email provider.
  • Game servers run in their own Docker containers alongside the app, and their files are stored in /var/lib/pterodactyl. Delete your game servers in the Panel before uninstalling the app; otherwise, the containers and files will remain on the VPS.

Connect another VPS as a Node: Wings as a One-Click App

If your Panel server no longer has enough resources, or you want to distribute your game servers across multiple servers, connect another VPS as an additional Node. The app catalog includes the Wings app for this purpose. It installs only the Wings service, without a Panel, database, or separate login.

Warning: Wings alone isn’t enough

Wings receives all commands from the Panel. You can’t use this app without a running Pterodactyl Panel. You’ll need a Panel first, such as the Pterodactyl One-Click App on another VPS or a Panel you installed manually as described below.

Requirements

  • A Pterodactyl Panel available over HTTPS at a domain, and an admin account in the Panel.
  • A second Linux VPS with One-Click Apps set up. Wings and the Pterodactyl app can’t run on the same VPS: both need port 2022 for SFTP, and the installation will be rejected with a message saying port 2022 is already being used by the “Pterodactyl” app. Wings is already set up as the This vServer Node on the VPS running the Pterodactyl app.
  • Enough CPU, RAM, and storage for the game servers you want to run on this Node. Wings itself needs very few resources; the game servers are what matter.

Install Wings

  1. Open the second VPS in the ZapX Dashboard and go to the One-Click Apps tab.
  2. Search for Wings in the app catalog and click Install app.
  3. Leave Use a custom subdomain or zap.cloud enabled. You’ll need the domain as the Node’s FQDN shortly, because the Panel communicates with Wings over HTTPS through this domain.
  4. Optionally, set the time zone under TIMEZONE, for example Europe/Berlin (the default is UTC). You don’t need the automatically generated SERVICE_USER_WINGS value.
  5. Click Queue installation.

Wings won’t be connected to your Panel immediately after installation. The provided configuration is only a template: the Panel address is missing, and the credentials are placeholders. As a result, Wings will go offline shortly after starting, the Wings domain will display “502 Bad Gateway,” and the Logs will show “unsupported protocol scheme.” This will be resolved once you complete the next two steps.

Add a Node in the Panel

  1. Open the admin area in your Panel (gear icon). If you don’t already have a suitable Location, create one under Locations by clicking Create New.
  2. Go to Nodes and click Create New.
  3. Enter the Wings app’s domain as the FQDN, without https://, for example, wings.example.com.
  4. Under Communicate Over SSL, select Use SSL Connection. Under Behind Proxy, select Behind Proxy. The One-Click Apps proxy provides the certificate, not Wings itself.
  5. Under Total Memory and Total Disk Space, enter how much RAM and storage Wings can allocate to game servers. Leave some resources available for the system.
  6. Set Daemon Port to 443 and leave Daemon SFTP Port at 2022. Save the Node.
Info: Daemon Port 443, not 8080

The Panel reaches Wings through port 443 (HTTPS) on the Wings domain. The proxy forwards requests internally to Wings, which listens on port 8443 in the container. With the default value of 8080, the Panel won’t be able to connect.

Apply the configuration

Open the new Node and go to the Configuration tab. The Panel displays the configuration for this Node. Copy only three values from it; don’t copy the entire block. It contains port 443 instead of 8443 and different SSL settings, which would make Wings unreachable in the container. For the same reason, don’t use Generate Token with the automatic command here.

Edit the file in the Coolify Panel for your VPS. You can find the address and login details in the One-Click Apps tab under Access & Settings. Open the app’s project there (default: “ZAP Apps”), then the Wings service, and then “Persistent Storages” with the /etc/pterodactyl/config.yml file. If the file is read-only there, edit the content block under “General” > “Edit Compose File.”

Update these lines:

yaml
uuid: NODE_UUID
token_id: NODE_TOKEN_ID
token: NODE_TOKEN
api:
  host: 0.0.0.0
  port: 8443
  ssl:
    enabled: false
remote: 'https://panel.example.com'
  • Copy uuid, token_id, and token from the Node’s Configuration tab.
  • remote is your Panel’s address: include https://, don’t add a trailing slash, and don’t include /api.
  • Leave api.host as 0.0.0.0, api.port as 8443, and ssl.enabled as false. This is the address Wings listens on inside the container, not the Panel’s address.
  • Leave the rest of the file unchanged (for example, system.sftp.bind_port: 2022 and the data path).

Save the file and restart Wings using Restart on the app card. After a short time, a green heart will appear next to your new Node under Nodes in the Panel. If it remains red, first check remote and the three credentials, then check the app’s Logs.

Allocations, ports, and SFTP

In the admin area, open the new Node’s Allocation tab and add the ports for your game servers. Use the public IP address of the Wings VPS from the ZapX Dashboard, never 127.0.0.1. Don’t use ports occupied by the One-Click Apps themselves: 80, 443, 8000, 6001, 6002, 8080, and 2022 for SFTP.

Players connect using <IP address or Wings domain>:<port>. SFTP for game servers on this Node uses port 2022 on the Wings VPS. If you use the VPS’s Network firewall, allow port 2022 (TCP) and the ports in your Allocations.

Create a game server on the new Node as described under Create your first game server, and select the new Node.

Updates and uninstalling

  • Get new Wings versions through the app settings under App update, using Check for updates and Apply update. Then check whether your values are still in config.yml. If not, enter them again; the Node’s Configuration tab will show them whenever you need them.
  • Game server files are stored on the Wings VPS under /var/lib/pterodactyl/volumes. Back them up using the backups for this VPS.
  • If you want to remove the Node, first delete its game servers in the Panel, then delete the Node under Nodes, and only then uninstall the Wings app. Otherwise, the containers and files will remain on the VPS.

Manual installation

The rest of this guide describes the manual installation of the Panel and Wings using the console, for example, on a Dedicated Server or if you want to choose every step yourself.

Preparation

To use Pterodactyl, you’ll need a VPS or Dedicated Server running Linux, with root access over SSH. See our guide to First SSH Login for instructions on connecting to your server. New to ZapX? Start with the introduction to VPS or Dedicated Servers.

Tip

SSH key authentication

We recommend using an SSH key instead of a password. See our guide to Create and Use SSH Keys for instructions.

Hardware requirements

The Panel itself is lightweight. The resources you need depend mainly on how many game servers you want to run through Wings. If you’re running the Panel and Wings on the same server, we recommend:

HardwareMinimumRecommended
CPU2 vCPU cores4 vCPU cores or more
RAM4 GB8 GB or more
Disk space30 GB100 GB or more

Supported operating systems

According to the official Pterodactyl documentation, these systems are currently supported:

Operating systemVersionsNote
Ubuntu22.04, 24.04Ubuntu 22.04 requires an additional PHP repository
Debian11, 12, 13PHP 8.3 comes from the Sury repository
Rocky Linux / AlmaLinux / RHEL8, 9Different package names and paths; not covered in this guide

This guide provides commands for Ubuntu and Debian. Ubuntu 20.04 and earlier are no longer supported by the Panel. If you’re setting up a new system, we recommend Ubuntu 24.04 or Debian 12.

Check virtualization

Wings requires Docker. Docker runs without issues on KVM-based servers and Dedicated Servers, but usually doesn’t run on OpenVZ or LXC containers. Check with this command:

bash
systemd-detect-virt

The output kvm or none (Dedicated Server without virtualization) is fine. If it shows openvz or lxc, you generally can’t run Wings on this server.

Update the system

Update your system before installation:

bash
apt update && apt upgrade -y

Install dependencies

The Panel requires PHP 8.2 or 8.3 (8.3 is recommended) with several extensions, a database (MariaDB or MySQL), Redis, a web server (we use Nginx), as well as curl, tar, unzip, git, and Composer. Run the commands for your distribution.

Ubuntu 24.04

PHP 8.3, MariaDB, and Redis are already available in the default package repositories in Ubuntu 24.04. You don’t need any additional repositories:

bash
apt -y install software-properties-common curl apt-transport-https ca-certificates gnupg
apt -y install php8.3 php8.3-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} mariadb-server nginx tar unzip git redis-server

Ubuntu 22.04

Ubuntu 22.04 only includes PHP 8.1. First, add the PHP repository from Ondřej Surý and the official Redis repository, then install all the packages:

bash
# Werkzeuge für zusätzliche Repositories
apt -y install software-properties-common curl apt-transport-https ca-certificates gnupg

# PHP-Repository (PPA) hinzufügen
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php

# Offizielles Redis-Repository hinzufügen
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list

# Paketlisten neu laden und Abhängigkeiten installieren
apt update
apt -y install php8.3 php8.3-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} mariadb-server nginx tar unzip git redis-server

Debian 11 and 12

On Debian 11 and 12, PHP 8.3 comes from the Sury repository, Redis from the official Redis repository, and MariaDB is installed using MariaDB’s setup script:

bash
# Benötigte Werkzeuge
apt install -y curl ca-certificates gnupg2 sudo lsb-release

# PHP-Repository von Sury hinzufügen
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list
curl -fsSL https://packages.sury.org/php/apt.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/sury-keyring.gpg

# Offizielles Redis-Repository hinzufügen
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list

# MariaDB-Repository einrichten
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash

# Paketlisten neu laden und Abhängigkeiten installieren
apt update
apt install -y php8.3 php8.3-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} mariadb-server nginx tar unzip git redis-server

Debian 13

Debian 13 includes PHP 8.4 by default, which Pterodactyl doesn’t officially support. Get PHP 8.3 from the Sury repository instead. Install MariaDB and Redis directly from the Debian package repositories, without adding any repositories:

bash
# Benötigte Werkzeuge
apt install -y curl ca-certificates gnupg2 sudo lsb-release

# PHP-Repository von Sury hinzufügen
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/sury-php.list
curl -fsSL https://packages.sury.org/php/apt.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/sury-keyring.gpg

# Paketlisten neu laden und Abhängigkeiten installieren
apt update
apt install -y php8.3 php8.3-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} mariadb-server nginx tar unzip git redis-server

Install Composer

Composer is the package manager for PHP, which the Panel uses to download its libraries. Install it with:

bash
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Then check that PHP 8.3 is active:

bash
php -v

Download the Panel

Create the Panel directory and navigate to it:

bash
mkdir -p /var/www/pterodactyl
cd /var/www/pterodactyl

Download the latest release, extract it, and set the permissions for the storage/ and bootstrap/cache/ directories:

bash
curl -Lo panel.tar.gz https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz
tar -xzvf panel.tar.gz
chmod -R 755 storage/* bootstrap/cache/

Install the Panel

Create a database

The Panel stores all its data in a dedicated database. Log in to MariaDB:

bash
mariadb -u root -p

Create a user and database for the Panel. Replace DeinSicheresPasswort with a strong password of your own:

sql
CREATE USER 'pterodactyl'@'127.0.0.1' IDENTIFIED BY 'DeinSicheresPasswort';
CREATE DATABASE panel;
GRANT ALL PRIVILEGES ON panel.* TO 'pterodactyl'@'127.0.0.1' WITH GRANT OPTION;
exit

Learn more about MariaDB and other databases in our guide to Set Up Databases on a Linux Server.

Basic configuration

Copy the example configuration, install the PHP dependencies, and generate the application key:

bash
cp .env.example .env
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader

# Nur bei einer Neuinstallation ausführen, nicht bei einem bestehenden Panel
php artisan key:generate --force
Warning

Back up your APP_KEY

The APP_KEY value in the .env file encrypts all sensitive Panel data, such as API keys. If it’s lost, this data can no longer be read, even with a database backup. Display it using grep APP_KEY /var/www/pterodactyl/.env and save it somewhere secure outside the server, such as in your password manager.

Configure the environment

Use the following commands to configure sessions, cache, the database connection, and email delivery. The commands will prompt you for the required values:

bash
php artisan p:environment:setup
php artisan p:environment:database

# Optional: Mailversand einrichten ("smtp" für einen eigenen Mailserver)
php artisan p:environment:mail

When prompted for the Application URL, enter the future address of your Panel, for example, https://panel.example.com. For the database, use 127.0.0.1, the database name panel, the username pterodactyl, and the password you set earlier. You can select Redis for cache, sessions, and queue.

Populate the database

The Panel will now create its tables and import the included Nests and Eggs (templates for individual games):

bash
php artisan migrate --seed --force
Info

Please wait

This may take a few minutes. Don’t cancel the process, or the database will be incomplete.

Create the first admin account

Create your admin account. The password must be at least 8 characters long and contain uppercase and lowercase letters, as well as at least one number:

bash
php artisan p:user:make

When asked whether the user should be an administrator, answer yes.

Set permissions

To allow Nginx and PHP to access the files, assign them to the web server user:

bash
chown -R www-data:www-data /var/www/pterodactyl/*

Set up the cron job and queue worker

The Panel performs many tasks in the background, such as scheduled tasks, emails, and cleanup. You’ll need a cron job and a queue worker for this.

Cron job

Open the crontab with sudo crontab -e and add this line. It runs the Panel’s scheduler every minute:

bash
* * * * * php /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1

Queue worker (pteroq)

The queue worker runs continuously in the background as a systemd service. Create the file:

bash
nano /etc/systemd/system/pteroq.service

Add this content:

ini
# Pterodactyl Queue Worker File
# ----------------------------------

[Unit]
Description=Pterodactyl Queue Worker
After=redis-server.service

[Service]
User=www-data
Group=www-data
Restart=always
ExecStart=/usr/bin/php /var/www/pterodactyl/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3
StartLimitInterval=180
StartLimitBurst=30
RestartSec=5s

[Install]
WantedBy=multi-user.target

Save with CTRL + X, then Y and Enter. Then enable Redis and the queue worker so they both start automatically after a reboot:

bash
sudo systemctl enable --now redis-server
sudo systemctl enable --now pteroq.service

Use systemctl status pteroq to check whether the service is running.

Set up the web server and SSL

To access the Panel over HTTPS using your own domain, you’ll now configure DNS, an SSL certificate, and Nginx.

Add a DNS record

Create an A record with your domain provider that points to your server’s IP address, for example, panel.example.com. If your domain is with ZAP-Hosting, see our guide to Domain Records. It may take a while for the record to become active worldwide.

Create an SSL certificate with Certbot

Install Certbot with the Nginx plugin and create the certificate. Replace panel.example.com with your domain:

bash
apt install -y certbot python3-certbot-nginx
certbot certonly --nginx -d panel.example.com

Certbot verifies the domain through port 80, so the port must be accessible from the internet. Learn more about Certbot in our guide to Set Up Certbot on a Linux Server.

The Certbot package renews certificates automatically. To ensure Nginx and Wings also load a renewed certificate, you can add this line to the crontab (sudo crontab -e):

bash
0 23 * * * certbot renew --quiet --deploy-hook "systemctl restart nginx wings"

Configure Nginx with SSL

Remove the default Nginx configuration:

bash
rm /etc/nginx/sites-enabled/default

Create a new configuration file for the Panel:

bash
nano /etc/nginx/sites-available/pterodactyl.conf

Add this configuration and replace panel.example.com with your domain in all four places:

nginx
server {
    listen 80;
    server_name panel.example.com;
    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl http2;
    server_name panel.example.com;

    root /var/www/pterodactyl/public;
    index index.php;

    access_log /var/log/nginx/pterodactyl.app-access.log;
    error_log  /var/log/nginx/pterodactyl.app-error.log error;

    # Größere Uploads und längere Laufzeiten erlauben
    client_max_body_size 100m;
    client_body_timeout 120s;

    sendfile off;

    # SSL-Konfiguration
    ssl_certificate /etc/letsencrypt/live/panel.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/panel.example.com/privkey.pem;
    ssl_session_cache shared:SSL:10m;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
    ssl_prefer_server_ciphers on;

    add_header X-Content-Type-Options nosniff;
    add_header X-XSS-Protection "1; mode=block";
    add_header X-Robots-Tag none;
    add_header Content-Security-Policy "frame-ancestors 'self'";
    add_header X-Frame-Options DENY;
    add_header Referrer-Policy same-origin;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTP_PROXY "";
        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
        include /etc/nginx/fastcgi_params;
    }

    location ~ /\.ht {
        deny all;
    }
}
Warning

Certificate required first

Nginx will only start with this configuration if the SSL certificate already exists. Be sure to create it with Certbot first.

Configure Nginx without SSL

If you only want to test the Panel and aren’t ready to use a domain with a certificate, you can use this simpler configuration in /etc/nginx/sites-available/pterodactyl.conf instead. Replace panel.example.com with your domain or your server’s IP address. Also, delete /etc/nginx/sites-enabled/default first:

nginx
server {
    listen 80;
    server_name panel.example.com;

    root /var/www/pterodactyl/public;
    index index.html index.htm index.php;
    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log off;
    error_log  /var/log/nginx/pterodactyl.app-error.log error;

    client_max_body_size 100m;
    client_body_timeout 120s;

    sendfile off;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/run/php/php8.3-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param HTTP_PROXY "";
        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
        fastcgi_connect_timeout 300;
        fastcgi_send_timeout 300;
        fastcgi_read_timeout 300;
    }

    location ~ /\.ht {
        deny all;
    }
}

Without SSL, logins and passwords are transmitted over the network unencrypted. For ongoing use, always use the SSL option.

Enable the configuration

Enable the configuration, check it for errors, and restart Nginx:

bash
sudo ln -s /etc/nginx/sites-available/pterodactyl.conf /etc/nginx/sites-enabled/pterodactyl.conf
sudo nginx -t
sudo systemctl restart nginx

Now open https://panel.example.com in your browser and sign in with the admin account you created earlier. For general information about Nginx, see our guide to Set Up Nginx and Apache on a Linux Server.

Install Wings

Wings is the service that actually runs your game servers. You can install Wings on the same server as the Panel or on additional servers, which you can then connect to the Panel as extra Nodes.

Install Docker

Wings starts each game server in a Docker container. Install Docker CE using the official installation script and enable the service:

bash
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
sudo systemctl enable --now docker

Learn more about Docker in our guide to Set Up Docker on a Linux Server.

Download Wings

Create the configuration directory and download the latest version of Wings for your CPU architecture:

bash
sudo mkdir -p /etc/pterodactyl
curl -L -o /usr/local/bin/wings "https://github.com/pterodactyl/wings/releases/latest/download/wings_linux_$([[ "$(uname -m)" == "x86_64" ]] && echo "amd64" || echo "arm64")"
sudo chmod u+x /usr/local/bin/wings

Create a Location and Node in the Panel

Before Wings can start, create a Node in the Panel for the server running Wings:

  1. Open the admin area in the top-right corner of the Panel (gear icon).
  2. Create a Location under Locations by clicking Create New, for example, with the code de1.
  3. Go to Nodes and click Create New.
  4. Enter a name, select the Location, and enter the server’s domain as the FQDN. If Wings is running on the same server as the Panel, you can use the same domain, for example, panel.example.com.
  5. Under Communicate Over SSL, select Use SSL Connection if your Panel uses HTTPS. The Node will also need a valid certificate for its FQDN.
  6. Under Total Memory and Total Disk Space, enter how much RAM and storage Wings can allocate to game servers. Leave some resources available for the system itself.
  7. Leave Daemon Port set to 8080 and Daemon SFTP Port set to 2022, then save the Node.

Next, open the Node and go to the Configuration tab. Click Generate Token and run the displayed command on your server. It will automatically write the /etc/pterodactyl/config.yml file. Alternatively, copy the contents of the code block into this file manually.

Test Wings

Run Wings once in debug mode to see any errors right away:

bash
sudo wings --debug

If Wings runs without errors and the Node has a green heart under Nodes in the Panel, stop the test with CTRL + C.

Run Wings as a service

To keep Wings running in the background, create a systemd service:

bash
nano /etc/systemd/system/wings.service

Add this content:

ini
[Unit]
Description=Pterodactyl Wings Daemon
After=docker.service
Requires=docker.service
PartOf=docker.service

[Service]
User=root
WorkingDirectory=/etc/pterodactyl
LimitNOFILE=4096
PIDFile=/var/run/wings/daemon.pid
ExecStart=/usr/local/bin/wings
Restart=on-failure
StartLimitInterval=180
StartLimitBurst=30
RestartSec=5s

[Install]
WantedBy=multi-user.target

Enable and start the service:

bash
sudo systemctl enable --now wings

Create Allocations

An Allocation is a combination of an IP address and port that you assign to a game server. Each server needs at least one. Find your server’s IP address with:

bash
hostname -I | awk '{print $1}'

In the admin area, open your Node, go to the Allocation tab, and enter the IP address and desired ports under Assign New Allocations, for example, 25565-25570 for Minecraft. Never use 127.0.0.1 as an Allocation.

Firewall and ports

If you use a firewall on your server, these ports must be open:

PortProtocolPurpose
80 and 443TCPPanel (HTTP/HTTPS) and certificate verification by Certbot
8080TCPWings API, which the Panel uses to communicate with the Node
2022TCPSFTP access to game server files
Game portsTCP/UDPThe ports in your Allocations, for example, 25565 for Minecraft

For example, you can allow the ports using UFW as follows. Be sure to allow SSH first, or you’ll lock yourself out when you enable it:

bash
ufw allow OpenSSH
ufw allow 80,443/tcp
ufw allow 8080/tcp
ufw allow 2022/tcp
ufw allow 25565:25570/tcp
ufw allow 25565:25570/udp
ufw enable

Learn more in our guide to Managing the Firewall on Linux.

Info

Docker and UFW

Docker creates its own rules for the ports used by game server containers. These ports are therefore often accessible even if you haven’t allowed them in UFW. Don’t rely on UFW alone to secure game ports.

Create your first game server

Everything is now ready for your first game server:

  1. In the admin area, open Servers and click Create New.
  2. Enter a name and select the owner (for example, your admin account).
  3. Select the Node and an available Allocation.
  4. Set how much CPU, RAM, and storage the server will have.
  5. Under Nest and Egg, select the game, for example, Minecraft with Paper.
  6. Click Create Server.

Wings will now download the appropriate Docker image and install the server. You’ll then find it in the Panel’s regular view, where you can start it, open the console, and manage its files.

Conclusion and additional resources

Congratulations! You’ve successfully installed Pterodactyl Panel and Wings on your server and can now manage your own game servers through the web interface. These resources may help:

Note: Since version 1.11, Pterodactyl has sent anonymous usage data (telemetry). The official documentation explains how to disable this under “Additional Configuration.”

Do you still have questions that aren’t answered here? Our support team is here to help every day—just get in touch! 🙂

Free tools

Related tools for servers and developers

View all

FAQ

Frequently asked questions

Pterodactyl is a free, open-source panel for managing game servers. It consists of the Panel (the web interface) and Wings (the server service), which starts each game server in its own Docker container.
According to the official documentation, Ubuntu 22.04 and 24.04, Debian 11, 12, and 13, and Rocky Linux, AlmaLinux, and RHEL 8 and 9 are supported. The Panel no longer supports Ubuntu 20.04 and earlier.
The Panel requires PHP 8.2 or 8.3; PHP 8.3 is recommended. On Ubuntu 22.04 and Debian, PHP 8.3 comes from an additional repository, while Ubuntu 24.04 includes it by default.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.