{"id":26126,"date":"2019-05-14T18:39:12","date_gmt":"2019-05-14T17:39:12","guid":{"rendered":"https:\/\/home.apeconsulting.co.uk\/adrian\/?p=26126"},"modified":"2020-12-30T12:39:47","modified_gmt":"2020-12-30T12:39:47","slug":"wordpress-5-2-and-php-7-3","status":"publish","type":"post","link":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/","title":{"rendered":"WordPress 5.2 and PHP 7.3"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"380\" src=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2019\/05\/php-deserialization-attack-wordpress-hacking.png\" alt=\"\" class=\"wp-image-26146\" srcset=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2019\/05\/php-deserialization-attack-wordpress-hacking.png 728w, https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2019\/05\/php-deserialization-attack-wordpress-hacking-300x157.png 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/figure>\n\n\n\n<p>A short blog with a quick update to this <a href=\"https:\/\/home.apeconsulting.co.uk\/adrian\/some-php-updates\/\">one<\/a> about PHP, this time with a little WordPress 5.2!<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>I&#8217;d updated my WordPress jail to PHP 7.2 not too long ago, but the recent WordPress 5.2 update introduced the Site Health Check, and this reported that my PHP version was out of date.<\/p>\n\n\n\n<p>Whilst that is definitely true, I&#8217;m still on a supported version, but given how easy it has been to update last time and reports suggesting the latest 7.3 PHP version plays nicely with WordPress I thought I&#8217;d update.<\/p>\n\n\n\n<p>It wasn&#8217;t quite as straight forward as the last time, as the WordPress package hasn&#8217;t been updated for PHP 7.3, so after updating PHP with the following command, it uninstalled WordPress!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pkg install php73 php73-ctype php73-curl php73-filter php73-ftp php73-gd php73-hash php73-json php73-mysqli php73-openssl php73-pear php73-simplexml php73-tokenizer php73-xml php73-zip php73-zlib php73-bcmath php73-exif php73-fileinfo pkg install php72-pecl-imagick<\/code><\/pre>\n\n\n\n<p>Reinstalling WordPress, depreciated PHP back to 7.2!  The solution was to update PHP to 7.3 and then install WordPress 5.1.1 from ports (check out <a href=\"https:\/\/www.freshports.org\/\">www.freshports.org<\/a>) before updating WordPress to 5.2<\/p>\n\n\n\n<p>A bit of a long way around and I half expected it to screw up my database and result in me rolling back the snapshots I&#8217;d taken, but it all worked out without needing my &#8216;backup&#8217; plan.<\/p>\n\n\n\n<p>So this site is now running the latest version of WordPress and PHP.  Happy days&#8230;<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>A short blog with a quick update to this one about PHP, this time with a little WordPress 5.2!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,9,10,14],"tags":[21],"class_list":["post-26126","post","type-post","status-publish","format-standard","hentry","category-it","category-server","category-software","category-wordpress","tag-spellchecked"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Wordpress 5.2 and PHP 7.3 - Adrian&#039;s Blog<\/title>\n<meta name=\"description\" content=\"I&#039;d updated to PHP 7.2 not too long ago, but the recent WordPress 5.2 update introduced the Site Health Check, which reported that my PHP was out of date.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Wordpress 5.2 and PHP 7.3 - Adrian&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"I&#039;d updated to PHP 7.2 not too long ago, but the recent WordPress 5.2 update introduced the Site Health Check, which reported that my PHP was out of date.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/\" \/>\n<meta property=\"og:site_name\" content=\"Adrian&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-14T17:39:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-30T12:39:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2019\/05\/php-deserialization-attack-wordpress-hacking.png\" \/>\n<meta name=\"author\" content=\"Adrian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adrian\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated 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\":\"Article\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/\"},\"author\":{\"name\":\"Adrian\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"headline\":\"WordPress 5.2 and PHP 7.3\",\"datePublished\":\"2019-05-14T17:39:12+00:00\",\"dateModified\":\"2020-12-30T12:39:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/\"},\"wordCount\":206,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"image\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/05\\\/php-deserialization-attack-wordpress-hacking.png\",\"keywords\":[\"Checked\"],\"articleSection\":[\"IT\",\"Server\",\"Software\",\"WordPress\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/\",\"name\":\"Wordpress 5.2 and PHP 7.3 - Adrian&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/05\\\/php-deserialization-attack-wordpress-hacking.png\",\"datePublished\":\"2019-05-14T17:39:12+00:00\",\"dateModified\":\"2020-12-30T12:39:47+00:00\",\"description\":\"I'd updated to PHP 7.2 not too long ago, but the recent WordPress 5.2 update introduced the Site Health Check, which reported that my PHP was out of date.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/#primaryimage\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/05\\\/php-deserialization-attack-wordpress-hacking.png\",\"contentUrl\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/05\\\/php-deserialization-attack-wordpress-hacking.png\",\"width\":728,\"height\":380},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/wordpress-5-2-and-php-7-3\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress 5.2 and PHP 7.3\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#website\",\"url\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/\",\"name\":\"Adrian&#039;s Blog\",\"description\":\"Ramblings of an IT Geek\",\"publisher\":{\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/home.apeconsulting.co.uk\\\/adrian\\\/#\\\/schema\\\/person\\\/f63f15ff50bb8f956afdd86a816c5d2a\",\"name\":\"Adrian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\",\"caption\":\"Adrian\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Wordpress 5.2 and PHP 7.3 - Adrian&#039;s Blog","description":"I'd updated to PHP 7.2 not too long ago, but the recent WordPress 5.2 update introduced the Site Health Check, which reported that my PHP was out of date.","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:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/","og_locale":"en_GB","og_type":"article","og_title":"Wordpress 5.2 and PHP 7.3 - Adrian&#039;s Blog","og_description":"I'd updated to PHP 7.2 not too long ago, but the recent WordPress 5.2 update introduced the Site Health Check, which reported that my PHP was out of date.","og_url":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/","og_site_name":"Adrian&#039;s Blog","article_published_time":"2019-05-14T17:39:12+00:00","article_modified_time":"2020-12-30T12:39:47+00:00","og_image":[{"url":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2019\/05\/php-deserialization-attack-wordpress-hacking.png","type":"","width":"","height":""}],"author":"Adrian","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adrian","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/#article","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/"},"author":{"name":"Adrian","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"headline":"WordPress 5.2 and PHP 7.3","datePublished":"2019-05-14T17:39:12+00:00","dateModified":"2020-12-30T12:39:47+00:00","mainEntityOfPage":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/"},"wordCount":206,"commentCount":1,"publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"image":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/#primaryimage"},"thumbnailUrl":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2019\/05\/php-deserialization-attack-wordpress-hacking.png","keywords":["Checked"],"articleSection":["IT","Server","Software","WordPress"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/","name":"Wordpress 5.2 and PHP 7.3 - Adrian&#039;s Blog","isPartOf":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website"},"primaryImageOfPage":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/#primaryimage"},"image":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/#primaryimage"},"thumbnailUrl":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2019\/05\/php-deserialization-attack-wordpress-hacking.png","datePublished":"2019-05-14T17:39:12+00:00","dateModified":"2020-12-30T12:39:47+00:00","description":"I'd updated to PHP 7.2 not too long ago, but the recent WordPress 5.2 update introduced the Site Health Check, which reported that my PHP was out of date.","breadcrumb":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/#primaryimage","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2019\/05\/php-deserialization-attack-wordpress-hacking.png","contentUrl":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-content\/uploads\/sites\/2\/2019\/05\/php-deserialization-attack-wordpress-hacking.png","width":728,"height":380},{"@type":"BreadcrumbList","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/wordpress-5-2-and-php-7-3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/home.apeconsulting.co.uk\/adrian\/"},{"@type":"ListItem","position":2,"name":"WordPress 5.2 and PHP 7.3"}]},{"@type":"WebSite","@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#website","url":"https:\/\/home.apeconsulting.co.uk\/adrian\/","name":"Adrian&#039;s Blog","description":"Ramblings of an IT Geek","publisher":{"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/home.apeconsulting.co.uk\/adrian\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/home.apeconsulting.co.uk\/adrian\/#\/schema\/person\/f63f15ff50bb8f956afdd86a816c5d2a","name":"Adrian","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g","caption":"Adrian"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/c2e5d9012573aedee25fd68deb071781d974af50ae74bf73aeb0e70433f7390c?s=96&d=mm&r=g"}}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p90DI4-6No","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/26126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/comments?post=26126"}],"version-history":[{"count":4,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/26126\/revisions"}],"predecessor-version":[{"id":28296,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/posts\/26126\/revisions\/28296"}],"wp:attachment":[{"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/media?parent=26126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/categories?post=26126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.apeconsulting.co.uk\/adrian\/wp-json\/wp\/v2\/tags?post=26126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}