Offer Shared Hosting Ultra-fast Performance! 29$ using coupon new-2026 1st/y

Claim Offer
Print

How to Fix the 502 Bad Gateway Error

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.

Was this answer helpful?

Your feedback helps us improve our content