{"id":5107,"date":"2019-10-10T13:50:29","date_gmt":"2019-10-10T08:20:29","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5107"},"modified":"2026-11-01T10:31:54","modified_gmt":"2026-11-01T05:01:54","slug":"websites-hosted-on-plesk-server-is-not-accessible-504-gateway-time-out-the-timeout-specified-has-expired-client-0-0-0-054-ah01095-error-dispatching-request","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/websites-hosted-on-plesk-server-is-not-accessible-504-gateway-time-out-the-timeout-specified-has-expired-client-0-0-0-054-ah01095-error-dispatching-request\/","title":{"rendered":"Resolve 504 Gateway Timeout on Plesk Using Apache Timeout Settings"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Post Date:<\/strong> October 10, 2019<br><strong>Last Updated:<\/strong> November 01, 2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Websites hosted on a Plesk server may become inaccessible and display a <strong>504 Gateway Timeout<\/strong> error when the Apache web server takes too long to receive a response from the PHP backend.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This issue can occur when PHP scripts take longer than the configured timeout limits, PHP-FPM processes become overloaded, or the backend application is unable to respond within the expected time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">One common error found in the Apache error log is:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[proxy_fcgi:error] [pid 46670:tid 45342478964134]\n(10009)The timeout specified has expired:\n[client 0.0.0.0:54] AH01095: Error dispatching request<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In this guide, we will explain how to troubleshoot the 504 Gateway Timeout issue on a Plesk server and adjust the Apache FastCGI timeout settings based on the PHP handler being used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before making any configuration changes, make sure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Root SSH access to the Plesk server.<\/li>\n\n\n\n<li>Administrator access to the Plesk control panel.<\/li>\n\n\n\n<li>Basic knowledge of Apache and PHP configuration.<\/li>\n\n\n\n<li>Access to Apache and PHP-FPM log files.<\/li>\n\n\n\n<li>A backup of the existing Apache configuration files.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The configuration paths and directives may differ depending on the operating system and PHP handler configured in Plesk.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Architecture \u2013 How the 504 Gateway Timeout Occurs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When a visitor accesses a website hosted on a Plesk server, the request generally follows this workflow:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>The visitor sends an HTTP request to the website.<\/li>\n\n\n\n<li>Nginx receives the request and forwards it to Apache, depending on the Plesk web server configuration.<\/li>\n\n\n\n<li>Apache forwards PHP requests to the configured PHP handler, such as PHP-FPM or FastCGI.<\/li>\n\n\n\n<li>The PHP backend executes the requested application code and returns a response.<\/li>\n\n\n\n<li>Apache sends the response back through Nginx to the visitor.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If the PHP backend does not respond within the configured timeout period, Apache may terminate the request and return a 504 Gateway Timeout error.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/10\/Plesk-504-Gateway-Timeout-Flow.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/10\/Plesk-504-Gateway-Timeout-Flow-1024x576.png\" alt=\"\" class=\"wp-image-12719\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/10\/Plesk-504-Gateway-Timeout-Flow-1024x576.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/10\/Plesk-504-Gateway-Timeout-Flow-300x169.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/10\/Plesk-504-Gateway-Timeout-Flow-768x432.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/10\/Plesk-504-Gateway-Timeout-Flow-1536x864.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/10\/Plesk-504-Gateway-Timeout-Flow.png 1672w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Common causes include:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PHP scripts taking longer than the configured timeout.<\/li>\n\n\n\n<li>PHP-FPM processes being overloaded.<\/li>\n\n\n\n<li>Slow database queries or external API requests.<\/li>\n\n\n\n<li>Insufficient server resources.<\/li>\n\n\n\n<li>FastCGI or proxy timeout limits being too low.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Fix the 504 Gateway Timeout Error on a Plesk Server<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Check the Website Error<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">First, access the affected website in a browser.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the website displays the following error, the request may be timing out while communicating with the PHP backend.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">504 Gateway Time-out<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. Check the Apache Error Logs<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Connect to the Plesk server through SSH and inspect the Apache error log.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For CentOS\/RHEL:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">tail -f \/var\/log\/httpd\/error_log<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For Debian\/Ubuntu:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">tail -f \/var\/log\/apache2\/error.log<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Look for errors similar to the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[proxy_fcgi:error] [pid 46670:tid 45342478964134]\n(10009)The timeout specified has expired:\n[client 0.0.0.0:54] AH01095: Error dispatching request<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This indicates that Apache encountered a timeout while dispatching the request to the backend.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Check the PHP-FPM logs and server resource utilization as well to identify whether the issue is caused by slow PHP execution or backend resource exhaustion.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Identify the PHP Handler<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before changing the timeout values, identify which PHP handler is configured for the affected domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to Plesk and navigate to:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Websites &amp; Domains \u2192 PHP Settings<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the selected PHP handler, such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PHP-FPM served by Apache.<\/li>\n\n\n\n<li>PHP-FPM served by Nginx.<\/li>\n\n\n\n<li>FastCGI application served by Apache.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The timeout configuration depends on the selected handler. The following steps cover the Apache FastCGI and PHP-FPM proxy configurations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Increase Apache FastCGI Timeout Limits<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If the website uses the Apache <code>mod_fcgid<\/code> handler, increasing the FastCGI timeout limits can help resolve requests that require additional execution time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Server-wide Fix \u2013 For all domains in Plesk<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1:<\/strong> Connect to the server using SSH.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2:<\/strong> Open the FastCGI configuration file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For CentOS\/RHEL:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">vi \/etc\/httpd\/conf.d\/fcgid.conf<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For Debian\/Ubuntu:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">vi \/etc\/apache2\/mods-enabled\/fcgid.conf<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3:<\/strong> Add or update the following timeout directives:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">FcgidIdleTimeout 600\nFcgidProcessLifeTime 600\nFcgidConnectTimeout 600\nFcgidIOTimeout 600<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">These directives configure the FastCGI process idle time, process lifetime, connection timeout, and I\/O timeout.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> These directives apply to <code>mod_fcgid<\/code>. They do not configure PHP-FPM requests handled through <code>mod_proxy_fcgi<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Increase Apache Proxy Timeout for PHP-FPM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If the website uses PHP-FPM through Apache&#8217;s <code>mod_proxy_fcgi<\/code>, configure the Apache proxy timeout instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For CentOS\/RHEL:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create a custom Apache configuration file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">vi \/etc\/httpd\/conf.d\/00-proxy_timeout.conf<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For Debian\/Ubuntu:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create a configuration file:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">vi \/etc\/apache2\/conf-available\/00-proxy_timeout.conf<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following directives:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Timeout 600\nProxyTimeout 600<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>Timeout 600<\/code> increases Apache&#8217;s general timeout.<\/li>\n\n\n\n<li><code>ProxyTimeout 600<\/code> increases the timeout for proxied backend requests.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For Debian\/Ubuntu, enable the configuration if it is not automatically included:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">a2enconf 00-proxy_timeout<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> These are server-wide settings and may affect all domains using the corresponding Apache configuration. If you need to change the timeout for only one domain, use the appropriate Plesk-supported custom Apache configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;Refer to the official <a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/mod\/mod_proxy.html?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Apache mod_proxy documentation<\/a> to learn more about configuring proxy timeout settings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. Test the Apache Configuration<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After making the changes, validate the Apache configuration before restarting the service.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">apachectl configtest<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Expected output:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Syntax OK<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If Apache reports any syntax errors, correct them before proceeding.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. Restart Apache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Once the configuration test succeeds, restart Apache to apply the changes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For CentOS\/RHEL:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">systemctl restart httpd<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For Debian\/Ubuntu:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">systemctl restart apache2<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Restarting Apache may briefly interrupt active website connections. Perform this change during a suitable maintenance window on production servers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8. Verify Website Accessibility<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After restarting Apache, access the affected website again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also test the website using:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">curl -I https:\/\/example.com<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the response status.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Expected output:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">HTTP\/2 200<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The website should now respond without the previous 504 Gateway Timeout error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the issue persists, inspect the Apache and PHP-FPM logs again to identify whether the backend is still timing out.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the 504 Gateway Timeout error continues after increasing the timeout values, check the following:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. PHP-FPM Processes Are Exhausted<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If all available PHP-FPM workers are busy, new requests may remain queued or fail to complete within the timeout period.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the PHP-FPM logs and review the pool configuration, particularly <code>pm.max_children<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Slow PHP Execution<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A PHP script may take longer than expected due to inefficient application code, large data processing, or external API requests.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enable appropriate PHP error logging and investigate slow application requests.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. Database Queries Taking Too Long<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Slow MySQL\/MariaDB queries can delay PHP execution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the database slow query log and investigate queries that consume excessive execution time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Insufficient Server Resources<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">High CPU usage, memory exhaustion, or disk I\/O bottlenecks can affect PHP execution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check resource utilization using:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">top\nfree -h\ndf -h<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. Incorrect Timeout Configuration<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Make sure the timeout directives are configured for the actual PHP handler being used.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, <code>FcgidIOTimeout<\/code> applies to <code>mod_fcgid<\/code>, whereas <code>ProxyTimeout<\/code> applies to Apache proxy requests such as PHP-FPM through <code>mod_proxy_fcgi<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> Increasing timeout values alone does not fix the underlying application or resource problem. Investigate the root cause before applying higher timeout limits permanently.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The 504 Gateway Timeout error on websites hosted on a Plesk server can occur when Apache does not receive a response from the PHP backend within the configured timeout period.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By identifying the PHP handler, reviewing Apache and PHP-FPM logs, and adjusting the appropriate FastCGI or proxy timeout settings, you can resolve timeout-related issues.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Always validate the Apache configuration before restarting the service and investigate the underlying application or server resource issues to prevent the problem from recurring.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Why does my Plesk-hosted website show a 504 Gateway Timeout error?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A 504 Gateway Timeout error generally occurs when Apache or Nginx does not receive a timely response from the backend application. Slow PHP execution, overloaded PHP-FPM workers, and database delays are common causes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. What does AH01095 Error Dispatching Request mean?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AH01095 is an Apache proxy-related error that can occur when Apache encounters a problem dispatching a request to the backend. When accompanied by a timeout message, it indicates that the backend request did not complete within the configured time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. How do I increase the Apache timeout in Plesk?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can increase the Apache timeout using the <code>Timeout<\/code> and <code>ProxyTimeout<\/code> directives when PHP-FPM is handled through Apache&#8217;s proxy module. For <code>mod_fcgid<\/code>, use the appropriate <code>Fcgid<\/code> timeout directives.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4. Will increasing Apache timeout values affect all websites on the server?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. If you configure timeout directives in the global Apache configuration, they can affect all websites using that configuration. For domain-specific changes, use Plesk-supported custom Apache directives.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5. Is restarting Apache necessary after changing timeout settings?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Apache must reload or restart to apply changes to its configuration. Always run <code>apachectl configtest<\/code> before restarting the service.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/websites-hosted-on-plesk-server-often-results-with-502-bad-gateway\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Fix 502 Bad Gateway Errors on Websites Hosted on a Plesk Server<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/find-default-gateway-centos7-minimal-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to find default gateway in CentOs7 Minimal Server.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to Our Technology Experts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Experiencing 504 Gateway Timeout errors or performance issues on your Plesk server?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our team can help with Plesk server administration, Apache and Nginx configuration, PHP-FPM optimization, website performance troubleshooting, and ongoing server management.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/contact\"><strong>Connect with our technology experts.<\/strong><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post Date: October 10, 2019Last Updated: November 01, 2026 Introduction Websites hosted on a Plesk server may become inaccessible and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":12720,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1020],"tags":[716,701],"class_list":["post-5107","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-containers-kubernetes","tag-504-gateway-time-out","tag-plesk-server","psol-cat-containers-kubernetes"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1kn","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/10\/Fixing-504-Gateway-Timeout-on-Plesk.png","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5107"}],"version-history":[{"count":1,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5107\/revisions"}],"predecessor-version":[{"id":12721,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5107\/revisions\/12721"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media\/12720"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}