Install Pterodactyl: complete guide for panel and Wings
Pterodactyl is an open-source panel for managing game servers. It has two parts. The panel is the web interface, and Wings is the daemon that runs each server in a Docker container. This guide shows how to install the Pterodactyl panel and Wings on a Linux server running Debian or Ubuntu. It follows the official documentation all the way to your first server, and also covers the automatic installer script.
This guide was updated in November 2026 for the stable 1.x release of Pterodactyl (panel 1.15.2 and Wings 1.13.4 at that date). Version 2.0 has been in open beta since October 14, 2026 and installs differently. It is not covered here.
What you need before starting
The panel and Wings can run on the same machine or on two separate machines. Either way, start from a recent system that still gets updates. These are the systems the Pterodactyl 1.x documentation supports.
| System | Pterodactyl 1.x | Our advice |
|---|---|---|
| Debian 13 | Supported | Recommended. Security fixes until June 2030 (LTS). |
| Debian 12 | Supported | Recommended. Security fixes until June 2028 (LTS). |
| Ubuntu 24.04 | Supported | Recommended. Standard support until May 2029. |
| Ubuntu 22.04 | Supported | Fine. Standard support until May 2027. |
| Debian 11 | Still listed | Avoid. No more security fixes since August 31, 2026. |
| Ubuntu 20.04 | Removed from the list | Avoid. Standard support ended in May 2025. |
| Rocky Linux and AlmaLinux 8 and 9 | Supported | Different packages and paths. Not covered in this guide. |
For a new installation, pick Debian 13 or Ubuntu 24.04. Ubuntu 26.04 is not yet on the 1.x list.
Also get these ready.
Root access, or a user with sudo rights.
Two subdomains with an A record pointing to the server, for example
panel.example.comfor the panel andnode.example.comfor Wings. The guide How to edit the DNS records of your domain shows how to create them.For Wings, a machine that can run Docker. KVM virtualization works. The
systemd-detect-virtcommand must not returnopenvzorlxc.A firewall that lets through ports 80 and 443 for the panel, 8080 and 2022 for Wings, and the ports of your game servers. The guide How to set up the UFW firewall on Ubuntu or Debian explains how to open them.
OuiHeberg Linux VPS plans run on KVM and come with root access. The guide How to manage your VPS from the client area explains how to reinstall their system from the client area. If you would rather have a server with the panel already in place, the Pterodactyl hosting offer provides a VPS with Pterodactyl preinstalled.
Log in as root and update the system.
apt update && apt upgrade -y
Install the panel dependencies
The panel needs PHP 8.2 or 8.3, with 8.3 recommended. It also needs MariaDB 10.2 or later (or MySQL 5.7.22 and later), Redis, a web server and Composer 2. The commands below install PHP 8.3, MariaDB, Redis and Nginx.
On Debian 12 or 13
# Required packages
apt install -y curl ca-certificates gnupg2 sudo lsb-release
# Repository for PHP
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
# Official Redis repository (Debian 12, optional on Debian 13)
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 (Debian 12, optional on Debian 13)
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash
# Update the package lists
apt update
# Install the dependencies
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
On Debian 13, MariaDB and Redis install from the system repositories. You can skip the two blocks marked "optional".
On Ubuntu 22.04 or 24.04
# Provides the add-apt-repository command
apt -y install software-properties-common curl apt-transport-https ca-certificates gnupg
# Repository for PHP (needed on Ubuntu 22.04)
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
# Official Redis repository
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
# Update the package lists
apt update
# Install the dependencies
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
On Ubuntu 24.04, PHP 8.3 is part of the system repositories. The extra PHP repository is only needed on Ubuntu 22.04.
Install Composer
Composer downloads the PHP libraries the panel depends on.
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Deploying the Pterodactyl panel
Download the panel files
Create the panel folder, download the latest release and make the storage and bootstrap/cache folders writable.
mkdir -p /var/www/pterodactyl
cd /var/www/pterodactyl
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/
The latest link points to the latest stable release on GitHub. As long as 2.0 stays in beta, it downloads a 1.x release.
Create the database
Open the MariaDB console. If you never set a root password for MariaDB, press Enter.
mariadb -u root -p
Then create the pterodactyl user and the panel database.
# Replace yourPassword with a unique password
CREATE USER 'pterodactyl'@'127.0.0.1' IDENTIFIED BY 'yourPassword';
CREATE DATABASE panel;
GRANT ALL PRIVILEGES ON panel.* TO 'pterodactyl'@'127.0.0.1' WITH GRANT OPTION;
exit
Configure the environment
Copy the example file, install the PHP dependencies and generate the application encryption key.
cp .env.example .env
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader
# Only on a first installation, with an empty database
php artisan key:generate --force
Back up the
APP_KEYoutside the server, in a password manager for example. It encrypts the panel's sensitive data, such as API keys. If you lose it, that data is gone, even with a database backup.
This command shows the key to back up.
grep APP_KEY /var/www/pterodactyl/.env
Then run the three setup wizards.
php artisan p:environment:setup
php artisan p:environment:database
# smtp for an external mail server, mail for PHP's internal sending (not recommended)
php artisan p:environment:mail
p:environment:setupasks for the email address for exported eggs, then the panel URL with itshttps://prefix. It also asks for the timezone, for exampleEurope/London, and the cache, session and queue drivers. The default choice, Redis, works for all three.p:environment:databaseasks for the host, port, database, user and password created above.p:environment:mailsets up how the panel sends email.
Finally, create the tables. The command also adds the nests and eggs that ship with Pterodactyl. It can take several minutes, so do not interrupt it.
php artisan migrate --seed --force
Create the admin account
This command creates the first user. Answer yes to the question Is this user an administrator? to give it access to the admin area. The password needs at least 8 characters, with one capital letter and one number.
php artisan p:user:make
Then hand the panel files over to the web server user.
chown -R www-data:www-data /var/www/pterodactyl/*
Set up the cron job and the queue worker
The panel also works in the background. It sends emails and passes scheduled tasks to Wings. For that it needs a cron job and a queue worker service.
Open root's crontab with sudo crontab -e and add this line. It runs every minute.
* * * * * php /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1
Then create the file /etc/systemd/system/pteroq.service with this content.
# Pterodactyl queue worker
[Unit]
Description=Pterodactyl Queue Worker
After=redis-server.service
[Service]
# Debian and Ubuntu use www-data as the user and group
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
Enable Redis at boot, then the queue worker service.
sudo systemctl enable --now redis-server
sudo systemctl enable --now pteroq.service
Set up Nginx and the SSL certificate
The panel must be served over HTTPS. Create the certificate with Certbot first, then the Nginx site that uses it. In the reverse order, Nginx refuses to start because the certificate in its configuration does not exist yet.
Get the certificate with Certbot
sudo apt update
sudo apt install -y certbot
# Certbot plugin for Nginx
sudo apt install -y python3-certbot-nginx
Request the panel certificate. Port 80 must be reachable from the Internet during the check.
certbot certonly --nginx -d panel.example.com
For renewal, open sudo crontab -e again and add this line. It tries a renewal every day at 11 PM and reloads Nginx when a certificate changes.
0 23 * * * certbot renew --quiet --deploy-hook "systemctl reload nginx"
Create the Nginx site
Create the file /etc/nginx/sites-available/pterodactyl.conf with the content below. Replace panel.example.com with your domain everywhere it appears.
server {
# Replace panel.example.com with your panel domain
listen 80;
server_name panel.example.com;
return 301 https://$server_name$request_uri;
}
server {
# Replace panel.example.com with your panel domain
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;
# allow larger file uploads and longer script runtimes
client_max_body_size 100m;
client_body_timeout 120s;
sendfile off;
# SSL certificate created by Certbot
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;
# See https://hstspreload.org/ before uncommenting the line below.
# add_header Strict-Transport-Security "max-age=15768000; preload;";
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;
}
}
Remove the default site, enable yours and restart Nginx.
rm /etc/nginx/sites-enabled/default
sudo ln -s /etc/nginx/sites-available/pterodactyl.conf /etc/nginx/sites-enabled/pterodactyl.conf
sudo systemctl restart nginx
Open https://panel.example.com in your browser and log in with the admin account. If you prefer Apache or Caddy, the official documentation also gives their configuration.
Installing the Wings daemon
Run these commands on the machine that will host the game servers. It can be the panel's machine.
Install Docker
Wings runs each server in a Docker container. The Pterodactyl documentation suggests Docker's install script.
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
sudo systemctl enable --now docker
For production, Docker recommends its APT repository instead. The guide Install Docker on a Linux VPS covers that method.
Also check the kernel with uname -r. Some hosts install a modified kernel that lacks features Docker needs. Its name then ends with something like -grs-ipv6-64 or -mod-std-ipv6-64. Since kernel 6.1, swap for containers is on by default. On an older kernel, the Wings documentation explains how to enable it.
Install Wings
Create the configuration folder, then download the Wings binary for your processor, amd64 or arm64.
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 the node SSL certificate
When the panel uses HTTPS, Wings must too, with a certificate for its own domain.
# Wings on its own machine, without a web server
sudo apt install -y certbot
certbot certonly --standalone -d node.example.com
# Wings on the same machine as the panel
certbot certonly --nginx -d node.example.com
On a machine that only runs Wings, add the renewal line shown earlier and replace systemctl reload nginx with systemctl restart wings. If the panel and Wings share the same machine, restart Wings after each renewal.
Linking the Node to the panel
In the panel, open the admin area with the gears icon at the top right. It is also at https://panel.example.com/admin.
Create a location
In the left menu, open Locations and click Create New.
Fill in Short Code with a short name, such as
eu1. The Description is up to you.Click Create.
A location only groups your nodes, by region or by use.
Add the Node
Open Nodes and click Create New. Fill in the form, then click Create Node.
| Field | What to enter |
|---|---|
| Name | A name to recognize the node. |
| Location | The location you just created. |
| FQDN | The Wings domain, for example node.example.com. An IP address only works without SSL. |
| Communicate Over SSL | Use SSL Connection if the panel uses HTTPS. |
| Behind Proxy | Not Behind Proxy, unless a proxy handles SSL in front of Wings. |
| Daemon Server File Directory | The folder for server files, /var/lib/pterodactyl/volumes by default. |
| Total Memory | The memory to share between servers, in MiB (8192 for 8 GiB). Leave some headroom for the system. |
| Memory Over-Allocation | The allowed overrun, as a percentage. 0 blocks any overrun, -1 turns the check off. |
| Total Disk Space | The disk space to share, in MiB. |
| Disk Over-Allocation | Same idea, for the disk. |
| Daemon Port | 8080 by default. |
| Daemon SFTP Port | 2022 by default. Do not reuse the machine's SSH port. |
Start Wings
Open the new node, then its Configuration tab.
Copy the Configuration File content into
/etc/pterodactyl/config.ymlon the Wings machine. You can also click Generate Token and run the command it shows in that machine's terminal.
Start Wings in debug mode to check that it runs without errors. The first start can take a few minutes. Then stop it with Ctrl+C.
sudo wings --debug
To run it as a service, create the file /etc/systemd/system/wings.service with this content.
[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.
sudo systemctl enable --now wings
In the Nodes list, a green heart shows next to the node once the panel can reach Wings.
Add allocations and create a first server
Add allocations
An allocation pairs an IP address with a port. Each game server uses at least one. First, note the IP address of the Wings machine.
hostname -I | awk '{print $1}'
# All interfaces and their addresses
ip addr | grep "inet "
Open Nodes, your node, then the Allocation tab.
Under Assign New Allocations, enter the address in IP Address.
In Ports, enter single ports or ranges, for example
25565-25570.Click Submit.
Never use
127.0.0.1for an allocation. Behind NAT, enter the machine's internal address.
Create a first server
Open Servers and click Create New.
Fill in Server Name and pick your account in Server Owner.
Choose the Node and a Default Allocation.
Set the memory in Memory and the disk space in Disk Space.
In Nest, choose the game, for example Minecraft. In Egg, choose the variant, for example Paper.
Click Create Server.
Wings pulls the Docker image and runs the egg's install script. The server then shows up on the panel home page, where you can start it and follow its console. For a game that is not in the list, import an egg. Our Pterodactyl eggs page explains how.
Install Pterodactyl with the installer script
The pterodactyl-installer script installs the panel and Wings by asking a few questions. It is maintained by the community and has no link with the official project. It supports Ubuntu 22.04, 24.04 and 26.04, Debian 12 and 13, and Rocky Linux and AlmaLinux 8 to 10. It no longer supports Debian 11 or Ubuntu 20.04.
Run it while logged in as root.
bash <(curl -s https://pterodactyl-installer.se)
The menu offers these choices, among others.
0installs the panel.1installs Wings.2installs both on the same machine.3uninstalls the panel or Wings.
For the panel, the script first asks for the version. Keep 1, the stable release. It then asks for the database name and user, then a password (leave it empty to generate one). Next come the timezone, the email address, the admin account and the panel domain. Finally, the script offers to configure the firewall and a Let's Encrypt certificate. Its authors recommend accepting the firewall setup. If you decline, open ports 80 and 443 yourself before the certificate request.
For Wings, the script installs Docker and the systemd service, then offers a certificate for the node domain. You still need to create the location, the node and the allocations in the panel. Pick up from the section "Linking the Node to the panel".
The script runs as root and changes the whole system. For a server open to the public, prefer the manual installation in this guide, which you control step by step.
Fix common issues
When the panel shows an error, read its log first. This command shows the last 100 lines of the day.
tail -n 100 /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log
| Symptom | Probable cause | Solution |
|---|---|---|
| Panel unreachable | DNS not updated yet, wrong FQDN or Nginx site error | Check the A record with dig panel.example.com, then read /var/log/nginx/pterodactyl.app-error.log. |
| Node disconnected | Wings stopped, ports 8080 or 2022 closed, Cloudflare proxy on | Check systemctl status wings, open the ports and turn off the proxy (orange cloud) on the panel and node records. |
| Wings fails to start | Missing or expired SSL certificate, wrong config.yml | Stop Wings and run wings --debug, or check journalctl -u wings. |
| Database error | MariaDB stopped or wrong credentials | Check systemctl status mariadb, then run php artisan p:environment:database again. |
| Scheduled tasks stuck | Missing cron line or queue worker stopped | Check journalctl -xeu pteroq, then run systemctl restart pteroq. |
| SSL certificate failure | Domain not pointing to the server, or port 80 closed | Fix the A record, open port 80 and run Certbot again. |
| Game servers without Internet access | DNS 1.1.1.1 and 1.0.0.1 blocked by the host | Replace them in /etc/pterodactyl/config.yml with the system's DNS servers (resolvectl status). |
| "invalid MAC" error in the log | APP_KEY differs from the one that encrypted the data | Restore the old key in the .env file. |
For other cases, the Troubleshooting page of the official documentation gives more leads.
Security recommendations
Keep the system up to date with
apt update && apt upgrade -y.Back up the
paneldatabase and the.envfile regularly, outside the server.Use HTTPS for the panel and for every node.
For daily use, work from an account without admin rights.
Update the panel and Wings with the official guides Updating the Panel and Upgrading Wings.
Also update all PHP packages together. Panel 1.15.2, released on October 21, 2026, fixes PHP vulnerabilities and asks for this update.
sudo apt update && sudo apt install --only-upgrade 'php8.*'
Do not use the 1.x update steps to move to 2.0, and do not run
php artisan p:upgradewithout the--releaseoption. The move to 2.0 has its own guide.
To protect the rest of the server, follow the guide Secure a Linux VPS.
Need help?
Open a ticket from Tickets › Open a Ticket, or from the Contact support tile at the bottom of the VPS page. You can also ask your question on the OuiHeberg Discord.
Root access, your choice of distribution and management from the OuiHeberg client area.
View plans →