---
title: "Pterodactyl Panel Install: Step-by-Step Guide | VulCode"
description: "Installing the Pterodactyl 1.15 panel: PHP 8.3, MariaDB, Redis, Composer, Nginx with SSL, the pteroq worker, cron, a Wings node on Docker and allocations."
url: "https://vulcode.com/en/blog/pterodactyl-panel-install"
lang: "en"
---

[Home](https://vulcode.com/en) [Resources](https://vulcode.com/en/resources) [Blog](https://vulcode.com/en/blog) [Guides](https://vulcode.com/en/blog?category=guides)

# 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.

[Free quote](https://vulcode.com/en/quote) [Full pricing](https://vulcode.com/en/services/pricing)

## What you will do

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

- Panel **PHP, MariaDB, Redis** Panel 1.15 behind Nginx with SSL.

- Background **Queue and cron** pteroq and schedule:run every minute.

- Node **Wings** A Docker daemon that runs the servers.

- Result **The first server** An 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.

Panel requirements

| Component | Version | Notes |
| --- | --- | --- |
| PHP | 8.2 or 8.3 | 8.3 recommended; extensions cli, openssl, gd, mysql, PDO, mbstring, tokenizer, bcmath, xml, curl, zip, fpm |
| Database | MySQL 5.7.22+ / MariaDB 10.2+ | MySQL 8 recommended |
| Redis | redis-server | cache and queue |
| Composer | v2 | installs the PHP dependencies |

## Step by step

Each step with commands to copy. The list on the left shows where you are.

- 01 Install the dependencies

- 02 Download the panel files

- 03 Create the database and user

- 04 Install the panel and store the key

- 05 Configure the environment, database and first admin

- 06 Start the queue and cron

- 07 Get the SSL certificate before changing Nginx

- 08 Configure Nginx

- 09 Install Docker and Wings on the node

- 10 Add the node in the panel and start Wings

### 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.

bash

Copy

`# Ubuntu 24.04apt -y install software-properties-common curl apt-transport-https ca-certificates gnupg# Official Redis repositorycurl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpgecho "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.listapt updateapt -y install php8.3 php8.3-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} mariadb-server nginx tar unzip git redis-servercurl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer`

### Download the panel files

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.

bash

Copy

`mkdir -p /var/www/pterodactylcd /var/www/pterodactylcurl -Lo panel.tar.gz https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gztar -xzvf panel.tar.gzchmod -R 755 storage/* bootstrap/cache/`

### Create the database and user

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

Copy

`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`

### 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

Copy

`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`

### 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

Copy

`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/*`

### 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.

crontab, pteroq.service

Copy

`# sudo crontab -e* * * * * php /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1# /etc/systemd/system/pteroq.service[Unit]Description=Pterodactyl Queue WorkerAfter=redis-server.service[Service]User=www-dataGroup=www-dataRestart=alwaysExecStart=/usr/bin/php /var/www/pterodactyl/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3StartLimitInterval=180StartLimitBurst=30RestartSec=5s[Install]WantedBy=multi-user.target`

bash

Command

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

### Get the SSL certificate before changing Nginx

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.

bash

Copy

`sudo apt install -y certbot python3-certbot-nginxcertbot certonly --nginx -d panel.yourdomain.com# renew daily at 23:00, restarting nginx after a successful renewal0 23 * * * certbot renew --quiet --deploy-hook "systemctl restart nginx"`

### Configure Nginx

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.

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

Copy

`server { listen 80; server_name panel.yourdomain.com; return 301 https://$server_name$request_uri;}server { listen 443 ssl http2; server_name panel.yourdomain.com; root /var/www/pterodactyl/public; index index.php; client_max_body_size 100m; client_body_timeout 120s; sendfile off; ssl_certificate /etc/letsencrypt/live/panel.yourdomain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/panel.yourdomain.com/privkey.pem; ssl_session_cache shared:SSL:10m; ssl_protocols TLSv1.2 TLSv1.3; 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; } location ~ /\.ht { deny all; }}`

bash

Command

rm /etc/nginx/sites-enabled/default

Output

# save the configuration as /etc/nginx/sites-available/pterodactyl.conf

Command

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

### Install Docker and Wings on the node

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.

bash

Copy

`systemd-detect-virt # kvm or none: Docker will work; openvz or lxc: most likely notcurl -sSL https://get.docker.com/ | CHANNEL=stable bashsudo systemctl enable --now dockersudo mkdir -p /etc/pterodactylcurl -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`

### Add the node in the panel and start Wings

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.

/etc/systemd/system/wings.service

Copy

`# /etc/systemd/system/wings.service[Unit]Description=Pterodactyl Wings DaemonAfter=docker.serviceRequires=docker.servicePartOf=docker.service[Service]User=rootWorkingDirectory=/etc/pterodactylLimitNOFILE=4096PIDFile=/var/run/wings/daemon.pidExecStart=/usr/local/bin/wingsRestart=on-failureStartLimitInterval=180StartLimitBurst=30RestartSec=5s[Install]WantedBy=multi-user.target`

bash

Output

# 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 errors sudo systemctl enable --now wings hostname -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.

GitHub API

Command

curl -s https://api.github.com/repos/pterodactyl/panel/releases/latest

Output

panel.tar.gz

Command

curl -s https://api.github.com/repos/pterodactyl/wings/releases/latest

Output

wings_linux_amd64, wings_linux_arm64

- 1-2
  **Panel 1.15**
  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.

[See the project](https://vulcode.com/en/work/case-studies/wavehost)

pterodactyl.ts

Copy

`export async function createPteroServer(input: { name: string; pteroUserId: number; nest: number; egg: number; environmentOverrides?: Record<string, string>; limits: { memoryMb: number; diskMb: number; cpuPercent: number }; allocationId: number; startOnCompletion?: boolean;}) { const eggInfo = await getEggInfo(input.nest, input.egg); const res = await app().post(`/api/application/servers`, { name: input.name, user: input.pteroUserId, egg: input.egg, docker_image: eggInfo.dockerImage, startup: eggInfo.startup, environment: { ...eggInfo.environment, ...input.environmentOverrides }, limits: { memory: input.limits.memoryMb, swap: 0, disk: input.limits.diskMb, io: 500, cpu: input.limits.cpuPercent, }, feature_limits: { databases: 0, backups: 0, allocations: 1 }, allocation: { default: input.allocationId }, start_on_completion: input.startOnCompletion ?? true, }); const attrs = res.data.attributes; return { id: attrs.id as number, uuid: attrs.uuid as string, identifier: attrs.identifier as string };}`

## Common errors

Symptom, cause and fix, with the number of the step where the error shows up.

| Step | Symptom | Cause | Fix |
| --- | --- | --- | --- |
| 08 | 502 Bad Gateway on the panel page | fastcgi_pass points to another PHP version's socket, or php-fpm is not running. | Check ls /run/php/ and fix the path in pterodactyl.conf. |
| 08 | Nginx will not start after the config change | The SSL configuration points to a certificate that does not exist yet. | Run certbot certonly first, then the SSL configuration. |
| 10 | The node has a red heart in the panel | Wings is not running, or an SSL panel talks to Wings without a certificate for its domain. | Run wings --debug and get a certificate for the node's domain. |
| 06 | The panel sends no emails | pteroq is not running, or its After line names a Redis service that does not exist. | systemctl status pteroq; on RHEL use redis.service, without Redis remove the After line. |
| 09 | Docker does not work on the node | 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.

- **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](https://vulcode.com/en/blog/pterodactyl-vs-pelican).
- **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.
- **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.
- **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.
- **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.
- **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.
- **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](https://vulcode.com/en/quote) comes back within an hour.

## Sources

The documentation and specifications we compared the commands with.

- [Pterodactyl: Getting Started (panel)](https://docs.pterodactyl.io/v1/panel/getting-started) docs.pterodactyl.io

- [Pterodactyl: Webserver Configuration](https://docs.pterodactyl.io/v1/panel/webserver-configuration) docs.pterodactyl.io

- [Pterodactyl: Creating SSL Certificates](https://docs.pterodactyl.io/v1/guides/tutorials/ssl-certificates) docs.pterodactyl.io

- [Pterodactyl: Installing Wings](https://docs.pterodactyl.io/v1/wings/installing) docs.pterodactyl.io

## What next

The services and solutions in which we build this for companies.

- ### [Hosting companies](https://vulcode.com/en/solutions/hosting-companies)
  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.

- ### [Game servers](https://vulcode.com/en/solutions/game-servers)
  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](https://vulcode.com/en/services/integrations/pterodactyl)
  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 scratch**](https://vulcode.com/en/blog/scp-sl-server)SteamCMD, LocalAdmin in tmux, the UDP port, configuration and getting verified on the server list.

- [**A Minecraft server store**](https://vulcode.com/en/blog/minecraft-server-store)Payment, a delivery queue and a plugin that hands the item over only when the player is online.

Tools

- [**CIDR subnet calculator**](https://vulcode.com/en/tools/cidr-subnet-calculator)CIDR 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 calculator**](https://vulcode.com/en/tools/chmod-calculator)A 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 explainer**](https://vulcode.com/en/tools/cron-expression-generator)A 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.

Glossary terms

- [**Pterodactyl**](https://vulcode.com/en/blog/glossary#pterodactyl)

- [**Egg**](https://vulcode.com/en/blog/glossary#egg)

- [**VPS**](https://vulcode.com/en/blog/glossary#vps)

## More on this in our blog

- [Pterodactyl vs Pelican: which game server panel to choose Pelican began as a fork of Pterodactyl and can take over its database in place, but it ships under a different licence, with different requirements and its own plugin system. We compare both panels from the code side, where we have a fix merged.](https://vulcode.com/en/blog/pterodactyl-vs-pelican)

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
