WordPress 500 errors: fast triage on Ubuntu + Apache

wordpressapachephpubuntulinuxtroubleshooting

Facing 500s? Start with logs and service health before touching WordPress code. This sequence helps you confirm Apache and PHP-FPM, then narrow down to the app layer.

Sequence (fast)

  1. Confirm Apache is healthy
  2. Confirm PHP-FPM is healthy
  3. Check whether WordPress, a plugin, or the theme triggered a fatal

Commands

Common culprits

FAQ

How do I know if the 500 is Apache, PHP, or WordPress?
Check the Apache error log first. Proxy/FastCGI errors usually point to PHP-FPM (or wrong socket). PHP fatals and plugin names point to WordPress. See Apache log analysis for WordPress for a tighter workflow.

The site was fine until we upgraded PHP.
Plugins and themes often break on new PHP versions. Follow debugging WordPress after a PHP upgrade to isolate the offender.