Reinstall Pterodactyl
By following these steps, you will restore your panel back to the latest version of Pterodactyl, prior to any modifications that took place.
WARNING
Back up your .env
file. If you follow these instructions to the letter, you should be fine, HOWEVER in the event that something DOES go wrong, you will not lose your data.
If you lose your .env
file, you will lose your encryption key, and you will lose any and all user data irrecoverably. I'm serious, back it up.
Put the panel into maintenance mode
Start off by putting the panel into maintenance mode:
php artisan down
Reinstall Pterodactyl
First we will remove directories where there's likely to be modified files, and then we will reinstall the latest version of Pterodactyl.
rm -rf .blueprint resources migrations app; curl -L https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz | tar -xzv
Set permissions
Web servers need to access the panel files in order to serve them. If you're using Debian or its derivatives, you can simply run the following command:
chown -R www-data:www-data /var/www/pterodactyl/*
This will change the ownership of the panel to the www-data
user. If you're using other distributions, the user may be different. For example, CentOS and Arch Linux are likely going to use the nginx
user instead.
Bring the panel back up
Your panel should be back to stock now. You can now deactivate maintenance mode by running the following command:
php artisan up
Or, you can continue back to installation via Nova CLI.
If you're seeing any issues, contact us. We'll try our best to help.