Installation Pterodactyl panel in CentOS 7

Pterodactyl is a user-friendly, open-source game server management developed with an emphasis on security. It makes it possible for users to control game servers and different applications through a website Interactively ensuring the use and management of the server are easy and effective. Its modular structure and strong API support make it a great candidate for game hosting companies and gamers who need reliable server management.

Step-by-Step Installation Guide

To install the Pterodactyl panel on CentOS 7, follow the detailed guide below to ensure proper setup and functionality.

Server Preparation and Updates

Start by updating your server to the latest package versions and ensure it is ready for further installations:

sudo yum update -y
sudo yum upgrade -y

Installing Required Dependencies

Install essential software packages and libraries that Pterodactyl depends on:

sudo yum install -y epel-release
sudo yum install -y tar unzip git curl

Setting Up MySQL Database

Install and configure MySQL to manage data for the Pterodactyl panel:

sudo yum install -y mariadb-server
sudo systemctl start mariadb
sudo systemctl enable mariadb

Run the mysql_secure_installation script and follow the prompts to secure your installation.

Installing PHP and Related Modules

Ensure PHP and required extensions are installed:

sudo yum install -y php php-cli php-fpm php-mysqlnd php-xml php-mbstring php-json

Setting Up Nginx as Web Server

Install Nginx and configure it to serve the Pterodactyl panel:

sudo yum install -y nginx
sudo systemctl start nginx
sudo systemctl enable nginx

Downloading and Configuring Pterodactyl Panel

Download the Pterodactyl panel from the official source and configure it accordingly:

cd /var/www/html
curl -Lo panel.tar.gz https://example.com/panel-release.tar.gz
tar -xzvf panel.tar.gz

Configuring SSL Certificates (Optional)

Secure your panel with SSL certificates using Let’s Encrypt or other services:

sudo yum install -y certbot
sudo certbot --nginx

Configuring Daemon for Wings

The Wings daemon is responsible for running the game servers managed by the Pterodactyl panel. Proper configuration is essential for smooth operation.

Installing Docker and Setting Up Wings

Docker is required for the Wings daemon to function. Install Docker and set up Wings with the following steps:

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
sudo systemctl enable docker

Download and configure the Wings daemon:

curl -Lo /usr/local/bin/wings https://example.com/wings-release.tar.gz
chmod +x /usr/local/bin/wings
wings configure --panel-url https://your.panel.url --token your_api_token

Start the Wings service:

sudo wings --debug

Final Setup and Testing

After installing and configuring all components, complete the setup by verifying the communication between the panel and Wings. Access your panel through your domain to ensure it loads correctly. Check that the Wings service is running by viewing its status and confirming it is connected to the panel.

Test the setup by creating and deploying a game server from the panel. Confirm that the server starts and operates as expected, indicating a successful installation.

Share:

More Posts

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments