A 500 error is a problem on the website's server, not your device. Visitors: reload after a minute, or try later. Site owners: check the server/application error log for the exact exception, and undo the last plugin, theme, code or configuration change.

The short explanation

500 Internal Server Error means the website's application crashed while building the page and the server didn't return a more specific error. The detail is in the server's error logs, not in your browser.

For visitors there's nothing to fix locally. Site owners should check logs and undo recent changes.

Signs of the problem

  • “500 Internal Server Error” or “The server encountered an internal error.”
  • It appeared right after a deploy, a plugin update, or an edit to a config file.
  • Some pages work; dynamic ones fail.

What causes it

  • An unhandled exception or fatal error in the application code.
  • A broken .htaccess directive or wrong file permissions (often after upload).
  • The database is unreachable or a required environment variable is missing.
  • The PHP/Node/app process ran out of memory or crashed.

Fixes to try, in order

  1. Reload once in case it was transient; if it persists, open the application and web-server error logs and read the stack trace.
  2. Roll back the most recent deploy, plugin, or config change; verify database connectivity and environment variables.
  3. For PHP sites, temporarily rename .htaccess to test, check for a syntax/fatal error, then restart the app or PHP-FPM service.

Command

tail -n 100 /var/log/nginx/error.log
journalctl -u your-app -n 100 --no-pager

Apache logs are usually /var/log/apache2/error.log; app frameworks also write their own log under the project directory.

Check it's fixed: The page returns 200 and the error log stops recording the exception.

Prevent it from coming back

Deploy behind a staging environment, keep error logging on server-side, and add health checks after deploys.