{"id":196,"date":"2020-03-20T12:49:23","date_gmt":"2020-03-20T11:49:23","guid":{"rendered":"https:\/\/blog.remyblom.nl\/?p=196"},"modified":"2021-05-26T16:08:54","modified_gmt":"2021-05-26T14:08:54","slug":"stop-wordpress-with-bitching-about-my-install","status":"publish","type":"post","link":"https:\/\/blog.remyblom.nl\/?p=196","title":{"rendered":"Stop WordPress with bitching about my install&#8230;"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1698\" height=\"1876\" src=\"https:\/\/blog.remyblom.nl\/wp-content\/uploads\/2020\/02\/wp_bitching.png\" alt=\"\" class=\"wp-image-197\"\/><\/figure>\n\n\n\n<p>I recenlty moved my WordPress installation to another server; the one it was on was acting slow most of the time, which annoyed me in some cases. But now on the new server I get this bitching screen again when I run Tools &gt; Site Health. <\/p>\n\n\n\n<p>I want a healthy site!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">One or more required modules are missing<\/h2>\n\n\n\n<p>The only required module seams to be <code>gd<\/code>, so I install it, and the optional <code>zip<\/code>. I don&#8217;t like <code>imagick<\/code> so I skip that.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ doas pkg_add php-zip php-gd wget\n$ doas mv \/etc\/php-7.3.sample\/* \/etc\/php-7.3\/\n$ doas rcctl restart php73_fpm<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">The REST API encounted an error\/Could not reach WordPress.org\/Your site could not complete a loopback request<\/h2>\n\n\n\n<p>These three problems all have the same error message:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><em>Error: [] cURL error 6: Could not resolve host: [some domain]<\/em><\/p>\n\n\n\n<p>Looks like someone has trouble with dns resolving&#8230; Now the weirdest thing is that on my previous server, this was all working just superfine, but on the current server I just don&#8217;t get this error out of the way. Google (or any other search-engine) is not of any help. People fixing things with putting stuff in <code>\/etc\/hosts<\/code>, or putting the Google DNS servers in <code>\/etc\/resolv.conf<\/code> are not fixing problems, just mere circumventing them.<\/p>\n\n\n\n<p>I have done quite some research in this issue and as it turns out any php run thru my webserver is not able to resolve any hosts, functions like <code>gethostbyname<\/code> or <code>dns_get_record<\/code> return nothing on this new server (and work like a charm on my old one&#8230;. GRRRR!!!) <\/p>\n\n\n\n<p>Also interesting to know is that the functions above work perfectly fine when I run the php-scripts from the command-line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ php -f test.php\nArray\n(\n    [0] => Array\n        (\n            [host] => akira.hku.nl\n            [class] => IN\n            [ttl] => 100\n            [type] => A\n            [ip] => 192.87.219.165\n        )\n\n)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Background updates are not working as expected<\/h2>\n\n\n\n<p>This one is easy to solve, just make sure that the files of WordPress are of the right owner:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd \/var\/www\/vhosts\/remyblom.nl\/blog\n$ doas chown -R www:www .<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Temporary Conclusion<\/h2>\n\n\n\n<p>The problem with cURL seems pretty consistent, although my two servers and their installations are so very equal, it&#8217;s super-scary. But I will continue the search, other pointers might be:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firewall settings?<\/li><li>completely reinstall, php-fpm, php-curl, openBSD?<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">FINALLLLLY!!!! YES!!!!!<\/h2>\n\n\n\n<p>Man I have been looking into this issue so many times and now, May 2021, installing a new box with OpenBSD, I finally managed to enter the right search-query and FIND THE ANSWER!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd \/var\/www\/\n$ doas mkdir etc\n$ cd etc\n$ doas cp \/etc\/resolv.conf .<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recenlty moved my WordPress installation to another server; the one it was on was acting slow most of the time, which annoyed me in some cases. But now on the new server I get this bitching screen again when I run Tools &gt; Site Health. I want a healthy site! One or more required &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.remyblom.nl\/?p=196\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Stop WordPress with bitching about my install&#8230;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,10,4],"tags":[],"class_list":["post-196","post","type-post","status-publish","format-standard","hentry","category-config","category-lemp","category-openbsd"],"_links":{"self":[{"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/posts\/196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=196"}],"version-history":[{"count":8,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/posts\/196\/revisions"}],"predecessor-version":[{"id":283,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=\/wp\/v2\/posts\/196\/revisions\/283"}],"wp:attachment":[{"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.remyblom.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}