A redirect loop on CloudPanel's login page after an update usually indicates an issue with the session, cookies, firewall, or incorrect SSL configurations.
Here's how you can quickly fix this issue:
🔸 Step 1: Clear Browser Cache and Cookies
First, ensure it's not a browser caching issue:
- Clear your browser's cache and cookies.
- Restart your browser and retry accessing CloudPanel.
🔸 Step 2: Restart CloudPanel Service
Log in via SSH and restart CloudPanel to resolve temporary service issues:
sudo systemctl restart cloudpanel
Additionally, restart PHP-FPM to ensure backend stability:
sudo systemctl restart php8.3-fpm # replace '8.3' with your PHP version
🔸 Step 3: Check and Fix SSL Configuration
Incorrect SSL configuration often causes redirection loops:
- Check CloudPanel SSL settings:
sudo nginx -t
- If errors are shown, review and correct your SSL configuration (certificate paths, etc.), then reload Nginx:
sudo systemctl reload nginx
- Reinstall the SSL certificate via CloudPanel CLI if necessary:
clpctl lets-encrypt:install:certificate --domainName=panel.domain.com
🔸 Step 4: Verify Permissions
Incorrect permissions after an update might cause redirect loops:
clpctl system😛ermissions:reset --directories=770 --files=660 --path=/usr/local/cloudpanel
Restart CloudPanel afterward:
sudo systemctl restart cloudpanel
🔸 Step 5: Check Firewall and IP Restrictions
Make sure your IP is not being blocked:
- Temporarily disable UFW firewall for troubleshooting:
sudo ufw disable
- If CloudPanel's Basic Authentication is enabled, consider temporarily disabling it:
clpctl cloudpanel:disable:basic-auth
🔸 Step 6: Review CloudPanel Logs
Check logs for specific errors:
tail -f /usr/local/cloudpanel/storage/logs/laravel.log
Address any errors found in the logs.