A 503 Service Unavailable error means the server is temporarily unable to handle your request, often from overload, maintenance, or a stuck WordPress update. A 504 Gateway Timeout means a proxy waited too long for an upstream server to respond. Back up first, then clear the cause below.
.maintenance file.You open your website and instead of your pages you get a short message: 503 Service Unavailable or 504 Gateway Timeout. Sometimes it hits every visitor; sometimes only some pages fail. This is stressful, but the good news is that both errors are almost always temporary and fixable, often in a few minutes.
This guide is for site owners, bloggers, and small businesses, especially on WordPress. You do not need to be a developer. Both of these are server errors (the 5xx family), meaning the problem sits with the server or an app on it, not your browser. For the full family, see our server errors guide.
Start with three quick checks. They take a minute and point you straight at the cause.
Also open your host's status page and your hosting dashboard. Many hosts post live incidents there. If your host reports maintenance or an outage, the fix is simply to wait.
.maintenance file or one plugin, it is on your side and you can fix it below. If the whole server is slow, many sites on it are down, or your resource limits are maxed out with normal traffic, it is host-side. In that case, contact your host and share the exact error and time.
503 Service Unavailable is the server's way of saying "I can't handle this request right now, try again later." The server is running, but it is choosing not to serve the page. Common causes:
.maintenance file during updates and deletes it when done. If an update is interrupted, that file gets left behind and shows "Briefly unavailable for scheduled maintenance," which is a 503.504 Gateway Timeout means one server, acting as a gateway (a middle-man such as a proxy, load balancer, or CDN), asked another server (the upstream) for a response and did not get one in time, so it gave up. The request was not refused; it simply ran out of time. Common causes:
max_execution_time, it is stopped, which can surface as a 504.A close cousin of the 504 is the 502 Bad Gateway, where the gateway gets a broken reply instead of no reply. If you see 502s too, that guide is your next stop.
Match the error to its likely fix, then follow the matching step-by-step list below.
| Error | Most likely cause | First thing to try |
|---|---|---|
| 503 Service Unavailable | Stuck WordPress update or a bad plugin | Delete the .maintenance file, then deactivate plugins |
| 503 Service Unavailable | Traffic spike, attack, or resource limits | Check analytics and logs; ask your host about overload |
| 504 Gateway Timeout | Slow script or PHP timeout | Raise max_execution_time; optimize the slow task |
| 504 Gateway Timeout | CDN or proxy timeout | Check CDN/proxy timeout settings; retry |
wp-config.php), and delete the hidden .maintenance file. Reload the site.wp-content/plugins folder to plugins-off to disable all plugins at once, then reload. If that fixes it, restore the folder name and re-enable plugins one by one to find the bad one. Switch to a default theme such as twentytwentyfour to rule out the theme.max_execution_time (in seconds); a value like 300 gives long tasks more room. See our PHP settings guide for where to change it safely. Note: on Nginx servers the real wait limit is the upstream or proxy timeout, which is set on the host side, so you may need your host to raise it..maintenance file in the WordPress root. Do not delete wp-config.php, .htaccess, or the wp-content folder. Removing the wrong file can take the whole site down, so back up before you start.
A few other traps catch people out:
max_execution_time hides a slow script; it does not fix it. Use it to buy time, then optimize the real cause.A few habits keep 503 and 504 errors from coming back:
A 503 Service Unavailable means the server is up but temporarily refusing requests, usually from overload, maintenance, or a stuck update. A 504 Gateway Timeout means a gateway (like a proxy or CDN) waited for another server and got no reply in time. In short, 503 is "too busy" and 504 is "too slow."
WordPress creates a hidden .maintenance file while it updates and deletes it when finished. If the update is interrupted, by a timeout, a closed tab, or a failed plugin, that file is left behind and the site keeps showing a 503. Deleting the .maintenance file in the WordPress root folder clears it.
Not always. Site-side causes, like a stuck maintenance file, a broken plugin, or a slow script, are yours to fix. But server-wide overload, low server timeout limits, and provider maintenance are host-side. Use the "Is it your site or your host?" checks above to tell which one you have.
Find and fix the slow task rather than only raising limits. Optimize heavy database queries, split large jobs into batches, disable bloated plugins, and add caching. If timeouts keep happening under normal traffic, your plan is likely under-resourced, so review it with your host.
A short, rare 503 or 504 is unlikely to hurt rankings; search engines expect occasional downtime. A true 503 even tells crawlers to come back later. The risk comes from long or frequent outages, so fix the cause quickly and watch for repeats.
Rarely, because 503 and 504 are server-side. It is still worth a quick reload and a check in a private window to rule out a stale cached error page. If the error stays, the fix is on the server, using the steps above.
A 503 means the server is too busy or blocked; a 504 means something took too long and a gateway gave up. Back up first, then work the matching list: for a 503, clear a stuck .maintenance file and rule out plugins and load; for a 504, raise max_execution_time, check your CDN, and optimize slow tasks. If either keeps returning under normal traffic, it is host-side. For a wider view of every 5xx code and how they connect, head back to our server errors guide.
.maintenance file.max_execution_time configuration directive.The editorial team behind the Bitrich777 Hosting Help Center — practical, tested guides on web hosting, WordPress, servers, DNS, SSL, email, security and migration. Every walkthrough is reproduced on a live host before it is published.
View all guides by the Hosting Team Spotted an error? Tell us