502 Bad Gateway Error
Occurs when a gateway server receives an invalid response from upstream.
Common Causes
- Server overload
- PHP timeout
- DNS issues
- Firewall blocking
How to Fix
1. Refresh the Page
Wait and refresh. Often temporary.
2. Clear Browser Cache
Clear cache and cookies.
3. Check DNS
Ensure domain points to correct server IP.
4. Disable CDN
Pause Cloudflare or other CDN to test.
5. Increase PHP Limits
In cPanel MultiPHP INI Editor: max_execution_time = 300, memory_limit = 256M.