In short
A Pterodactyl install has two parts: the Panel, the web interface (PHP, MariaDB, Redis, Nginx), and Wings, which runs game servers in Docker containers. On an Ubuntu VDS you first install the Panel and create an admin account, then install Docker and Wings, define a node and allocations (IP:port) in the panel, and finally pick an egg to create a game server.
In this guide
- What you need before you start
- 1. Install the Panel dependencies
- 2. Download the Panel files and create the database
- 3. Configure the Panel
- 4. Set up the scheduler and queue worker
- 5. SSL certificate and Nginx configuration
- 6. Install Docker and Wings
- 7. Create a location and node in the panel
- 8. Add allocations
- 9. Create your first server with an egg
- Firewall and security
- Try it on an hourly VDS first
- Updates and backups
- Common problems
- Next step: the right VDS for your panel
Pterodactyl is an open-source panel that lets you manage game servers from your web browser. The install has two components: the Panel, which provides the user interface and API, and the Wings service, which runs game servers in isolated Docker containers. In this guide we'll install both on the same Ubuntu VDS and create your first Minecraft server. With basic Linux knowledge, setup takes about an hour.
What you need before you start
- A VDS running Ubuntu 22.04 or 24.04 with root access. Because Docker will run on it, you need KVM virtualization; Wings does not work on OpenVZ/LXC-based servers.
- A domain or subdomain for the panel (e.g.
panel.ornek.com) and an A record pointing that name to your VDS IP. - The panel and Wings themselves are light on resources; the game servers consume most of the RAM and CPU. If you'll host several game servers, 12 GB of RAM and 6 vCPUs is a good starting point.
For these requirements, the OB-R9-6 Ryzen VDS with 6 vCPUs and 12 GB of RAM fits right out of the box with KVM virtualization and root access. If you just want to try the install, you can run a test for a few hours on the hourly-billed FLEX-R9-6 with the same resources and then delete the server.
1. Install the Panel dependencies
Connect to the server over SSH as root and install PHP, MariaDB, Redis and Nginx. The commands below use PHP 8.3:
apt update
apt -y install software-properties-common curl ca-certificates gnupg
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
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
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer2. Download the Panel files and create the database
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/Log in to MariaDB and create a user and database for the panel. Replace GucluBirSifre with your own strong password:
mariadb -u root
CREATE USER 'pterodactyl'@'127.0.0.1' IDENTIFIED BY 'GucluBirSifre';
CREATE DATABASE panel;
GRANT ALL PRIVILEGES ON panel.* TO 'pterodactyl'@'127.0.0.1' WITH GRANT OPTION;
exit3. Configure the Panel
cp .env.example .env
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader
php artisan key:generate --force
php artisan p:environment:setup
php artisan p:environment:database
php artisan p:environment:mail
php artisan migrate --seed --force
php artisan p:user:make
chown -R www-data:www-data /var/www/pterodactyl/*In the p:environment:setup step, enter the panel URL as https://panel.ornek.com and choose redis for the cache, session and queue drivers. Mark the account you create with p:user:make as an administrator (admin).
Important: back up the
APP_KEYvalue in the.envfile somewhere safe. If this key is lost, encrypted data in the panel can't be read back.
4. Set up the scheduler and queue worker
For the panel's scheduled tasks, add this line to root's crontab (crontab -e):
* * * * * php /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1Then create the /etc/systemd/system/pteroq.service 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.targetsystemctl enable --now redis-server
systemctl enable --now pteroq.service5. SSL certificate and Nginx configuration
apt -y install certbot python3-certbot-nginx
certbot certonly --nginx -d panel.ornek.comCreate the /etc/nginx/sites-available/pterodactyl.conf file:
server {
listen 80;
server_name panel.ornek.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name panel.ornek.com;
root /var/www/pterodactyl/public;
index index.php;
client_max_body_size 100m;
ssl_certificate /etc/letsencrypt/live/panel.ornek.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/panel.ornek.com/privkey.pem;
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 SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTP_PROXY "";
}
location ~ /\.ht {
deny all;
}
}ln -s /etc/nginx/sites-available/pterodactyl.conf /etc/nginx/sites-enabled/pterodactyl.conf
rm -f /etc/nginx/sites-enabled/default
nginx -t
systemctl restart nginxYou can now log in at https://panel.ornek.com with the admin account you created. For all options, see the official Pterodactyl installation docs.
6. Install Docker and Wings
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
systemctl enable --now docker
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")"
chmod u+x /usr/local/bin/wings7. Create a location and node in the panel
- In the admin area, add a location under Locations (e.g. short code
ist). - Create a node with Nodes → Create New. In the FQDN field, enter
panel.ornek.comif Wings is on the same server as the panel, and select Communicate Over SSL. - Enter total memory and disk space based on your VDS resources; leave 1-2 GB of RAM for the operating system.
- Leave the daemon port at
8080and the SFTP port at2022. - Copy the YAML from the node's Configuration tab and paste it into
/etc/pterodactyl/config.ymlon the server.
First run wings --debug to confirm there are no errors, then create the /etc/systemd/system/wings.service file:
[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.targetsystemctl enable --now wingsIf the heart icon in the panel's node list turns green, the Wings connection is working.
8. Add allocations
An allocation is an IP:port pair assigned to a game server. On the node page's Allocation tab, enter your VDS's public IP as the IP address and a port range such as 25565-25570. Each game server takes a port from this list. Don't use 127.0.0.1; outside connections won't reach it.
9. Create your first server with an egg
An egg is a template that defines how Pterodactyl installs and starts a game. Ready-made eggs ship for Minecraft (Paper, Forge, Vanilla), Rust and other games, and you can import community eggs too.
- Open Servers → Create New and choose a server name and owner (user).
- Select the node and port
25565as the default allocation. - Set memory (e.g. 4096 MB), disk and CPU limits.
- Choose Minecraft as the Nest and Paper as the Egg; for the Docker image, pick the Java version your game version requires (Java 21 for current versions).
- Save. Wings pulls the image and installs the server; start it with Start in the user panel.
Firewall and security
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 8080/tcp
ufw allow 2022/tcp
ufw enableDocker opens container ports with its own iptables rules, so game ports become reachable regardless of ufw; keep that in mind when you define allocations. For steps like using SSH keys instead of passwords and restricting root login, see our game VDS security guide. If you'll run several games on the same node, set memory and CPU limits for every server; an unlimited server can eat the others' resources.
Try it on an hourly VDS first
If you're installing Pterodactyl for the first time, mistakes are normal: a wrong FQDN, a forgotten permissions command or a missing port. Instead of experimenting on your live server, it makes sense to use an hourly VDS. An hourly VDS is a virtual server billed only for the time it's running. Run through the full install, confirm that the panel, eggs and backup workflow meet your needs, then delete the server and confidently repeat the same steps on a permanent monthly plan. We explain when this approach saves money in our article what is an hourly VDS.
Updates and backups
Before every panel update, always back up the /var/www/pterodactyl/.env file and the panel database:
mysqldump -u root panel | gzip > /root/panel_$(date +%F).sql.gz
cp /var/www/pterodactyl/.env /root/pterodactyl.env.bakOn the Wings side, game server files are stored under /var/lib/pterodactyl/volumes by default. You can take per-server backups with the panel's built-in backup feature and automate them with Schedules. For critical data, make a habit of keeping a copy of your backups off the server.
Common problems
- 500 error in the panel: Run
chown -R www-data:www-data /var/www/pterodactyl/*again and check the log understorage/logs. - Node heart is red: Check the
systemctl status wingsoutput, make sure port 8080 is open and confirm the SSL certificate matches the FQDN. - Server install hangs: Check disk space and the
docker ps -aoutput.
Next step: the right VDS for your panel
If you'll use Pterodactyl long term and host several game servers, OB-R9-9950X-5 with DDR5 memory, 6 vCPUs and 12 GB of RAM gives you faster cores plus 130 GB of NVMe space for egg images and backups. If you'd like to try first, you can test the install with OyunBulut's hourly VDS option and pay only for what you use.
Frequently asked questions
Can Pterodactyl Panel and Wings be installed on the same server?
Yes. For small and mid-size setups, the Panel and Wings run fine on the same VDS; just enter the panel's domain in the node's FQDN field.
Which operating system is recommended for Pterodactyl?
The official docs support current LTS releases such as Ubuntu 22.04 and 24.04. Because Wings uses Docker, the server must use KVM virtualization.
How much RAM does Pterodactyl need?
The Panel and Wings together usually stay around 1 GB; the real demand comes from your game servers. Calculate by adding the memory you allocate to each game server plus 1-2 GB for the operating system.
What is an egg?
An egg is a Pterodactyl template that defines how a game is installed and which Docker image and command start it. Ready-made eggs ship for games like Minecraft and Rust.
Which IP should I enter when adding an allocation?
Enter your VDS's public IP address. If you use 127.0.0.1, the server is only reachable locally and players can't connect.