Unhandled exception
Application code throws an error nothing catches: a syntax error, a missing dependency, a null value.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
A 500 Internal Server Error is a generic server-side failure: the server hit an unexpected condition and had no more specific 5xx code to return. Visitors cannot fix it. Owners find the cause in the error log, where the real message is.
MDN lists these common causes. Each leaves a different trace in the logs.
Application code throws an error nothing catches: a syntax error, a missing dependency, a null value.
A bad rule in .htaccess, an invalid directive or a wrong handler setting makes every request fail.
The process exceeds its memory limit and is killed or stops mid-request.
The web server or interpreter cannot read or execute files it needs.
A database, cache or API the app needs is down or refuses the connection.
On CMS sites, a new or updated extension breaks page rendering.
Run curl -I https://example.com/page to confirm a real 500 and note the time. Check whether it affects every URL or only some.
Look at the web server and application logs for the same timestamp. The line names the file, the error and the request.
Roll back the last deploy, config edit, plugin or theme update. A 500 that began right after a change almost always comes from it.
Confirm free memory, disk space and database connections. Out-of-memory kills and a full disk both produce 500s.
Test the web server configuration for syntax errors and check ownership and permissions on the application files.
Log every 500 with the request details so the next failure takes minutes to trace, as MDN recommends.
# nginx
sudo tail -n 100 /var/log/nginx/error.log
# Apache on Debian or Ubuntu
sudo tail -n 100 /var/log/apache2/error.log
# systemd-managed app server
sudo journalctl -u your-app.service --since "15 minutes ago"| Code | Meaning | Where the fault sits |
|---|---|---|
| 500 | Unexpected condition, no specific code fits | The server or application itself |
| 502 | Gateway got an invalid upstream response | Behind the proxy |
| 503 | Temporarily unable to handle the request | Overload or maintenance |
| 504 | Gateway got no upstream response in time | A slow or hung upstream |
5xx
Google slows crawling when servers return server errors, and drops URLs that keep failing
Source: Google Search Central
Gradual
After the server returns 2xx again, Google gradually raises the crawl rate
Source: Google Search Central
It means the server hit an unexpected condition and could not complete the request. The code is generic, used when no more specific 5xx code applies. The cause is on the server or in the application, not in the visitor request.
Read the PHP and web server error log first. Then disable plugins and switch to a default theme to find a conflict, check for a corrupt .htaccess file, and confirm the PHP memory limit is high enough. Restore from a backup if a recent update broke the site.
It can be. A brief overload or a restart in progress may clear in minutes. A 500 on every request after a deploy or config change stays until someone fixes the cause, so check the logs rather than waiting.
No. Reload once and try again later. Clearing cache or changing browsers rarely helps, because the failure happens on the server. Tell the site owner the URL and time so they can find it in their logs.
A short outage has little effect. Google treats persistent server errors as a reason to slow crawling and eventually drop URLs from the index. Fix lasting 500s quickly and monitor key pages so you hear about them first.
Aepto checks your sites from up to six regions and puts failures in one Attention queue.