{"id":131008,"date":"2025-11-11T15:15:33","date_gmt":"2025-11-11T20:15:33","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=131008"},"modified":"2025-12-31T14:11:18","modified_gmt":"2025-12-31T19:11:18","slug":"504-gateway-timeout","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/","title":{"rendered":"How to Fix the 504 Gateway Timeout Error"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46-1024x538.png\" alt=\"504 Gateway Timeout Error\" class=\"wp-image-131011\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n<div class=\"wp-block-post-excerpt\"><p class=\"wp-block-post-excerpt__excerpt\">A 504 gateway timeout occurs when a server waits too long for an upstream response, often caused by slow PHP scripts, database delays, or misaligned timeouts. For WordPress sites, fixing it involves checking logs, optimizing performance, tuning server limits, and ensuring adequate hosting capacity. Regular monitoring and scalable infrastructure prevent future timeouts and maintain uptime reliability, preserving both SEO and user trust. <\/p><\/div>\n\n\n<p>Few website problems are as frustrating as the 504 gateway timeout error. You load a page, wait a few seconds, and instead of content, you get a white screen with a cryptic message. For visitors, it\u2019s an inconvenience. For site owners, it\u2019s a potential loss in conversions, search visibility, and trust.<\/p>\n\n\n\n<p>A 504 error means that one server waited too long for another to respond. It\u2019s a server-side issue (not something a visitor can fix) and it often points to underlying performance or configuration problems. The good news? Most 504 errors are preventable once you understand what causes them and how to tune your hosting environment properly.<\/p>\n\n\n\n<p>When your site is your business, avoiding these errors is essential. Slow or unreliable response times can hurt SEO rankings and signal instability to customers. Understanding how to diagnose and prevent 504s keeps your digital operations smooth, fast, and dependable. These are all traits that define a strong online brand.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What a 504 Gateway Timeout Really Means<\/h2>\n\n\n\n<p>Before diving into the technical steps, it\u2019s helpful to understand exactly what a 504 gateway timeout represents. Knowing what\u2019s actually happening behind that message makes troubleshooting more intuitive and focused. Once you know the relationship between the different servers involved, you can start pinpointing where the delay is occurring.<\/p>\n\n\n\n<p>A 504 gateway timeout occurs when a server acting as a gateway or proxy doesn\u2019t receive a timely response from an upstream server. In simple terms, one component in your hosting stack waited for data from another, but the connection timed out before it arrived.<\/p>\n\n\n\n<p>This typically happens in layered architectures where your web server, application (like PHP-FPM), and database all work together. If any link in that chain stalls, the request fails.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Common examples:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A web server such as <a href=\"https:\/\/nginx.org\/en\/docs\/http\/ngx_http_fastcgi_module.html#fastcgi_read_timeout\">NGINX<\/a> or <a href=\"https:\/\/httpd.apache.org\/docs\/current\/mod\/mod_proxy.html\">Apache<\/a> can\u2019t get a quick response from the PHP process handling a WordPress page.<\/li>\n\n\n\n<li>A CDN like Cloudflare can\u2019t reach your origin server within its allowed time window.<\/li>\n\n\n\n<li>A load balancer distributes requests to multiple servers, but one node becomes overloaded and unresponsive.<\/li>\n<\/ul>\n\n\n\n<p>It\u2019s important to distinguish 504s from similar errors:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/502-bad-gateway\/\">502 Bad Gateway<\/a><\/strong>: The proxy received an invalid response (not necessarily a timeout).<\/li>\n\n\n\n<li><strong><a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/create-503-status\/\">503 Service Unavailable<\/a><\/strong>: The server is temporarily unable to handle the request, often due to maintenance or overload.<\/li>\n<\/ul>\n\n\n\n<p>A 504, by contrast, means communication failed to complete in time. Understanding that distinction will make the next section far easier to diagnose.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why It Happens: The Real Causes Behind 504 Errors<\/h2>\n\n\n\n<p>Now that you understand what the 504 message actually represents, the next step is figuring out why it happens. Each possible cause affects a different layer of your stack, from the WordPress application down to the server itself. It\u2019s worth walking through these one by one because the fix for each is slightly different.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Application-Level Delays<\/h3>\n\n\n\n<p>WordPress sites are particularly vulnerable to timeouts from heavy plugins, complex themes, or slow API calls. A single plugin that queries an external service can hold up the page load.<\/p>\n\n\n\n<p>If WP Cron tasks or background jobs overlap with visitor traffic, PHP processes can stack up, forcing the web server to wait longer than expected. The more concurrent users, the worse the slowdown becomes.<\/p>\n\n\n\n<p>When you know <a href=\"https:\/\/www.inmotionhosting.com\/resources\/ultimate-guide-wordpress-performance\">the delay starts inside WordPress<\/a>, you can address it with caching or code-level optimization. But if performance looks fine in the dashboard, it\u2019s time to look deeper often to the database or the server resources.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Database or Resource Bottlenecks<\/h3>\n\n\n\n<p>MySQL slow queries are another frequent culprit. When the database struggles to deliver results quickly, the web server times out waiting for data. This is common in WordPress sites with large WooCommerce catalogs or unoptimized postmeta tables.<\/p>\n\n\n\n<p>Shared hosting environments can compound this issue if multiple users compete for the same CPU or I\/O bandwidth.<\/p>\n\n\n\n<p>When database queries become a bottleneck, everything else downstream suffers. The next place to look is your network path and proxy configuration, which can introduce latency before the request even hits the database.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Network or CDN Timeouts<\/h3>\n\n\n\n<p>When a CDN or reverse proxy sits between the browser and your origin server, additional network hops add potential failure points. If the CDN\u2019s edge node can\u2019t connect to your host quickly, it returns a 504 even if your server is technically up.<\/p>\n\n\n\n<p>This scenario is common during regional outages, DNS misconfigurations, or when the CDN\u2019s timeout threshold is shorter than the origin\u2019s response time.<\/p>\n\n\n\n<p>Once you\u2019ve ruled out network-level issues, it\u2019s worth verifying that your timeout and resource limits are properly configured to match your site\u2019s needs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Misconfigured Timeouts or Limits<\/h3>\n\n\n\n<p>Timeout settings control how long each layer waits for a response. When they\u2019re misaligned, one component may give up too early.<\/p>\n\n\n\n<p>Typical parameters include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>max_execution_time<\/strong> in PHP: limits how long a script runs.<\/li>\n\n\n\n<li><strong>fastcgi_read_timeout<\/strong> (NGINX) or <strong>ProxyTimeout<\/strong> (Apache): define how long to wait for upstream responses.<\/li>\n<\/ul>\n\n\n\n<p>If PHP or the application layer needs more time than the proxy allows, 504s appear even though the process eventually completes.<\/p>\n\n\n\n<p>After verifying configuration settings, the last possible cause to check is simple but common: server resource exhaustion.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Server Resource Saturation<\/h3>\n\n\n\n<p>Sometimes the cause isn\u2019t configuration, it\u2019s capacity. If CPU, memory, or I\/O is maxed out, every response slows down. When multiple concurrent requests queue up, the web server can\u2019t respond within its timeout window.<\/p>\n\n\n\n<p>Traffic spikes, background backups, or malware scans can all trigger short-lived resource exhaustion that manifests as intermittent 504s.<\/p>\n\n\n\n<p>By understanding each of these causes, you can approach troubleshooting in a structured way. Next, let\u2019s look at how to fix a 504 step-by-step.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"643\" height=\"558\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/Screenshot-2025-10-16-at-12.54.00-PM.png\" alt=\"Common 504 Error Causes\" class=\"wp-image-131013\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/Screenshot-2025-10-16-at-12.54.00-PM.png 643w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/Screenshot-2025-10-16-at-12.54.00-PM-300x260.png 300w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">How to Fix a 504 Gateway Timeout (Step by Step)<\/h2>\n\n\n\n<p>Fixing a 504 requires methodical testing rather than guesswork. Start with the easiest checks to eliminate temporary or superficial causes before you dig into configuration or performance optimization. Each step builds on the last, ensuring you don\u2019t miss a layer of the stack.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Confirm It\u2019s Not a Temporary Glitch<\/h3>\n\n\n\n<p>Before diving deep, confirm the issue is repeatable. Refresh the page and test from another device or connection. Use tools like Down for Everyone or Just Me to check if others experience the same timeout.<\/p>\n\n\n\n<p>You can also use the command line:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>curl -I https:\/\/yoursite.com<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #B392F0\">curl<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">-I<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">https:\/\/yoursite.com<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>If the command hangs or returns a 504, the issue likely resides on the server side.<\/p>\n\n\n\n<p>If the problem persists, the next logical step is to gather evidence from your server and application logs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Check Server and Application Logs<\/h3>\n\n\n\n<p><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/cpanel-logs-for-access-apache-email-error-ftp-mysql-whm\/\">Logs provide the fastest route to the root cause<\/a>. Look in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\/var\/log\/nginx\/error.log or \/usr\/local\/apache\/logs\/error_log for proxy errors.<\/li>\n\n\n\n<li>wp-content\/debug.log if WordPress debugging is enabled.<\/li>\n\n\n\n<li>PHP-FPM logs for worker timeouts or memory limit errors.<\/li>\n<\/ul>\n\n\n\n<p>Time-correlate errors with user actions or cron jobs. Repeated entries like \u201cupstream timed out\u201d or \u201cpool busy\u201d point to bottlenecks between layers.<\/p>\n\n\n\n<p>Once you see where delays occur, it\u2019s time to optimize your WordPress performance itself, often the easiest and most effective fix.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Optimize WordPress Performance<\/h3>\n\n\n\n<p>Start with what you can control in WordPress:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Deactivate heavy plugins<\/strong> temporarily to see if load times improve.<\/li>\n\n\n\n<li><strong>Implement caching<\/strong> at multiple levels, page caching plugins like WP Rocket, object caching with Redis or Memcached, and browser caching via .htaccess rules.<\/li>\n\n\n\n<li><strong>Compress and optimize images<\/strong> to reduce processing time.<\/li>\n<\/ul>\n\n\n\n<p>Even on high-performing servers, unoptimized plugins can cause resource contention that leads to 504s.<\/p>\n\n\n\n<p>With your site optimized, you can safely move on to reviewing timeout configurations to ensure they\u2019re properly aligned.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Review PHP and Proxy Timeouts<\/h3>\n\n\n\n<p>Timeouts shouldn\u2019t be the first setting to tweak, but once the application is optimized, they must align.<\/p>\n\n\n\n<p>For PHP (via php.ini):<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>max_execution_time = 120<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">max_execution_time = <\/span><span style=\"color: #79B8FF\">120<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>For NGINX:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>fastcgi_read_timeout 120s;<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">fastcgi_read_timeout 120s;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>For Apache with mod_proxy:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>ProxyTimeout 120<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewbox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #F97583\">ProxyTimeout<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #79B8FF\">120<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>Ensure these values are consistent across layers. If one times out at 60 seconds and another waits 120, you\u2019ll get inconsistent 504 behavior.<\/p>\n\n\n\n<p>If timeouts are aligned and 504s persist, the next place to look is your database performance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Test Database Health<\/h3>\n\n\n\n<p>Use tools like the Query Monitor plugin or the <a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.4\/en\/slow-query-log.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">MySQL slow_query_log<\/a> to identify queries that take longer than expected.<\/p>\n\n\n\n<p>Optimize your database by:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Running OPTIMIZE TABLE commands periodically.<\/li>\n\n\n\n<li>Adding indexes where missing.<\/li>\n\n\n\n<li>Cleaning post revisions and transients.<\/li>\n<\/ul>\n\n\n\n<p>You can also offload search queries or large analytics tables to a separate database or service if performance demands grow.<\/p>\n\n\n\n<p>If the database looks healthy, the remaining possibilities lie in your network configuration and upstream services.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Check CDN, Proxy, and DNS Layers<\/h3>\n\n\n\n<p>If you\u2019re using Cloudflare or another CDN, check its dashboard for origin connection errors. Temporarily switch the site to \u201cDNS only\u201d mode to confirm whether the issue persists.<\/p>\n\n\n\n<p>Also review DNS records to ensure they point directly to the correct origin IP. Outdated records or propagation delays can cause connection stalls that surface as 504s.<\/p>\n\n\n\n<p>If you\u2019ve made it this far and the error still appears, it\u2019s time to evaluate whether your hosting plan has the capacity your site requires.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Evaluate Hosting Capacity<\/h3>\n\n\n\n<p>If timeouts coincide with high traffic or large imports, your server may be undersized. Review metrics in your hosting dashboard for CPU, RAM, and I\/O utilization.<\/p>\n\n\n\n<p>Scaling up to a plan with more resources, or one that leverages NVMe storage and optimized caching layers, often eliminates chronic 504s. This is especially relevant for agencies managing multiple WordPress installations on the same account.<\/p>\n\n\n\n<p>By following these steps in order, you\u2019ll isolate the true cause of most 504 errors. Next, let\u2019s look at how to prevent them from returning once they\u2019re fixed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Preventing Future 504 Errors<\/h2>\n\n\n\n<p>Once your site is stable again, prevention becomes the goal. The best time to solve 504s is before they occur. You can do this through monitoring, maintenance, and scaling decisions that anticipate growth. This proactive mindset ensures consistent uptime and protects your reputation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Monitor Server and Application Health<\/h3>\n\n\n\n<p>Consistent monitoring makes the difference between reactive and proactive maintenance. Use services like UptimeRobot, Pingdom, or your hosting provider\u2019s monitoring suite to track response times and uptime.<\/p>\n\n\n\n<p>Set alert thresholds that notify you before failures occur. A pattern of slow responses often precedes full timeouts.<\/p>\n\n\n\n<p>By detecting issues early, you can fix small delays before they become complete outages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Perform Regular WordPress Maintenance<\/h3>\n\n\n\n<p>Stay current with core, plugin, and theme updates. Old code can introduce inefficiencies or compatibility issues that trigger slow responses.<\/p>\n\n\n\n<p>Schedule maintenance tasks during off-peak hours to avoid load spikes during business traffic.<\/p>\n\n\n\n<p>Ongoing maintenance not only prevents 504s but also keeps your site faster and more secure.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Plan for Growth<\/h3>\n\n\n\n<p>As your site grows, so does its demand on resources. Planning capacity ahead prevents downtime later.<\/p>\n\n\n\n<p>Use load testing tools such as k6 or ApacheBench to simulate high-traffic events. If performance degrades under simulated load, scaling up CPU or RAM (or shifting to a VPS or dedicated environment) may be necessary.<\/p>\n\n\n\n<p>According to <a href=\"https:\/\/www.thinkwithgoogle.com\/_qs\/documents\/9757\/Milliseconds_Make_Millions_report_hQYAbZJ.pdf\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google\u2019s SOASTA research<\/a>, even a 0.1-second improvement in site speed can increase conversion rates by nearly 8%. That\u2019s proof that speed and scalability aren\u2019t just technical metrics, they directly affect your bottom line.<\/p>\n\n\n\n<p>A scalable environment ensures your site continues to perform even as your audience or client base expands. With prevention measures in place, it\u2019s easier to understand the broader business reasons why quick fixes matter.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/Quote-without-Person-5-1024x1024.png\" alt=\"Google Speed Conversion Rate Data\" class=\"wp-image-131009\" style=\"width:632px;height:auto\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/Quote-without-Person-5-1024x1024.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/Quote-without-Person-5-300x300.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/Quote-without-Person-5-768x768.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/Quote-without-Person-5.png 1080w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Why Fixing 504 Errors Quickly Matters<\/h2>\n\n\n\n<p>Every minute of downtime sends a message, and not the one you want your brand to deliver. Quick response to 504s doesn\u2019t just restore a site; it restores trust, visibility, and momentum. This is where technical performance and business reliability intersect.<\/p>\n\n\n\n<p>The damage from a 504 goes beyond a single lost visitor. Frequent gateway timeouts can lead to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>SEO penalties<\/strong>: Googlebot reduces crawl frequency on unstable sites.<\/li>\n\n\n\n<li><strong>Lost sales or leads<\/strong>: Visitors rarely retry after a failed checkout or form submission.<\/li>\n\n\n\n<li><strong>Eroded credibility<\/strong>: Agencies risk client dissatisfaction if uptime issues persist.<\/li>\n<\/ul>\n\n\n\n<p>A consistently responsive site reflects reliability, a core element of brand trust. Fixing 504s quickly shows users (and search engines) that your operations are dependable.<\/p>\n\n\n\n<p>Infrastructure engineered for performance, with real human support when issues arise, underpins that reliability. Once you\u2019ve stabilized performance, it\u2019s worth knowing when to call in help for deeper diagnostics.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">When to Escalate or Contact Support<\/h3>\n\n\n\n<p>There\u2019s a point where self-troubleshooting stops being efficient. Knowing when to escalate saves time and protects your uptime. Before you contact support, it helps to prepare key details so your provider can act fast.<\/p>\n\n\n\n<p>If you\u2019ve optimized the site and reviewed logs but 504s persist, it\u2019s time to escalate. Contact your hosting provider when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>504s affect multiple sites or clients.<\/li>\n\n\n\n<li>Server metrics show unexplained spikes in CPU or I\/O.<\/li>\n\n\n\n<li>You suspect upstream routing or firewall rules are interfering.<\/li>\n<\/ul>\n\n\n\n<p>Before reaching out, gather:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/optimize-wordpress-performance\/\">Timestamps of the most recent incidents<\/a>.<\/li>\n\n\n\n<li>URLs that triggered the error.<\/li>\n\n\n\n<li>Snippets from error or PHP logs.<\/li>\n<\/ul>\n\n\n\n<p>This information speeds up resolution by helping support teams pinpoint the exact layer at fault. This can be a network route, proxy configuration, or resource bottleneck. After working through support, summarize what was fixed so you can prevent it from reoccurring in the future.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key Takeaways<\/h2>\n\n\n\n<p>At this point, you\u2019ve seen that a 504 Gateway Timeout isn\u2019t mysterious, it\u2019s a signal that something in your chain of servers is taking too long to respond. Understanding where the delay originates helps you act decisively instead of guessing. The end result is a faster, more reliable site.<\/p>\n\n\n\n<p>To prevent future timeouts:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Keep your WordPress site optimized and monitored.<\/li>\n\n\n\n<li>Align timeout settings across all layers.<\/li>\n\n\n\n<li>Watch for capacity limits as your traffic grows.<\/li>\n\n\n\n<li>Choose infrastructure that offers scalability and transparency when diagnosing performance.<\/li>\n<\/ul>\n\n\n\n<p>Dealing with 504 timeouts? InMotion Hosting\u2019s Premier Care service combines performance-optimized infrastructure with real human support. Our team handles server configurations while you focus on your business.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A 504 gateway timeout occurs when a server waits too long for an upstream response, often caused by slow PHP scripts, database delays, or misaligned timeouts. <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\/managed-wordpress\">For WordPress sites<\/a>, fixing it involves checking logs, optimizing performance, tuning server limits, and ensuring adequate hosting capacity. Regular monitoring and scalable infrastructure prevent future timeouts and maintain uptime reliability, preserving both SEO and user trust.<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4335],"tags":[],"class_list":["post-131008","post","type-post","status-publish","format-standard","hentry","category-error-numbers"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Fix 504 Gateway Timeout | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Fix 504 Gateway Timeout errors fast. Learn the causes, solutions, and prevention tips for WordPress and server environments.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Fix 504 Gateway Timeout | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Fix 504 Gateway Timeout errors fast. Learn the causes, solutions, and prevention tips for WordPress and server environments.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-11T20:15:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-31T19:11:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Scott Mitchell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Scott Mitchell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/\"},\"author\":{\"name\":\"Scott Mitchell\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\"},\"headline\":\"How to Fix the 504 Gateway Timeout Error\",\"datePublished\":\"2025-11-11T20:15:33+00:00\",\"dateModified\":\"2025-12-31T19:11:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/\"},\"wordCount\":2303,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46-1024x538.png\",\"articleSection\":[\"Website Error Numbers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/\",\"name\":\"How To Fix 504 Gateway Timeout | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46-1024x538.png\",\"datePublished\":\"2025-11-11T20:15:33+00:00\",\"dateModified\":\"2025-12-31T19:11:18+00:00\",\"description\":\"Fix 504 Gateway Timeout errors fast. Learn the causes, solutions, and prevention tips for WordPress and server environments.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46.png\",\"width\":1200,\"height\":630,\"caption\":\"504 Gateway Timeout Error\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix the 504 Gateway Timeout Error\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed\",\"name\":\"Scott Mitchell\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Fix 504 Gateway Timeout | InMotion Hosting","description":"Fix 504 Gateway Timeout errors fast. Learn the causes, solutions, and prevention tips for WordPress and server environments.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/","og_locale":"en_US","og_type":"article","og_title":"How To Fix 504 Gateway Timeout | InMotion Hosting","og_description":"Fix 504 Gateway Timeout errors fast. Learn the causes, solutions, and prevention tips for WordPress and server environments.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2025-11-11T20:15:33+00:00","article_modified_time":"2025-12-31T19:11:18+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46.png","type":"image\/png"}],"author":"Scott Mitchell","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Scott Mitchell","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/"},"author":{"name":"Scott Mitchell","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed"},"headline":"How to Fix the 504 Gateway Timeout Error","datePublished":"2025-11-11T20:15:33+00:00","dateModified":"2025-12-31T19:11:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/"},"wordCount":2303,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46-1024x538.png","articleSection":["Website Error Numbers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/","name":"How To Fix 504 Gateway Timeout | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46-1024x538.png","datePublished":"2025-11-11T20:15:33+00:00","dateModified":"2025-12-31T19:11:18+00:00","description":"Fix 504 Gateway Timeout errors fast. Learn the causes, solutions, and prevention tips for WordPress and server environments.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2025\/10\/cPanel-Managed-VPS-vs-Cloud-Server-Hosting-46.png","width":1200,"height":630,"caption":"504 Gateway Timeout Error"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/504-gateway-timeout\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Fix the 504 Gateway Timeout Error"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/d850efb28ef3573db7d24b0d8fa9eaed","name":"Scott Mitchell","url":"https:\/\/www.inmotionhosting.com\/support\/author\/scott\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4335,"name":"Website Error Numbers","slug":"error-numbers","link":"https:\/\/www.inmotionhosting.com\/support\/website\/error-numbers\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/131008","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=131008"}],"version-history":[{"count":4,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/131008\/revisions"}],"predecessor-version":[{"id":131396,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/131008\/revisions\/131396"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=131008"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=131008"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=131008"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}