Pterodactyl

Purpose: Pterodactyl is the open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to administrators and users. Official Website

Note

This documentation assumes you are running Rocky Linux 9.3 or higher.

Install EPEL Repository and other tools:

sudo yum -y install epel-release curl ca-certificates gnupg

Add Redis Repository:

sudo rpm --import https://packages.redis.io/gpg
echo "[redis6]
name=Redis 6 repository
baseurl=https://packages.redis.io/rpm/6/rhel/8/\$basearch/
enabled=1
gpgcheck=1
gpgkey=https://packages.redis.io/gpg" | sudo tee /etc/yum.repos.d/redis.repo

Add MariaDB Repository:

sudo curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash

Update Repositories List:

sudo yum update

Install Dependencies: Before installing PHP, check the available PHP versions in your enabled repositories. Install PHP and other dependencies as follows:

sudo yum -y install php php-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} mariadb-server nginx tar unzip git redis

  1. Installing Composer:
    curl -sS https://getcomposer.org/installer | php
    sudo mv composer.phar /usr/local/bin/composer
    chmod +x /usr/local/bin/composer
    

This script should work well with Rocky Linux and similar RHEL-based distributions, using yum for package management. However, keep in mind that package names and versions may vary between repositories, so you might need to adjust them based on what's available in your system's repositories.