HTTP 503 · Apache · Nginx · WordPress

503 Service Unavailable: 2 Proven Fixes

The “503 Service Unavailable” error means your web server is temporarily unable to handle the request. It is one of the common website errors. Fix it with two steps: check server health, then diagnose configuration issues.

Updated November 2026 · 8 min read · Apache, Nginx, WordPress

browser
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.

Quick answer: what is a 503 Service Unavailable error?

A 503 Service Unavailable error is an HTTP status code. It means the server is working but is temporarily unable to handle your request, usually because of overload, maintenance or a crashed process. It is defined in RFC 9110 and explained on MDN.

Fastest fixes: check CPU and memory, restart Apache or Nginx, disable maintenance mode, read the error log, and deactivate plugins.

503 vs 500 vs 502 vs 504: what is the difference?

These server errors look alike but have different causes. Read the code before you fix.

CodeNameMeaningFirst thing to check
500Internal Server ErrorThe server failed unexpectedlyError log, .htaccess, plugins
502Bad GatewayAn upstream server sent an invalid responsePHP-FPM or app server status
503Service UnavailableThe server is temporarily unable to handle the requestServer load, maintenance mode
504Gateway TimeoutAn upstream server took too longSlow scripts, timeout settings

New to status codes? Read our guide to common website errors for 404, 500 and 403 fixes.

How to fix 503 Service Unavailable

Two solutions. Start with server health, then move to configuration.

1

Fix 1: Check your server health

📈

Verify server load

The most common cause of a 503 is an overloaded server. High CPU and memory use is the sign. Use top on Linux or Task Manager on Windows.

🔄

Restart the web server

Restarting Apache or Nginx clears lingering issues and relieves stress on the server for a while.

⚡

Optimize your website

Compress images, enable browser caching and reduce HTTP requests to lower server load.

🚀

Upgrade resources

If traffic spikes are frequent, upgrade your hosting plan or server resources. Scalability matters.

Terminal (Linux)
top                          # CPU and memory usage
free -h                      # memory
df -h                        # disk space (a full disk also causes errors)

sudo systemctl restart apache2     # Apache (Debian/Ubuntu)
sudo systemctl restart httpd       # Apache (CentOS/RHEL)
sudo systemctl restart nginx       # Nginx
sudo systemctl restart php8.2-fpm  # PHP-FPM (use your PHP version)
2

Fix 2: Diagnose and resolve configuration issues

🛠️

Check maintenance mode

Make sure the site was not left in maintenance mode by accident. Disable it if needed.

📜

Examine error logs

Logs show the specific problem that triggered the error. Always read them before guessing.

🧩

Check plugins and themes

On a CMS like WordPress, incompatible plugins or themes can cause server errors. Deactivate or update them.

🛡️

Review security measures

Aggressive firewall rules can block legitimate requests. Adjust them if needed.

🗄️

Database connection

A slow or overloaded database can cause a 503. Check that it is running and optimize slow queries.

⬆️

Update your CMS

Regular updates patch vulnerabilities and improve stability.

Terminal (logs)
sudo tail -n 50 /var/log/apache2/error.log
sudo tail -n 50 /var/log/nginx/error.log
sudo nginx -t                  # test the Nginx config for mistakes
WordPress (Terminal)
# Stuck after an update? Delete the maintenance file in the site root:
rm .maintenance

# Deactivate all plugins by renaming the folder:
mv wp-content/plugins wp-content/plugins_off
3

Bonus: Fix “503 error while trying to use an ErrorDocument”

This message means the server tried to show your custom error page, but that page also failed. It usually happens when ErrorDocument points to a PHP file, a CMS page or a path that is itself unavailable. Point it at a simple static HTML file, or at plain text. See the Apache ErrorDocument documentation for the full syntax. Then confirm the status from the command line with curl -I https://yourdomain.com.

.htaccess
# Use a static file, not a PHP or CMS page
ErrorDocument 503 /503.html

# Or a plain text message
ErrorDocument 503 "We are busy. Please try again in a few minutes."

Tip: when you take your site down on purpose, return a 503 with a Retry-After header. Search engines then know the outage is temporary and will not drop your pages. Google explains how it handles server errors in Search Central.

Why do I get 503 Service Unavailable?

This common issue results from server overloads or misconfigurations. To address it, optimize server resources and consider a CDN for better scalability. Monitor server health regularly and keep your security measures in place. If your traffic dropped after the error, also check why Google Analytics shows no data: a 503 can stop tracking from loading.

What is error 503 in Nginx?

A 503 in Nginx signals that the server cannot handle the request. Check three things: request or connection limits (see the limit_req module docs), an upstream such as PHP-FPM that is stopped or busy, and the error log.

nginx.conf
# Limits that can return 503 when too strict
limit_req_zone $binary_remote_addr zone=one:10m rate=10r/s;
limit_req zone=one burst=20 nodelay;

# Raise the PHP-FPM children if the pool is exhausted (php-fpm pool config)
# pm.max_children = 20
Conclusion

Check load, read logs, fix config.

A 503 can be stressful, but it is a challenge you can overcome. Address server load, optimize your website and diagnose configuration problems, then monitor performance regularly to keep the error away.

More error fixes →

503 Service Unavailable: frequently asked questions

Why do I get 503 Service Unavailable?

A 503 means the server is temporarily unable to handle the request. Common causes are an overloaded server, maintenance mode, a crashed PHP or application process, a broken plugin, an overloaded database or a bad configuration.

What is error 503 in Nginx?

In Nginx a 503 usually means the server cannot handle the request. Typical reasons are request or connection limits, an upstream such as PHP-FPM that is down or busy, or a maintenance rule. Check the Nginx error log and test the config with nginx -t.

What does a 503 error encountered while trying to use an ErrorDocument mean?

It means the server tried to show your custom error page, but that page also failed with a 503, for example because it points to a PHP file or a path that is itself unavailable. Point ErrorDocument at a simple static HTML file.

How long does a 503 error last?

It is meant to be temporary. A traffic spike or restart may clear in minutes, while a broken plugin or misconfiguration lasts until you fix it.

How do I fix a 503 error in WordPress?

Delete the .maintenance file in the site root if an update got stuck, deactivate all plugins by renaming the plugins folder, switch to a default theme, and check the error log and your hosting resource usage.

Does a 503 error hurt SEO?

A short 503 is treated as temporary and does not harm rankings. If it lasts for days, Google may slow crawling and eventually drop pages, so fix it quickly.

What is the difference between 500, 502, 503 and 504 errors?

A 500 is a general server failure, a 502 means a gateway received an invalid response from an upstream server, a 503 means the server is temporarily unable to handle the request, and a 504 means the upstream server timed out.

How can I check a 503 error from the command line?

Run curl -I https://yourdomain.com and read the first line of the response. HTTP/2 503 confirms the status, and a Retry-After header tells you when to try again.

Scroll to Top