{"id":2888,"date":"2020-03-14T20:01:24","date_gmt":"2020-03-14T14:31:24","guid":{"rendered":"https:\/\/www.24x7serversupport.com\/blog\/?p=2888"},"modified":"2020-03-21T23:05:09","modified_gmt":"2020-03-21T17:35:09","slug":"502-bad-gateway-cwpsrv","status":"publish","type":"post","link":"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/","title":{"rendered":"502 Bad Gateway cwpsrv"},"content":{"rendered":"\n<p> If your VPS is running CentOS and you use Control Web Panel (CWP), you may get this error at one time or the other:\u00a0502 Bad Gateway cwpsrv <\/p>\n\n\n\n<p> For me, I got the error when I Started CWP service on the server but CWP admin panel started giving &#8220;502 Bad Gateway cwpsrv&#8221; error.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">502 BAD GATEWAY CWPSRV&nbsp;[SOLVED]<\/h3>\n\n\n\n<p>There are two ways you can solve the 502 Bad Gateway Cwpsrv error. In most cases, any 502 Bad Gateway error can be solved by running this command:<\/p>\n\n\n\n<p><code>sh \/scripts\/restart_cwpsrv<\/code><\/p>\n\n\n\n<p>If running the above command does not solve your problem, here\u2019s the second option:<\/p>\n\n\n\n<p>First off, you should check the phpfpm service to confirm that it is running. Type this command through SSH:<\/p>\n\n\n\n<p><code>systemctl status cwp-phpfpm<\/code><\/p>\n\n\n\n<p>If the service is not running and cannot start, you have to find the&nbsp;<em>User<\/em>&nbsp;that is producing the error. To do so, check this file&nbsp;<em>\/usr\/local\/cwp\/php71\/var\/log\/php-fpm.log<\/em><\/p>\n\n\n\n<p><code>tail \/usr\/local\/cwp\/php71\/var\/log\/php-fpm.log<\/code><\/p>\n\n\n\n<p>You will see the name of User has an error (eg.&nbsp;<em>stetho.conf<\/em>).<\/p>\n\n\n\n<p>Delete the file&nbsp;<em>stetho.conf<\/em>&nbsp;from&nbsp;<em>\/usr\/local\/cwp\/php71\/etc\/php-fpm.d\/users\/stetho.conf&nbsp;&nbsp;<\/em>&nbsp;by running this command:<\/p>\n\n\n\n<p><code>rm -f \/usr\/local\/cwp\/php71\/etc\/php-fpm.d\/users\/stetho.conf<\/code><\/p>\n\n\n\n<p>After this, run the following command to start Phpfpm<\/p>\n\n\n\n<p><code>systemctl start cwp-phpfpm<\/code><\/p>\n\n\n\n<p>From here, the&nbsp;502 Bad Gateway cwpsrv should have been solved.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your VPS is running CentOS and you use Control Web Panel (CWP), you may get this error at one time or the other:\u00a0502 Bad Gateway cwpsrv For me, I got the error when I Started CWP service on the server but CWP admin panel started giving &#8220;502 Bad Gateway cwpsrv&#8221; error. 502 BAD GATEWAY [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2889,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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","enabled":false}}},"categories":[30,237,238],"tags":[251,252,186,194,254,253],"class_list":["post-2888","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-centoswebpanel","category-cwp","tag-251","tag-bad","tag-control-panel","tag-cwp","tag-cwpsrv","tag-gateway"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>502 Bad Gateway cwpsrv | 24x7serversupport Blog<\/title>\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.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"502 Bad Gateway cwpsrv | 24x7serversupport Blog\" \/>\n<meta property=\"og:description\" content=\"If your VPS is running CentOS and you use Control Web Panel (CWP), you may get this error at one time or the other:\u00a0502 Bad Gateway cwpsrv For me, I got the error when I Started CWP service on the server but CWP admin panel started giving &#8220;502 Bad Gateway cwpsrv&#8221; error. 502 BAD GATEWAY [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/\" \/>\n<meta property=\"og:site_name\" content=\"24x7serversupport Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-03-14T14:31:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-21T17:35:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/502-bad-gateway-cwpsrv.jpg?fit=872%2C166&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"872\" \/>\n\t<meta property=\"og:image:height\" content=\"166\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"24x7support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:site\" content=\"@24x7serversuppo\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"24x7support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/\",\"name\":\"502 Bad Gateway cwpsrv | 24x7serversupport Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/502-bad-gateway-cwpsrv.jpg?fit=872%2C166&ssl=1\",\"datePublished\":\"2020-03-14T14:31:24+00:00\",\"dateModified\":\"2020-03-21T17:35:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/502-bad-gateway-cwpsrv.jpg?fit=872%2C166&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/502-bad-gateway-cwpsrv.jpg?fit=872%2C166&ssl=1\",\"width\":872,\"height\":166,\"caption\":\"502-bad-gateway-cwpsrv\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.24x7serversupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"502 Bad Gateway cwpsrv\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#website\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/\",\"name\":\"24x7serversupport Blog\",\"description\":\"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401\",\"name\":\"24x7support\",\"url\":\"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"502 Bad Gateway cwpsrv | 24x7serversupport Blog","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.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/","og_locale":"en_US","og_type":"article","og_title":"502 Bad Gateway cwpsrv | 24x7serversupport Blog","og_description":"If your VPS is running CentOS and you use Control Web Panel (CWP), you may get this error at one time or the other:\u00a0502 Bad Gateway cwpsrv For me, I got the error when I Started CWP service on the server but CWP admin panel started giving &#8220;502 Bad Gateway cwpsrv&#8221; error. 502 BAD GATEWAY [&hellip;]","og_url":"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/","og_site_name":"24x7serversupport Blog","article_published_time":"2020-03-14T14:31:24+00:00","article_modified_time":"2020-03-21T17:35:09+00:00","og_image":[{"width":872,"height":166,"url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/502-bad-gateway-cwpsrv.jpg?fit=872%2C166&ssl=1","type":"image\/jpeg"}],"author":"24x7support","twitter_card":"summary_large_image","twitter_creator":"@24x7serversuppo","twitter_site":"@24x7serversuppo","twitter_misc":{"Written by":"24x7support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/","url":"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/","name":"502 Bad Gateway cwpsrv | 24x7serversupport Blog","isPartOf":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/#primaryimage"},"image":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/502-bad-gateway-cwpsrv.jpg?fit=872%2C166&ssl=1","datePublished":"2020-03-14T14:31:24+00:00","dateModified":"2020-03-21T17:35:09+00:00","author":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401"},"breadcrumb":{"@id":"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/#primaryimage","url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/502-bad-gateway-cwpsrv.jpg?fit=872%2C166&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/502-bad-gateway-cwpsrv.jpg?fit=872%2C166&ssl=1","width":872,"height":166,"caption":"502-bad-gateway-cwpsrv"},{"@type":"BreadcrumbList","@id":"https:\/\/www.24x7serversupport.com\/blog\/502-bad-gateway-cwpsrv\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.24x7serversupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"502 Bad Gateway cwpsrv"}]},{"@type":"WebSite","@id":"https:\/\/www.24x7serversupport.com\/blog\/#website","url":"https:\/\/www.24x7serversupport.com\/blog\/","name":"24x7serversupport Blog","description":"Linux | CPanel | WHM | webhosting| Plesk | DirectAdmin | CentOs | Debian | Ubuntu Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.24x7serversupport.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.24x7serversupport.com\/blog\/#\/schema\/person\/decfb5fad6bde6ac6822d4e965c6d401","name":"24x7support","url":"https:\/\/www.24x7serversupport.com\/blog\/author\/24x7support\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.24x7serversupport.com\/blog\/wp-content\/uploads\/2020\/03\/502-bad-gateway-cwpsrv.jpg?fit=872%2C166&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/comments?post=2888"}],"version-history":[{"count":1,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2888\/revisions"}],"predecessor-version":[{"id":2890,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/posts\/2888\/revisions\/2890"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media\/2889"}],"wp:attachment":[{"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/media?parent=2888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/categories?post=2888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.24x7serversupport.com\/blog\/wp-json\/wp\/v2\/tags?post=2888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}