{"id":2745,"date":"2018-08-08T09:04:04","date_gmt":"2018-08-08T16:04:04","guid":{"rendered":"http:\/\/www.wellgolly.com\/?p=2745"},"modified":"2018-08-08T09:04:04","modified_gmt":"2018-08-08T16:04:04","slug":"server-unavailable-error","status":"publish","type":"post","link":"https:\/\/www.wellgolly.com\/?p=2745","title":{"rendered":"Server Unavailable error"},"content":{"rendered":"<p>A PHP-based web site on a server that I manage was failing to load. It worked a few months ago when I set it up and the owner didn\u2019t notice that it was failing. When I looked at the error log I got these messages.<\/p>\n<p><pre><code class=\"preserve-code-formatting\">\n[Wed Aug 08 07:45:21.627045 2018] [proxy:error] [pid 32113:tid 139735343294208] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket \/run\/php\/php7.2-fpm.sock (*) failed\n[Wed Aug 08 07:45:21.627334 2018] [proxy_fcgi:error] [pid 32113:tid 139735343294208] [client 64.91.53.183:36745] AH01079: failed to make connection to backend: httpd-UDS\n<\/code><\/pre><br \/>\nSince it said that fpm.sock failed, I thought that maybe the mod was no longer enabled so I tried <em>a2enmod proxy_fcgi<\/em> but it said that it was already enabled. <\/p>\n<p>There was some info on dependencies on various help sites, so I figured that at some point an <em>aptitude safe-upgrade<\/em> command might have messed things up. So I figured that running these commands might help, and it did.<\/p>\n<p><pre><code class=\"preserve-code-formatting\">\nsudo apt-get update\nsudo apt-get upgrade<\/code><\/pre><\/p>\n<p>Reading through the install messages I noticed this:<br \/>\n<pre><code class=\"preserve-code-formatting\">\nSetting up php7.2-fpm (7.2.7-0ubuntu0.18.04.2) ...\nPackage apache2 is not configured yet. Will defer actions by package php7.2-fpm.\nReplacing config file \/etc\/php\/7.2\/fpm\/php.ini with new version\nNOTICE: Not enabling PHP 7.2 FPM by default.\nNOTICE: To enable PHP 7.2 FPM in Apache2 do:\nNOTICE: a2enmod proxy_fcgi setenvif\nNOTICE: a2enconf php7.2-fpm<\/code><\/pre><\/p>\n<p>So it looks like proxy_fcgi somehow got enabled and was causing problems. It is a small site with little traffic, so I decided to leave well enough alone and not enable the mod.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A PHP-based web site on a server that I manage was failing to load. It worked a few months ago when I set it up and the owner didn\u2019t notice that it was failing. When I looked at the error log I got these messages. [Wed Aug 08 07:45:21.627045 2018] [proxy:error] [pid 32113:tid 139735343294208] (2)No &hellip; <a href=\"https:\/\/www.wellgolly.com\/?p=2745\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Server Unavailable error<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2745","post","type-post","status-publish","format-standard","hentry","category-computers"],"_links":{"self":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/2745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2745"}],"version-history":[{"count":0,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/2745\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}