Skip to content

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 → Learn more

10 November 202613 min read1 Views0 helpful

Introduction

Pterodactyl is a free, open-source panel that lets you manage game servers such as Minecraft, Rust, ARK, or CS2 through a web interface. Each game server runs in its own Docker container, 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 step by step how to install Panel and Wings on your ZapX VPS or Dedicated Server, set up a domain with SSL, and create your first game server.

Prerequisites

To use Pterodactyl, you need a VPS or Dedicated Server running Linux and root access via SSH. For information on connecting to your server, see our guide to first-time SSH access. New to ZapX? Start with our introduction to VPS or Dedicated Servers.

Tip

SSH key authentication

We recommend using an SSH key instead of a password. Find out how in our guide to creating and using SSH keys.

Hardware requirements

The Panel itself is lightweight. The resources you need mainly depend on how many game servers you want to run through Wings. If you’re running 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, the following systems are currently supported:

Operating systemVersionsNote
Ubuntu22.04, 24.04On 22.04, you need 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 older are no longer supported by the Panel. If you’re setting up your system from scratch, 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 does not work 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 the output is openvz or lxc, you generally won’t be able to run Wings on this server.

Update the system

Update your system before installing:

bash
apt update && apt upgrade -y

Firewall and ports

If you’re using a firewall on your server, these ports must be open:

PortProtocolPurpose
80 and 443TCPPanel (HTTP/HTTPS) and Certbot certificate verification
8080TCPWings API, used by the Panel 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 open the ports with UFW as follows. Be sure to allow SSH first, or you’ll lock yourself out when you enable the firewall:

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 firewalls on Linux.

Info

Docker and UFW

Docker creates its own rules for the game server container ports. As a result, these ports are often accessible even if you haven’t opened them in UFW. Don’t rely on UFW alone to control game ports.

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 service on the server), which runs each game server in its own Docker container.
According to the official documentation, Pterodactyl supports Ubuntu 22.04 and 24.04, Debian 11, 12, and 13, and Rocky Linux, AlmaLinux, and RHEL 8 and 9. The Panel no longer supports Ubuntu 20.04 and older.
The Panel requires PHP 8.2 or 8.3, with PHP 8.3 recommended. On Ubuntu 22.04 and Debian, PHP 8.3 comes from an additional repository; Ubuntu 24.04 includes it by default.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 Users found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP 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.