Installing Pterodactyl step by step: the panel, Wings and the first server
You set up the Pterodactyl 1.15 panel on Ubuntu 24.04 with PHP 8.3, MariaDB, Redis and Nginx, then a Wings node on Docker that runs the game servers. Following the official documentation, with the SSL certificate issued before the Nginx configuration changes.
Pterodactyl is a game server management panel: a PHP panel where customers and admins manage servers, and Wings, a daemon on each node that runs the servers in Docker containers. After this guide you have the panel on your own domain with an SSL certificate, a first node, and you can create your first server.
The order differs from the documentation in one place: we get the SSL certificate before replacing the Nginx configuration. The documentation warns that an SSL configuration without a certificate stops Nginx from starting, so this way nothing needs fixing along the way.
Level
advanced
Code
Bash
Steps
10 steps
PanelPHP, MariaDB, RedisPanel 1.15 behind Nginx with SSL.
BackgroundQueue and cronpteroq and schedule:run every minute.
NodeWingsA Docker daemon that runs the servers.
ResultThe first serverAn allocation, an egg and a game server in the panel.
What you need
A server with Ubuntu 24.04 or Debian 12 or 13
The documentation supports Ubuntu 22.04 and 24.04, Debian 11, 12 and 13, and RHEL, Rocky and AlmaLinux 8 and 9. The commands here are for Ubuntu 24.04, where MariaDB installs without an extra repository.
KVM virtualisation or a dedicated server for the node
Wings needs Docker. On OpenVZ, Virtuozzo and LXC it most likely will not work unless the provider enabled nested virtualisation. KVM always works.
A domain and a DNS record
panel.yourdomain.com must point to the server before you request a certificate. When the panel uses SSL, the Wings node needs a certificate for its own domain too.
Root access
The install assumes root or sudo. In the end the panel runs as www-data and Wings as root, because it manages Docker.
Each step with commands to copy. The list on the left shows where you are.
01
Install the dependencies
On Ubuntu 24.04 PHP 8.3 is in the system repository; the extra ondrej/php repository is needed only on 22.04. You install Redis from the official Redis repository and Composer with the installer from getcomposer.org.
You download the panel as a ready archive from the latest GitHub release. The storage and bootstrap/cache directories must be writable because the panel keeps files and cache there.
The database user connects from 127.0.0.1, not localhost: in MariaDB those are two different accounts. Change the password to your own unique one.
mariadb
mariadb -u root -pCREATE USER 'pterodactyl'@'127.0.0.1' IDENTIFIED BY 'unique-strong-password';CREATE DATABASE panel;GRANT ALL PRIVILEGES ON panel.* TO 'pterodactyl'@'127.0.0.1' WITH GRANT OPTION;exit
04
Install the panel and store the key
key:generate creates APP_KEY, which the panel uses to encrypt sensitive data such as API keys. Run it only on the first install. Copy the key to a password manager or an encrypted file off the server: without it the encrypted data cannot be recovered even from a database backup.
bash
cp .env.example .envCOMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloaderphp artisan key:generate --force# Store the key off the server: without it you cannot recover encrypted datagrep APP_KEY /var/www/pterodactyl/.env
05
Configure the environment, database and first admin
The three p:environment commands ask for the panel URL, cache, sessions, database credentials and mail server. migrate --seed creates the tables and adds the default nests and eggs: do not interrupt it. p:user:make creates the admin account.
bash
php artisan p:environment:setupphp artisan p:environment:databasephp artisan p:environment:mail # smtp for your own mail serverphp artisan migrate --seed --forcephp artisan p:user:make # password: 8 characters, upper and lower case letters, a digitchown -R www-data:www-data /var/www/pterodactyl/*
06
Start the queue and cron
Cron runs the panel's jobs every minute, such as session cleanup and scheduled server tasks. The pteroq service processes the queue: emails and other background jobs. On RHEL, Rocky and AlmaLinux replace redis-server.service with redis.service in the After line.
Certbot with the Nginx plugin issues the certificate while the default Nginx configuration is running and port 80 is open. Only then do you swap in the SSL configuration, which finds the certificate files straight away.
The configuration redirects HTTP to HTTPS, passes PHP requests to the php8.3-fpm socket and allows uploads up to 100 MB. The socket path must match the PHP version you installed.
First check the virtualisation: systemd-detect-virt must not show openvz or lxc. You install Docker with the get.docker.com script, and Wings is a single executable from the latest release. If the kernel ends in -grs-ipv6-64 or -mod-std-ipv6-64, ask the provider for the distribution's standard kernel.
In the admin panel choose Nodes and Create New. Once the node exists, its Configuration tab shows a ready config.yml: paste it into /etc/pterodactyl, or use Generate Token, which gives you a command to paste into the terminal. The first wings --debug run shows any errors; then you start the service.
An allocation is an IP address and port pair you assign to a server. Every server needs at least one. Behind NAT you give the internal address.
# paste the config.yml from the node's Configuration tab into /etc/pterodactyl/config.yml
Command
sudo wings --debug # first start in the foreground; Ctrl+C once it runs without errorssudo systemctl enable --now wingshostname -I | awk '{print $1}' # IP address for the allocation
How to check it works
The commands follow the Pterodactyl v1 documentation. The guide covers panel 1.15 and Wings 1.13, and the curl commands with latest/download always fetch the current release.
Environment
Pterodactyl v1 documentation, releases of pterodactyl/panel and pterodactyl/wings on GitHub
Result
The guide covers panel 1.15 and Wings 1.13
What you should see
https://panel.yourdomain.com shows the login page with a valid certificate.
systemctl status pteroq and wings shows active (running).
The node in the panel has a green heart, so the panel reaches Wings.
A new server from a default egg installs and starts.
The curl command with latest/download in step 2 fetches the panel.tar.gz archive of the current release.
3-4
Wings 1.13
A Wings release has files for amd64 and arm64.
1-4
Where the commands come from
The commands come from the version 1 Pterodactyl documentation.
Pterodactyl servers in the WaveHost panel
How it looks in our project
We quote a Pterodactyl setup with a theme and billing under our API and integrations service, from PLN 999. This section shows how such a connection looks in the WaveHost panel.
In the WaveHost client panel, buying a game server creates a server in Pterodactyl through the Application API, with a ptla_ key. The customer never fills in a Pterodactyl form: the panel takes the Docker image, start command and default variables from the egg, applies the limits of the purchased package and assigns an allocation.
Runtime operations, power, console and live resources, go through the Client API with an admin ptlc_ key, because the Application API does not expose them. A WaveHost panel user has one Pterodactyl account stored on their record, so further purchases land with the same user.
OpenVZ or LXC virtualisation, or a modified provider kernel.
Use KVM or a dedicated server with a standard kernel.
Frequently asked questions
The questions that come up with this setup.
01
Pterodactyl or Pelican?
Choose Pterodactyl for the stable 1.x line and the MIT licence, and Pelican when you need plugins and admin roles and accept AGPL-3.0 and beta releases. The comparison is in the post Pterodactyl vs Pelican.
02
Panel and Wings on one machine or separately?
Both can run on one machine, which is how you usually start. Additional Wings nodes go on separate servers later, and one panel manages them all.
03
What is an egg?
The install-and-run recipe for one kind of server: the Docker image, the install script, the start command and variables. migrate --seed adds the default eggs, and you create your own for games they do not cover.
04
Does Pterodactyl collect data?
Since version 1.11 the panel collects anonymous telemetry. You turn it off by setting PTERODACTYL_TELEMETRY_ENABLED=false in the panel's .env file; the documentation describes it under Additional Configuration.
05
How do I update the panel?
You update the panel in maintenance mode: php artisan down, download the new panel.tar.gz, composer install --no-dev, php artisan migrate --seed --force, php artisan up. Back up the database first and save your APP_KEY; the documentation has a separate page with the details.
06
Is Pterodactyl free?
Yes, Pterodactyl is free and uses the MIT licence. You pay only for the servers under the panel and the nodes and, if you want it, for a setup that we quote from PLN 999.
07
How much does a branded Pterodactyl setup cost?
A Pterodactyl setup with a theme and billing is quoted under our API and integrations service, from PLN 999. A free quote comes back within an hour.
Sources
The documentation and specifications we compared the commands with.
Client panel and billing for hosting companies from PLN 8,999: VPS and game servers, Proxmox and Pterodactyl automation. We built them for WaveHost and Sinlege.
A Minecraft, FiveM and SCP:SL server website with a store, instant in-game delivery, player stats and a Discord bot. From PLN 1,999, usually 3-6 weeks.
Pterodactyl panel set up under your brand and integrated with billing or a store from PLN 999: eggs, theme, Wings nodes. Integration in 2-3 days.
Other guides
An SCP:SL server from scratchSteamCMD, LocalAdmin in tmux, the UDP port, configuration and getting verified on the server list.
A Minecraft server storePayment, a delivery queue and a plugin that hands the item over only when the player is online.
Tools
CIDR subnet calculatorCIDR notation writes an IPv4 network as an address and mask, like 192.168.1.0/24. Get the range, broadcast, wildcard mask, host count and subnets. Free.
chmod calculatorA chmod calculator converts file permissions between octal (755) and rwx notation and gives you the chmod command. Click permissions or type a number. Free.
Cron expression generator and explainerA cron expression is five fields that tell a server when to run a job. Enter one to get a plain English sentence and the next run times. Free, no account.