In this guide, I will guide you on how to update your Pterodactyl panel to the latest version.

If you don't have a Pterodactyl, you can check out the instructions for it here.

 

You can check if your panel is on the latest version in the overview section of the panel's admin area.

 

Updating the panel

 

In order to update the panel we need to go to the folder where you downloaded the panel.

cd /var/www/pterodactyl

 

And then turn off the panel.

php artisan down

 

Downloading the latest version.

curl -L https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz | tar -xzv

 

Then you need to give permissions to the necessary folders.

chmod -R 755 storage/* bootstrap/cache

 

Then, if necessary, download a new PHP version. The current Pterodactyl version is compatible with PHP 8.3, so we'll download that.

add-apt-repository -y ppa:ondrej/php
apt -y update
apt -y install php8.3 php8.3-{cli,gd,mysql,common,mbstring,tokenizer,bcmath,xml,fpm,curl,zip}

 

Change Nginx settings to work with PHP 8.3.

sed -i -e 's/php[7|8].[0-9]-fpm.sock/php8.3-fpm.sock/' /etc/nginx/sites-available/pterodactyl.conf
systemctl reload nginx

 

Use Composer to download the latest dependencies.

composer install --no-dev --optimize-autoloader

 

Clear old settings from the cache.

php artisan view:clear
php artisan config:clear

 

Database update.

php artisan migrate --seed --force

 

Set permissions.

chown -R www-data:www-data /var/www/pterodactyl/*

 

Restart queue workers.

php artisan queue:restart

 

Start the panel.

php artisan up

 

Then you should be back in the panel where you can check the version.

 

Updating Wings

 

You can see what version Wings is on by typing this command

wings version

 

 

Shut down Wings before updating.

systemctl stop wings

 

Download the latest version of Wings with this command.

curl -L -o /usr/local/bin/wings "https://github.com/pterodactyl/wings/releases/latest/download/wings_linux_$([[ "$(uname -m)" == "x86_64" ]] && echo "amd64" || echo "arm64")"

 

Give execute permissions to the file.

chmod +x /usr/local/bin/wings

 

Restart Wings.

systemctl restart wings

 

You have now successfully updated the Pterodactyl panel.

Was this answer helpful? 0 Users Found This Useful (0 Votes)