{"id":11828,"date":"2023-04-17T20:31:42","date_gmt":"2023-04-18T00:31:42","guid":{"rendered":"https:\/\/spinor.info\/weblog\/?p=11828"},"modified":"2023-04-17T20:31:42","modified_gmt":"2023-04-18T00:31:42","slug":"php-upgrade","status":"publish","type":"post","link":"https:\/\/spinor.info\/weblog\/?p=11828","title":{"rendered":"PHP upgrade"},"content":{"rendered":"<p>Here&#8217;s something that I&#8217;ve been putting off (literally) for years: Upgrading PHP.<\/p>\n<p>Until today, that is.<\/p>\n<p>My server used to run a seriously outdated version of PHP, 5.6. OK, it was still supported (kind of) under CentOS 7 but the writing was on the wall. In particular, the content management systems I use (WordPress, Joomla) were also grumbling.<\/p>\n<p>Why didn&#8217;t I upgrade until now? Because I have Web content dating all the way back to the 1990s. Though the issues were trivial, such as using mysql_ instead of mysqli_ for database access, or using ASP-style tags, <code>&lt;%...%&gt;<\/code> instead of <code>&lt;?php...?&gt;<\/code> for PHP code, trivial issues still need fixing, and the fixes still need testing.<\/p>\n<p>I finally bit the bullet. I was like this busy robot, assisted with kittycats, but it appears that I managed to pull it off: having done reasonably rigorous testing on backup\/secondary servers, I was able to upgrade my main server without much drama so far.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11829\" src=\"https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2023\/04\/robot-with-cat-working.png\" alt=\"\" width=\"512\" height=\"512\" srcset=\"https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2023\/04\/robot-with-cat-working.png 1024w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2023\/04\/robot-with-cat-working-300x300.png 300w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2023\/04\/robot-with-cat-working-150x150.png 150w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2023\/04\/robot-with-cat-working-768x768.png 768w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2023\/04\/robot-with-cat-working-96x96.png 96w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2023\/04\/robot-with-cat-working-24x24.png 24w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2023\/04\/robot-with-cat-working-36x36.png 36w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2023\/04\/robot-with-cat-working-48x48.png 48w, https:\/\/spinor.info\/weblog\/wp-content\/uploads\/2023\/04\/robot-with-cat-working-64x64.png 64w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/p>\n<p>Of course I still worry about the bugs and issues that I have not yet seen, but I am optimistic.<\/p>\n<fb:like href='https:\/\/spinor.info\/weblog\/?p=11828' send='false' layout='button_count' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida grande'><\/fb:like>","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s something that I&#8217;ve been putting off (literally) for years: Upgrading PHP. Until today, that is. My server used to run a seriously outdated version of PHP, 5.6. OK, it was still supported (kind of) under CentOS 7 but the writing was on the wall. In particular, the content management systems I use (WordPress, Joomla) <a href='https:\/\/spinor.info\/weblog\/?p=11828' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,6,35],"tags":[],"class_list":["post-11828","post","type-post","status-publish","format-standard","hentry","category-computers","category-internet","category-personal","category-11-id","category-6-id","category-35-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/11828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11828"}],"version-history":[{"count":1,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/11828\/revisions"}],"predecessor-version":[{"id":11830,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=\/wp\/v2\/posts\/11828\/revisions\/11830"}],"wp:attachment":[{"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/spinor.info\/weblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}