Back to HTTP 502 Bad Gateway
    HTTP 502
    WordPress

    HTTP 502 Bad Gateway in WordPress

    WordPress — the world's most popular CMS.

    What triggers it in WordPress

    PHP-FPM crashed or the upstream Nginx/Apache worker was killed (OOM on shared hosting).

    Standards reference

    How to fix it on WordPress

    Raise `memory_limit` in php.ini, restart PHP-FPM, and check the host's process supervisor logs.

    Where you'll see it

    WordPress admin, wp-cron output, or the site's frontend after a plugin/theme update.

    Monitor 502 responses continuously

    Lemwatch checks your WordPress endpoints as often as every 5 minutes and alerts the moment a 502 pattern appears — with the full response headers and body captured, so you can debug without waiting for the next customer report.

    Catch 502 errors on WordPress in under 60s

    Free tier — 5 monitors, no credit card.

    Same error on other platforms

    502 Bad Gateway in WordPress — FAQs

    PHP-FPM crashed or the upstream Nginx/Apache worker was killed (OOM on shared hosting).

    Last verified: by the Lemwatch research team.