{"id":2172,"date":"2017-03-09T23:29:34","date_gmt":"2017-03-10T07:29:34","guid":{"rendered":"http:\/\/arcanius.silverfir.net\/blog\/?p=2172"},"modified":"2018-11-19T15:23:55","modified_gmt":"2018-11-19T23:23:55","slug":"upgrade-to-ubuntu-16-04-lts","status":"publish","type":"post","link":"https:\/\/arcanius.silverfir.net\/blog\/upgrade-to-ubuntu-16-04-lts\/","title":{"rendered":"Upgrade to Ubuntu 16.04 LTS"},"content":{"rendered":"<p>A few days ago, I was poking about &#8220;micro&#8221;, the AWS EC2 server behind this site. I noticed that a new <abbr title=\"Long Term Support\">LTS<\/abbr> release of Ubuntu was out so I decided to upgrade.<\/p>\n<p>Unfortunately, I got distracted amid the upgrade and forgot about it, and then it took my brother to inform me that things had gone awry: every page load was returning &#8220;502\/Bad Gateway&#8221;. So, <a href=\"http:\/\/arcanius.silverfir.net\/blog\/dovecot-maildir-ubuntu-14-04-lts-upgrade\/\">just like last time<\/a>, I had to dig in to figure out what was going wrong. I started looking into it and the problem ended up being multi-faceted.<\/p>\n<p>First, I needed to finish off the install which I had rudely interrupted by rebooting the server while the <tt>do-release-upgrade<\/tt> was stuck at a prompt. Whoops! Fortunately, <tt>apt-get<\/tt> is nice enough these days to tell you the invocation you need to resume the upgrade &#8212; something like <tt>dpkg -a<\/tt>. Regardless, I got that resumed and finished up, then I set about seeing if everything was working.<\/p>\n<p>Well, of course it wasn&#8217;t! First of all, <tt>nginx<\/tt> was set to work with <tt>php5-fpm<\/tt>, but this new release ships with <tt>php7<\/tt>, which has been put under the more generic name <tt>php<\/tt> (which seems like a good move, even if it&#8217;s backwards incompatible, because it allows for compatibility going forward, whereas the old method did not).<\/p>\n<p>The first step was to update the nginx configs so that it would talk to the right unix domain socket to communicate with the upgraded php-fpm package. Once that was done, however, the pages started showing up blank, but with HTTP\/200 responses, as if everything was working fine. Some searching led me to <a href=\"http:\/\/serverfault.com\/questions\/223500\/blank-page-wordpress-on-nginxphp-fpm\">the regular place where all sysadmin questions go to be answered: serverfault<\/a>.<\/p>\n<p>Sure enough, this was exactly the issue I had, and adding that line to my nginx config made the websites start loading again.<\/p>\n<p>Now, I just have to figure out the email situation again&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days ago, I was poking about &#8220;micro&#8221;, the AWS EC2 server behind this site. I noticed that a new LTS release of Ubuntu was out so I decided to upgrade. Unfortunately, I got distracted amid the upgrade and forgot about it, and then it took my brother to inform me that things had [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12,8],"class_list":["post-2172","post","type-post","status-publish","format-standard","hentry","category-everything","tag-silverfir","tag-technology"],"_links":{"self":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts\/2172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/comments?post=2172"}],"version-history":[{"count":3,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts\/2172\/revisions"}],"predecessor-version":[{"id":2177,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts\/2172\/revisions\/2177"}],"wp:attachment":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/media?parent=2172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/categories?post=2172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/tags?post=2172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}