{"id":3858,"date":"2018-01-31T18:40:57","date_gmt":"2018-01-31T18:40:57","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3858"},"modified":"2018-01-31T18:40:57","modified_gmt":"2018-01-31T18:40:57","slug":"moving-wordpress-site-wordfence-plugin","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2018\/01\/31\/moving-wordpress-site-wordfence-plugin\/","title":{"rendered":"Moving WordPress Site with Wordfence Plugin"},"content":{"rendered":"<p>I recently moved a wordpress site to a different host and after all the files and database were updated kept getting the following error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n2018\/01\/31 12:10:11 &#x5B;error] 1857#0: *165 FastCGI sent in stderr: &quot;PHP message: PHP Warning:  Unknown: failed to open stream: No such file or directory in Unknown on line 0\nPHP message: PHP Fatal error:  Unknown: Failed opening required &#039;\/home\/olddomain\/public_html\/wordfence-waf.php&#039; (include_path=&#039;.:\/usr\/share\/pear:\/usr\/share\/php&#039;) in Unknown on line 0&quot; while reading response header from upstream, client: 65.47.199.226, server: domain.com, request: &quot;GET \/ HTTP\/2.0&quot;, upstream: &quot;fastcgi:\/\/unix:\/var\/run\/php-fpm\/php-fpm.sock:&quot;, host: &quot;domain.com&quot;\n<\/pre>\n<p>After reviewing the KB files here:<br \/>\nhttps:\/\/docs.wordfence.com\/en\/After_moving_a_site_or_deleting_some_files,_I_see:_PHP_Fatal_error:_Unknown:_Failed_opening_required_\/var\/www\/html\/wordfence-waf.php<br \/>\nhttps:\/\/docs.wordfence.com\/en\/Web_Application_Firewall_FAQ#How_can_I_remove_the_firewall_setup_manually.3F<\/p>\n<p>I was able to modify the .user.ini file and the wordfence-waf.php file to set the correct path and all is well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently moved a wordpress site to a different host and after all the files and database were updated kept getting the following error: 2018\/01\/31 12:10:11 &#x5B;error] 1857#0: *165 FastCGI sent in stderr: &quot;PHP message: PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 PHP message: PHP &#8230; <a title=\"Moving WordPress Site with Wordfence Plugin\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2018\/01\/31\/moving-wordpress-site-wordfence-plugin\/\" aria-label=\"Read more about Moving WordPress Site with Wordfence Plugin\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[],"class_list":["post-3858","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3858"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3858\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}