{"id":27029,"date":"2018-06-05T02:42:33","date_gmt":"2018-06-05T07:42:33","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=27029"},"modified":"2022-06-03T03:34:57","modified_gmt":"2022-06-03T08:34:57","slug":"how-to-fix-the-502-bad-gateway-error-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/","title":{"rendered":"How to Fix the 502 Bad Gateway Error in WordPress"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-27082\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress.jpg\" alt=\"How to Fix the 502 Bad Gateway Error in WordPress\" width=\"742\" height=\"371\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>Have you ever seen the very annoying and frustrating 502 bad gateway error on a WordPress site? Yes, I think we all have encountered the issue. Do you know what 502 bad gateway error means? Do you know how to solve the issue? In this blog post, we will provide you with detailed information about the 502 Bad Gateway Error in WordPress, and tell you how to troubleshoot the 502 Bad Gateway Error in WordPress as well.\u00a0<!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ebecd2a4443\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ebecd2a4443\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#What-does-502-Bad-Gateway-Error-means\" >What does 502 Bad Gateway Error means?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#502-Bad-Gateway-Error-Variations\" >502 Bad Gateway Error Variations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#How-to-Fix-the-502-Bad-Gateway-Error-3-Possible-Solutions\" >How to Fix the 502 Bad Gateway Error (3 Possible Solutions)<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What-does-502-Bad-Gateway-Error-means\"><\/span>What does 502 Bad Gateway Error means?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The 502 Bad Gateway error is an <\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/List_of_HTTP_status_codes\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">HTTP status code<\/span><\/a><span style=\"font-weight: 400;\"> that means that one server on the internet received an invalid response from another server. In more technical words, <\/span><span style=\"font-weight: 400;\">A 502 Bad Gateway means that the proxy (gateway) server wasn&#8217;t able to get a valid or any response from the upstream server.<\/span><\/p>\n<p><a href=\"https:\/\/www.w3.org\/Protocols\/rfc2616\/rfc2616-sec10.html\" target=\"_blank\" rel=\"noopener noreferrer\">The official documentation from W3.org,<\/a> states that HTTP status codes starting with 5 (5xxx) relate to errors that occur when there\u2019s a miscommunication between several servers.<\/p>\n<p>If you are seeing a 502 bad gateway error on a website, it means that the origin server sent out an invalid response to another server that acted as a gateway or proxy. It can be a tricky investigation to locate what and where is the process which caused the issue. However, there are some general troubleshooting steps that you can follow to get it solved.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"502-Bad-Gateway-Error-Variations\"><\/span>502 Bad Gateway Error Variations<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A 502 Bad Gateway Error has several different variations due to the various internet browsers and various web servers and operating systems. Bellow are some of the most popular variations of the 502 Bad Gateway Error.<\/p>\n<ul>\n<li>\u201c502 Bad Gateway\u201d<\/li>\n<li>\u201cError 502\u201d<\/li>\n<li>\u201cHTTP Error 502 \u2013 Bad Gateway\u201d<\/li>\n<li>\u201c502 Proxy Error\u201d<\/li>\n<li>\u201cHTTP 502\u201d<\/li>\n<li>\u201c502 Service Temporarily Overloaded<\/li>\n<li>\u201c502 Server Error: The server encountered a temporary error and could not complete your request\u201d<\/li>\n<li>\u201c502. That\u2019s an error.\u00a0The server encountered a temporary error and could not complete your request. Please try again in 30 seconds. That\u2019s all we know.\u201d<\/li>\n<li>A blank white screen<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"How-to-Fix-the-502-Bad-Gateway-Error-3-Possible-Solutions\"><\/span>How to Fix the 502 Bad Gateway Error (3 Possible Solutions)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A 502 bad gateway error is usually an issue with the network or server. But, it can also be a client side issue. So we will troubleshoot the error within the server, and the client side as well. The following are some steps to check and solve the issues.<\/p>\n<h3>1. Check your server<\/h3>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-27075\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway.jpg\" alt=\"502 bad gateway\" width=\"674\" height=\"269\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway.jpg 674w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-150x60.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-300x120.jpg 300w\" sizes=\"(max-width: 674px) 100vw, 674px\" \/><\/p>\n<p>If you are seeing the error as shown in the picture, most probably the error is within your webserver.<br \/>\nLet&#8217;s check your webserver configuration, in this case the server is running Nginx. WordPress is running on PHP and MySQL. So, in nginx we need to check how PHP files are processed. Find the &#8220;location ~ \\.php$&#8221; in your nginx server block.<\/p>\n<pre>ssh@your_ip -p7022<\/pre>\n<p><img decoding=\"async\" class=\"size-full wp-image-27076 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error.png\" alt=\"502 bad gateway error502 bad gateway error\" width=\"626\" height=\"144\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error.png 626w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-150x35.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-300x69.png 300w\" sizes=\"(max-width: 626px) 100vw, 626px\" \/><\/p>\n<p>According to the nginx configuration as shown in the picture, the PHP files are processed by fastcgi that is running on port 9000.<br \/>\nLet&#8217;s check what is running on the port<\/p>\n<pre>netstat -pltn | grep 9000<\/pre>\n<p>If you don&#8217;t see any result after issuing the command, then the process is died. This is why you see the 502 bad gateway error.<\/p>\n<p>In latest CentOS and Ubuntu, you can invoke this command to see where the process should be ran from:<\/p>\n<pre>systemctl list-unit-files | grep fpm<\/pre>\n<p><img decoding=\"async\" class=\"size-full wp-image-27077 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-1.png\" alt=\"502 bad gateway error\" width=\"601\" height=\"48\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-1.png 601w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-1-150x12.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-1-300x24.png 300w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/p>\n<p>Issue this command to run the service:<\/p>\n<pre>systemctl start php7.0-fpm<\/pre>\n<p>Now, go to your web browser and check your website.<\/p>\n<p>If you use CloudFlare and see the 502 bad gateway error as shown in the picture below, most likely your web server is down. You can try restarting apache or nginx, depends on which web server you use.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-27078\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-cloudflare.png\" alt=\"502 bad gateway error in cloudflare\" width=\"809\" height=\"164\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-cloudflare.png 809w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-cloudflare-150x30.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-cloudflare-300x61.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-cloudflare-768x156.png 768w\" sizes=\"(max-width: 809px) 100vw, 809px\" \/><\/p>\n<h3>2. Clear your cache.<\/h3>\n<p>If the first solution has been done, but you still see the 502 bad gateway error, then your web browser is still relying on its cache. We have to tell the web browser to load the latest version from the site. We can do this by pressing Ctrl + F5 on the keyboard (Windows\/Linux), or Shift + Reload button in the toolbar (Safari browser), or CMD + Shift + R (Chrome and Firefox for Mac users).<\/p>\n<h3>3. Disable CDN<\/h3>\n<p>If you are using CloudFlare, you can try disabling CDN for a while.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-27079\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-disable-CDN.png\" alt=\"502 bad gateway error - disable CDN\" width=\"1026\" height=\"450\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-disable-CDN.png 1026w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-disable-CDN-150x66.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-disable-CDN-300x132.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-disable-CDN-768x337.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/502-bad-gateway-error-disable-CDN-1024x449.png 1024w\" sizes=\"(max-width: 1026px) 100vw, 1026px\" \/><\/p>\n<h3>4. Check your scripts<\/h3>\n<p>As previously said, a 502 bad gateway error is due to an issue with the web server. Sometime, the php processes are killed by the server due to high memory usage, for example. This killing process will terminate requests after a certain of time, this will also cause the website down. But, usually the website will be automatically accessible because php processes is respawned at that time. To solve this issue permanently, you need to check which php script is consuming high memory.<\/p>\n<h3>5. Check Plugins and Themes<\/h3>\n<p>To troubleshoot which plugin is causing the error is very simple. Even we don&#8217;t have access to our WordPress backend, we can disable all plugins at once by renaming the plugins directory. To do it, please connect to your server using SSH. Note that you can also do this using an FTP client, like FileZilla.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-27080\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/fixing-502-bad-gateway-error.png\" alt=\"fixing 502 bad gateway error \" width=\"570\" height=\"98\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/fixing-502-bad-gateway-error.png 570w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/fixing-502-bad-gateway-error-150x26.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/fixing-502-bad-gateway-error-300x52.png 300w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/><br \/>\nYou can enable plugins one by one, please follow these steps:<br \/>\nGo to your wp-content directory, we can see that there is no plugins directory, we renamed it already.<br \/>\nLet&#8217;s create a plugins directory and move a plugin over. This will automatically enable the plugin.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-27081\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/fixing-502-bad-gateway-error-in-wordpress.png\" alt=\"fixing 502 bad gateway error in wordpress\" width=\"666\" height=\"206\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/fixing-502-bad-gateway-error-in-wordpress.png 666w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/fixing-502-bad-gateway-error-in-wordpress-150x46.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/fixing-502-bad-gateway-error-in-wordpress-300x93.png 300w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/p>\n<p>Sometimes, troubleshooting WordPress errors is easier than we might think. But, also it could be very hard to solve at some point.<\/p>\n<hr \/>\n<p>Of course, you don\u2019t need to get troubled with your server if you have a <a href=\"https:\/\/www.rosehosting.com\/wordpress-hosting.html\">WordPress\u00a0VPS<\/a>\u00a0hosted with us \u2013 in which case, our technical support team will help you investigating and solving this 502 Bad Gateway issue immediately. They are available 24\/7, and can cater to any questions or requests.<\/p>\n<p><strong>PS.<\/strong>\u00a0If you liked this post, feel free to share it with your friends by using the social media share shortcuts below, or simply leave a comment. Thanks.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever seen the very annoying and frustrating 502 bad gateway error on a WordPress site? Yes, I think &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Fix the 502 Bad Gateway Error in WordPress\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#more-27029\" aria-label=\"Read more about How to Fix the 502 Bad Gateway Error in WordPress\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":27083,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,1701],"tags":[1717,148],"class_list":["post-27029","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms-crm-erp","category-networking-and-domains","tag-502-bad-gateway","tag-wordpress","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Fix the 502 Bad Gateway Error in WordPress | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Fix the 502 Bad Gateway Error in WordPress | RoseHosting\" \/>\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.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Fix the 502 Bad Gateway Error in WordPress\" \/>\n<meta property=\"og:description\" content=\"How to Fix the 502 Bad Gateway Error in WordPress | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-05T07:42:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:34:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Fix the 502 Bad Gateway Error in WordPress\",\"datePublished\":\"2018-06-05T07:42:33+00:00\",\"dateModified\":\"2022-06-03T08:34:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/\"},\"wordCount\":958,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-1.jpg\",\"keywords\":[\"502 bad gateway\",\"wordpress\"],\"articleSection\":[\"CMS, CRM, ERP\",\"Networking and Domains\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/\",\"name\":\"How to Fix the 502 Bad Gateway Error in WordPress | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-1.jpg\",\"datePublished\":\"2018-06-05T07:42:33+00:00\",\"dateModified\":\"2022-06-03T08:34:57+00:00\",\"description\":\"How to Fix the 502 Bad Gateway Error in WordPress | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/06\\\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-1.jpg\",\"width\":742,\"height\":371,\"caption\":\"How to Fix the 502 Bad Gateway Error in WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-fix-the-502-bad-gateway-error-in-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Fix the 502 Bad Gateway Error in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Fix the 502 Bad Gateway Error in WordPress | RoseHosting","description":"How to Fix the 502 Bad Gateway Error in WordPress | RoseHosting","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.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to Fix the 502 Bad Gateway Error in WordPress","og_description":"How to Fix the 502 Bad Gateway Error in WordPress | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2018-06-05T07:42:33+00:00","article_modified_time":"2022-06-03T08:34:57+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-1.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Fix the 502 Bad Gateway Error in WordPress","datePublished":"2018-06-05T07:42:33+00:00","dateModified":"2022-06-03T08:34:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/"},"wordCount":958,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-1.jpg","keywords":["502 bad gateway","wordpress"],"articleSection":["CMS, CRM, ERP","Networking and Domains"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/","name":"How to Fix the 502 Bad Gateway Error in WordPress | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-1.jpg","datePublished":"2018-06-05T07:42:33+00:00","dateModified":"2022-06-03T08:34:57+00:00","description":"How to Fix the 502 Bad Gateway Error in WordPress | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-1.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/06\/How-to-Fix-the-502-Bad-Gateway-Error-in-WordPress-1.jpg","width":742,"height":371,"caption":"How to Fix the 502 Bad Gateway Error in WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-fix-the-502-bad-gateway-error-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Fix the 502 Bad Gateway Error in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=27029"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27029\/revisions"}],"predecessor-version":[{"id":41798,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/27029\/revisions\/41798"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/27083"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=27029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=27029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=27029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}