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
- Reload once in case it was transient; if it persists, open the application and web-server error logs and read the stack trace.
- Roll back the most recent deploy, plugin, or config change; verify database connectivity and environment variables.
- 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.
Prevent it from coming back
Deploy behind a staging environment, keep error logging on server-side, and add health checks after deploys.
