What 503 Service Unavailable means
503 Service Unavailable is an HTTP status code. RFC 9110, the current HTTP specification, defines it as the server being unable to handle the request right now because of a temporary overload or scheduled maintenance, which will probably clear after some delay. The server may include a Retry-After header giving a number of seconds, or a date, after which it is worth trying again.
Two things follow from that definition:
- Your connection worked. Unlike DNS or connection errors, a 503 is a reply. Your browser found the server, connected, and got an answer back. The answer was simply "I cannot serve this now".
- It is supposed to be temporary. A 503 that lasts for hours is not a capacity blip any more; it is a fault that someone has to fix.
You may see it worded as HTTP Error 503, 503 Service Temporarily Unavailable, Service Unavailable: the server is temporarily unable to service your request, or, on WordPress, Briefly unavailable for scheduled maintenance. They are all the same status code with different default pages.
503 vs 502 vs 504
These three are often confused because they all appear when something behind the web server goes wrong. The difference is in what the front server experienced.
| Code | What happened | Typical cause |
|---|---|---|
| 503 Service Unavailable | The server chose not to serve the request, or could not hand it on | Overload, resource or rate limits, maintenance mode, backend refused |
| 502 Bad Gateway | A proxy got an invalid or no response from the backend | Backend crashed or closed the connection |
| 504 Gateway Timeout | A proxy waited for the backend and gave up | Slow queries, long scripts, backend hung |
The lines blur in practice: nginx usually reports an unreachable PHP-FPM as 502, while Apache's mod_proxy reports the same failure as 503. So treat the code as a strong hint, then read the logs. Our guides to 502 Bad Gateway and 504 Gateway Timeout cover those two in depth.
If you are a visitor
A 503 almost always comes from the website's side, so there is little you can break or fix. Work through these in order; most 503s clear at step one or two.
- Wait a minute and reload. Short overloads and WordPress updates usually clear within a minute or two. In Chrome on Windows press
F5, on a Mac pressCmd + R, and on Android tap the three-dot menu and then the reload arrow. - Check whether it is down for everyone. Look at the site's status page or social accounts, or ask someone on a different network to open it. If it is down for them too, only the owner can fix it.
- Do a hard reload. A cached error page can stick around after the site recovers. In Chrome on Windows press
Ctrl + Shift + R(orCtrl + F5); on a Mac pressCmd + Shift + R. On Android, open the page in an Incognito tab to bypass the cache. - Turn off your VPN or proxy. Some sites rate-limit by IP address and answer with 503 when one address sends too many requests. VPN exit addresses are shared by many people, so you may be paying for someone else's traffic. Corporate proxies can also generate their own 503 pages.
- Try another network. Switch between Wi-Fi and mobile data (Jio, Airtel, Vi or BSNL). Mobile carriers in India commonly put many users behind shared public addresses (carrier-grade NAT), so a per-IP limit on the site can trip for reasons that have nothing to do with you. If one network works and the other does not, a rate limit or a proxy is the likely cause.
- Come back later. If the site is in planned maintenance, the page may say when it will be back. Repeatedly reloading a struggling server does not help it recover.
Changing your DNS server, clearing all cookies or reinstalling Chrome will not fix a 503. Those help with errors like This site can't be reached, where the connection itself fails.
If you run the website
Start by confirming the code and who is sending it. From any machine with curl:
curl -sI https://example.com/ | grep -iE "^(HTTP|server|retry-after|cf-ray|x-cache)"
The server header tells you which layer answered: a CDN such as Cloudflare, nginx, Apache, LiteSpeed or your application. A cf-ray header means the response passed through Cloudflare; whether Cloudflare generated it or passed on your origin's 503 is shown on the error page itself, so compare it with a request made straight to the origin. Then work through the causes below.
1. PHP-FPM or application workers are exhausted
PHP-FPM serves at most pm.max_children requests at once. When all children are busy, new requests queue, and once the queue is full they fail. Behind Apache with proxy_fcgi this commonly shows as 503; behind nginx it is more often 502 or 504. Check the pool log and settings:
sudo grep -i "max_children" /var/log/php*-fpm.log
grep -E "^pm" /etc/php/8.3/fpm/pool.d/www.conf
sudo systemctl status php8.3-fpm
A warning that the pool "reached pm.max_children setting" confirms it. Raise the limit only as far as memory allows: divide the RAM you can spare by the average size of one PHP process (check with ps -o rss -C php-fpm8.3). If workers are busy because pages are slow, fix the slow pages, or every extra child just queues more slow work. The same logic applies to Node, Python or Java application servers with a fixed worker or thread pool.
2. Resource limits on shared hosting
Shared hosting accounts have per-account limits on CPU, memory, processes and entry processes, the number of PHP scripts that can run at the same moment for your account. When you hit one, the server refuses extra requests. Depending on the platform, visitors see either a 503 or a 508 Resource Limit Is Reached page. In cPanel, open the Resource Usage page if your host provides it, and look for faults at the times the errors happened.
Common triggers are bot traffic hammering search or login pages, uncached WordPress pages during a traffic spike, wp-cron running heavy jobs on every visit, and a plugin making slow external API calls. Turn on full-page caching, block abusive bots, and move cron to a real scheduled job before deciding you need a bigger plan.
3. Maintenance mode is stuck
During core, plugin or theme updates, WordPress writes a file called .maintenance to the site root and serves a 503 with the "Briefly unavailable" message. If an update is interrupted, the file can be left behind. WordPress stops honouring it after ten minutes, but a failing auto-update can keep recreating it. Check and remove it:
ls -la /path/to/site/.maintenance
rm /path/to/site/.maintenance
wp maintenance-mode status
Then re-run the update that failed, because a half-finished update can leave the plugin in a broken state. Our WordPress plugin troubleshooting guide covers disabling a plugin from the file manager. Maintenance plugins, Laravel's php artisan down and Magento's maintenance flag also return 503 on purpose, so check whether one was left switched on.
4. The backend behind a proxy is down
If Apache proxies to an application or to PHP-FPM and cannot connect, it returns 503 and logs the reason. Look for it:
sudo grep -E "AH01079|AH00957|AH01114" /var/log/apache2/error.log | tail
sudo tail -n 50 /var/log/nginx/error.log
sudo ss -ltnp
ss -ltnp shows whether the backend is actually listening on the port or socket the proxy expects. Restart the backend, then find out why it stopped: sudo journalctl -u yourapp --since "1 hour ago" and sudo dmesg -T | grep -i "killed process" will show crashes and out-of-memory kills. Load balancers such as HAProxy also return 503 when every backend server has failed its health checks.
5. Rate limits you set yourself
nginx's limit_req and limit_conn modules reject excess requests with 503 by default. If real visitors are being caught, look for these lines in the error log:
sudo grep -E "limiting requests|limiting connections" /var/log/nginx/error.log | tail
Raise the burst value, apply the limit only to expensive paths such as login and search, or change the response with limit_req_status 429;, which tells clients clearly that they are being throttled rather than that the server is unwell. Web application firewalls and DDoS protection can also answer with 503, so check their logs for the visitor's IP.
6. The whole server is overloaded
When load is far above the number of CPU cores, or the server is swapping, everything slows down and worker pools fill. Check quickly:
uptime
free -m
top -o %CPU
Find the process using the resources. If it is genuine traffic, add caching and a CDN first, then more CPU or RAM; on a Bigdomainhost KVM VPS vCPU and RAM grow in place with one reboot, so you do not need a new server. Our guide on how much RAM a VPS needs helps with sizing.
How to tell which side the problem is on
- Fails for everyone, on every network: the website. Start with the server checks above.
- Fails on one network or only through a VPN: most likely a per-IP rate limit or firewall rule on the site, or a proxy on your network producing its own 503. Compare the
serverheader on both networks. - Fails only at busy times: worker pools, entry process limits or server capacity.
- Fails only on logged-in pages, checkout or search: uncached dynamic pages using up workers, or a rate limit on those paths.
- Error page carries CDN branding: read it carefully. It usually says whether the CDN or your origin is at fault; then test the origin directly with
curl -sI --resolve example.com:443:ORIGIN_IP https://example.com/.
503 and SEO: the right way to take a site down
A 503 is the correct response for planned maintenance. Google treats 5xx responses as a signal to slow down crawling and keeps already indexed pages for a while; pages that keep returning errors for an extended period are eventually dropped. Serving a normal 200 page that says "down for maintenance" is worse, because that text can be indexed in place of your content.
Keep maintenance windows short, a few hours rather than days, and send Retry-After. Make sure robots.txt does not return 503 for long, because Google pauses crawling of the whole site while it cannot fetch that file. A simple nginx maintenance block:
error_page 503 /maintenance.html;
location = /maintenance.html {
root /var/www/maintenance;
add_header Retry-After 3600 always;
internal;
}
location / {
return 503;
}
On Apache or LiteSpeed with .htaccess:
ErrorDocument 503 /maintenance.html
Header always set Retry-After "3600"
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/maintenance\.html$
RewriteRule ^ - [R=503,L]
Remove the block as soon as the work is done, then fetch a few pages with curl to confirm they return 200.
503 errors on Bigdomainhost
On cPanel hosting, sites run on LiteSpeed with LSCache, which takes most page views off PHP and keeps you clear of entry process limits; the exact account limits are printed in the Terms of Service. On a KVM VPS you have root access, so every command above is yours to run. If you cannot find the cause, send support the URL, the time and the response headers: phone in IST business hours, or WhatsApp +91 75994 50220 at any time.
Sources (checked )
- IETF: RFC 9110: HTTP Semantics (503 Service Unavailable, Retry-After)
- MDN Web Docs: 503 Service Unavailable
- Google Search Central: How HTTP status codes, and network and DNS errors affect Google Search
- nginx.org: Module ngx_http_limit_req_module
- PHP Manual: FPM configuration
How Bigdomainhost can help
If 503 errors keep coming back because your site has outgrown its current host, moving can be the lasting fix. Our Web & cPanel hosting runs on LiteSpeed with LSCache on servers in Mumbai, keeps 30 days of daily backups, and we migrate your sites, databases and DNS records free of charge. Engineers answer the phone in IST hours and WhatsApp at any time, in Hindi or English, and can look at the error with you.