Welcome to the Pterodactyl Installer repository! 🎉 This installer is designed to help you easily install and set up the Pterodactyl Panel on Debian-based or RHEL-based machines. If you encounter any issues during the installation process, please refer to our troubleshooting section for helpful tips. 🛠️
Follow these steps to get started:
-
🧹 Prepare your machine: Ensure that your machine is freshly reinstalled if you've made any changes to it beforehand. A clean setup will help avoid conflicts during installation.
-
🌐 DNS Configuration: Point a DNS A-Record to your machine's IP address. For example, you can point
panel.example.comtoExample --> 86.144.10.13. -
📥 Download and Run the Installer: To download and run the installer, simply enter the following command into your terminal and follow the prompts:
bash <(curl -Ss https://raw.githubusercontent.com/sensei-this/pterodactyl-installer/main/install.sh || wget -O - https://raw.githubusercontent.com/sensei-this/pterodactyl-installer/main/install.sh) auto
🔹 Make sure you have Pterodactyl Panel and Wings installed.
🔹 Install MySQL or MariaDB on the panel server.
🔹 Check if port 3306 (or another if using a custom one) is open.
Installint phpmyadmin
export PHPMYADMIN_VERSION=$(curl --silent https://www.phpmyadmin.net/downloads/ | grep "btn btn-success download_popup" | sed -n 's/.*href="\([^"]*\).*/\1/p' | tr '/' '\n' | grep -E '^.*[0-9]+\.[0-9]+\.[0-9]+$')
for
cd /var/www/pterodactyl/public && wget https://files.phpmyadmin.net/phpMyAdmin/$PHPMYADMIN_VERSION/phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip && unzip phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip && rm phpMyAdmin-$PHPMYADMIN_VERSION-all-languages.zip && mv phpMyAdmin-$PHPMYADMIN_VERSION-all-languages pma
🔹 Open the database configuration file:
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf🔹 Find the following line:
bind-address = 127.0.0.1If you have an IP replace 127.0.0.1 with your IP address (e.g., Example --> 0.0.0.0).
If you have a domain replace 127.0.0.1 with your IP address (e.g., Example --> 86.144.10.13).
🔹 Save the changes (Ctrl + X → Y → Enter).
🔹 Restart MySQL/MariaDB:
sudo systemctl restart mysqlsudo systemctl restart mariadb
🔹 Open MySQL:
mysql -u root -p🔹 Select the MySQL database:
USE mysql;🔹 Create a new user:
CREATE USER 'username'@'%' IDENTIFIED BY 'password';🔹 Grant all privileges:
GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' WITH GRANT OPTION;🔹 Flush privileges:
FLUSH PRIVILEGES;🔹 Exit MySQL:
EXIT;- Log into Pterodactyl Panel as an administrator.
- Go to Admin Panel → Databases.
- Click Create Database.
- Specify:
- Database Name
- Server to link the database to
- Database Host (your IP or
127.0.0.1if local)
- Save the changes.
Your database is now set up and ready to use! 🚀
- Please note that "example.com" refers to the panel URL you set during the installation process. 🌐
- After the installation is complete, go to http://example.com/admin/nodes/view/1/allocation to add the necessary ports for your games. 🎮
-
If you receive a MySQL connection error 💻, you may have run the installer multiple times. In this case, the best solution is to reinstall your operating system and run the install script again. 🔄
-
If you encounter Let's Encrypt SSL generation errors 🔒, it could be because you're using an IP address instead of a domain, or because the FQDN you're trying to generate an SSL for doesn't have an A-Record pointing to your machine IP. 🌍
| Operating System | Version | Supported | PHP Version |
|---|---|---|---|
| Ubuntu | 20.04 | ✅ | 8.3 |
| 22.04 | ✅ | 8.3 | |
| 24.04 | ✅ | 8.3 | |
| Debian | 11 | ✅ | 8.3 |
| 12 | ✅ | 8.3 | |
| 13 | 🔴 * | ||
| Rocky Linux | 8 | ✅ | 8.3 |
| 9 | ✅ | 8.3 | |
| AlmaLinux | 8 | ✅ | 8.3 |
| 9 | ✅ | 8.3 |