Welcome to Your New Game Server Empire
Ubuntu
Understanding the Power of Pterodactyl
Pterodactyl is a free, open-source game server management panel built specifically to make running game servers easy and secure. Instead of typing complicated commands into a black screen every time you want to restart your server or change a setting, Pterodactyl gives you a beautiful web interface. You can click buttons to start, stop, and manage your games from anywhere in the world using just your web browser.
What makes Pterodactyl special is how it uses a technology called Docker to run your games. Docker puts every single game server into its own private "container," meaning they are completely separated from each other. If one game server crashes or gets a virus, it cannot affect the other servers running on the same computer. This keeps your system highly secure and ensures everything runs smoothly without fighting for computer resources.
Whether you want to host a small Minecraft server for your friends or build a massive hosting company for games like Rust, Ark, and Counter-Strike, Pterodactyl can handle it. It supports almost every popular multiplayer game right out of the box. Plus, it lets you create accounts for other users, so you can share control of the game servers with your friends or customers safely and easily.
Prerequisites
- A Fresh Server: A clean, completely empty computer or Virtual Private Server (VPS) running Ubuntu 22.04 or 24.04.
- Root Access: You must have the main administrator (root) password to run these commands.
- A Domain Name: A web address (like
panel.yourwebsite.com) that points to your server's IP address. - Basic Hardware: At least 1GB of RAM (more is better if you plan to host big games).
Step-by-Step Installation
root user and follow these exact steps.
Install Required Software
# Add tools to help install other software
apt -y install software-properties-common curl apt-transport-https ca-certificates gnupg
# Add the official PHP software list
LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
# Add the official Redis software list
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 your server's list of available software
apt update
# Install all the required programs (PHP, Database, Webserver, etc.)
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
Install Composer
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
Download Pterodactyl
# Create the folder and go inside it mkdir -p /var/www/pterodactyl cd /var/www/pterodactyl # Download the latest Pterodactyl files curl -Lo panel.tar.gz https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz # Unzip the files tar -xzvf panel.tar.gz # Give the server permission to read and write in these specific folders chmod -R 755 storage/* bootstrap/cache/
Create the Database
mariadb -u root -p
yourPassword to a real, secret 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
Setup the Panel Settings
# Copy the default settings file cp .env.example .env # Install the core code packages COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader # Generate a secret security key (Keep this key safe!) php artisan key:generate --force
# Setup general website settings php artisan p:environment:setup # Setup database settings (use the password you made in Step 4) php artisan p:environment:database # Setup email settings (choose "smtp" or "mail") php artisan p:environment:mail
Build Database Tables & Add Your User
# Build the database structure (Do not close the screen until this finishes!) php artisan migrate --seed --force # Create your admin account (It will ask for your email, username, and password) php artisan p:user:make
Give Folder Permissions
chown -R www-data:www-data /var/www/pterodactyl
Set Up Background Tasks
sudo crontab -e -u www-data
* * * * * php /var/www/pterodactyl/artisan schedule:run >> /dev/null 2>&1
nano /etc/systemd/system/pteroq.service
[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.target
sudo systemctl enable --now redis-server sudo systemctl enable --now pteroq.service
CTCservers Recommended Tutorials
Web, Network
Step-by-Step Guide: Install AMD ROCm on Ubuntu with RX 6600 GPU
Learn how to quickly and easily set up AMD ROCm on Ubuntu for your RX 6600 GPU, enabling powerful machine learning, AI workloads, and GPU-accelerated computing right on your system.
Web, Network, Linux, Mysql, Ubuntu
LAMP Setup Guide 2026: Ubuntu & Debian | CTCservers
Install a secure LAMP stack on Debian or Ubuntu. Follow our step-by-step guide to configure Linux, Apache, MySQL, and PHP for your web server.
Web, Network, Ubuntu
Deploy Phi-3 with Ollama on Ubuntu GPU | CTCservers
Learn how to easily deploy the Phi-3 LLM on an Ubuntu 24.04 GPU server using Ollama and WebUI. Follow our step-by-step tutorial for seamless AI hosting.
Discover CTCservers Dedicated Server Locations
CTCservers servers are available around the world, providing diverse options for hosting websites. Each region offers unique advantages, making it easier to choose a location that best suits your specific hosting needs.