guide 02 · 7 commands

Ptero Fix

Repair or update your existing Pterodactyl installation. The panel enters maintenance mode during this process — users will see a downtime notice.

⚠️ Run from your panel root — usually /var/www/pterodactyl. Panel goes into maintenance during the fix.
Step 1 · Enable Maintenance Mode
bash
php artisan down
Step 2 · Download & Extract Panel Files
bash
curl -L -o panel.tar.gz https://github.com/pterodactyl/panel/releases/latest/download/panel.tar.gz
rm -rf $(find app public resources -depth | head -n -1 | grep -Fv "$(tar -tf panel.tar.gz)")
tar -xzvf panel.tar.gz && rm -f panel.tar.gz
chmod -R 755 storage/* bootstrap/cache
Step 3 · Install Composer Dependencies
bash
composer install --no-dev --optimize-autoloader
Step 4 · Clear Cached Views & Config
bash
php artisan view:clear
php artisan config:clear
Step 5 · Run Database Migrations
bash
php artisan migrate --force
php artisan db:seed --force
Step 6 · Set File Ownership
bash
# Run the one matching your web server:
chown -R www-data:www-data *
# — or —
chown -R nginx:nginx *
# — or —
chown -R apache:apache *
Step 7 · Bring Panel Back Online
bash
php artisan up