{"id":5107,"date":"2019-10-10T13:50:29","date_gmt":"2019-10-10T08:20:29","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5107"},"modified":"2019-10-11T16:13:52","modified_gmt":"2019-10-11T10:43:52","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":"Websites hosted on Plesk server is not accessible: 504 Gateway Time-out: The timeout specified has expired: [client 0.0.0.0:54] AH01095: Error dispatching request !!!!!"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Websites hosted on Plesk server is not accessible: 504 Gateway Time-out: The timeout specified has expired: [client 0.0.0.0:54] AH01095: Error dispatching request !!!!!<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Date posted: 10 \/10 \/2019<\/h4>\n\n\n\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Most importantly, websites hosted on Plesk server is unavailable and often result in 504 Bad gateway error with timeout error specified as expired in the Plesk server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Root cause<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Execution PHP code of the website takes longer than the specified timeout.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Moreover, check the log files\u00a0<code>\/var\/log\/nginx\/error.log<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, website xxx.com is not accessible. Similarly, the following error is shown in a browser:-<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>504 Gateway Time-out<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Sample error log:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For instance, the sample error log is attached here,<\/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] (10009)The timeout specified has expired: [client 0.0.0.0:54] AH01095: Error dispatching request to :, referer: http:\/\/xxx.com\/dark chocolate<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Solution<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">However To fix the issue permanently increase the timeout of FastCGI limits.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Server-wide Fix:<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">For all the domains in Plesk<\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li>Primarily, connect to the server\u00a0using SSH<br><br><\/li><li>Open the FastCGI configuration file fcgid.conf in your favorite text editor.<br><br><\/li><li>For <strong>CentOS\/RHEL,<\/strong> Open the following file and edit it.<br><br>\/etc\/httpd\/conf.d\/fcgid.conf<br><br><\/li><li>Certainly, for <strong>Debian\/Ubuntu<\/strong>. Open the following configuration file and edit it.<br><br>\/etc\/apache2\/mods-enabled\/fcgid.conf<br><br><\/li><li>After that, increase <strong>FastCGI timeout limits <\/strong>as guided below, <br><br><strong>FcgidIdleTimeout 600<br>FcgidProcessLifeTime 600<br>FcgidConnectTimeout 600<br>FcgidIOTimeout 600<\/strong><br><br><br><\/li><li>In addition, if <strong>FPM PHP handler<\/strong> is used <br><br>Create\u00a0<code>\/etc\/httpd\/conf.modules.d\/00-proxy_timeout.conf<\/code>\u00a0<br><br>Then add the following lines into it:<br><br><strong>Timeout 600<br>ProxyTimeout 600<\/strong><br><br><\/li><li>Above all, test configuration with &#8220;<code>apachectl configtest\"<\/code>, after making any changes\u00a0<br><br><strong>#\u00a0apachectl configtest<br>Syntax OK<\/strong><br><br><\/li><li>In conclusion, restart Apache based on OS distributions:<br><br><strong>#\u00a0service httpd restart<br><br>#\u00a0service apache2 restart<\/strong><\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Thanks for using&nbsp;<a href=\"https:\/\/pheonixsolutions.com\/\">pheonix solutions<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Websites hosted on Plesk server is not accessible: 504 Gateway Time-out: The timeout specified has expired: [client 0.0.0.0:54] AH01095: Error [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"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_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","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":"","_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":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5107\/revisions"}],"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}]}}