{"id":2597,"date":"2023-06-27T14:22:11","date_gmt":"2023-06-27T05:22:11","guid":{"rendered":"https:\/\/rageworx.info\/?p=2597"},"modified":"2023-06-27T14:22:13","modified_gmt":"2023-06-27T05:22:13","slug":"fixing-wordfence-firewll-rules-update-failure","status":"publish","type":"post","link":"https:\/\/rageworx.info\/?p=2597","title":{"rendered":"Fixing Wordfence Firewll rules update failure"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-large-font-size\">The last rules update for the Wordfence Web Application Firewall was unsuccessful. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1084\" height=\"146\" src=\"https:\/\/rageworx.info\/wp-content\/uploads\/2023\/06\/annoying_wf_fw_rules.png\" alt=\"\" class=\"wp-image-2598\" srcset=\"https:\/\/rageworx.info\/wp-content\/uploads\/2023\/06\/annoying_wf_fw_rules.png 1084w, https:\/\/rageworx.info\/wp-content\/uploads\/2023\/06\/annoying_wf_fw_rules-960x129.png 960w, https:\/\/rageworx.info\/wp-content\/uploads\/2023\/06\/annoying_wf_fw_rules-768x103.png 768w, https:\/\/rageworx.info\/wp-content\/uploads\/2023\/06\/annoying_wf_fw_rules-624x84.png 624w\" sizes=\"auto, (max-width: 1084px) 100vw, 1084px\" \/><\/figure>\n<\/div><cite>Holy mother s \u2026 what is your problem, WF ?<\/cite><\/blockquote>\n\n\n\n<p> It was started in a few months ago, Wordfence continuously reported \u201crule update failure\u201d email to me. And I always failed to \u201cmanual update\u201d without any message, even I didn&#8217;t see permission or similar.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A simple solution<\/h2>\n\n\n\n<p> In case of mine, local embedded Linux system is running under small memory, so I limited PHP resource in stance to standard.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>max_execution_time = 30\nmax_input_time = 60\nmemory_limit = 128M<\/code><\/pre>\n\n\n\n<p> But I found error result in multiple reason by debug logging, there are two evidences found.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Execution timeout by over 30 seconds<\/li>\n\n\n\n<li>Memory NOT ENOUGH FOR RULES UPDATE, even allocated 128 MB.<\/li>\n<\/ul>\n\n\n\n<p>So I need to change php.ini to like this.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"581\" height=\"486\" src=\"https:\/\/rageworx.info\/wp-content\/uploads\/2023\/06\/annoying_wf_fw_rules_fix1.png\" alt=\"\" class=\"wp-image-2599\"\/><\/figure>\n<\/div>\n\n\n<p> Wordfence rule updating must be fixed for low memory server like mine.  Anyway, it fixed for only 586 KB sized rules.php.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-x-large-font-size is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Wordfence may need fix this issue<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>It was started in a few months ago, Wordfence continuously reported \u201crule update failure\u201d email to me. And I always failed to \u201cmanual update\u201d without any message, even I didn&#8217;t see permission or similar. A simple solution In case of mine, local embedded Linux system is running under small memory,&#8230; <a href=\"https:\/\/rageworx.info\/?p=2597\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":2598,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,640],"tags":[110,65,789,790,219,788],"class_list":["post-2597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raphs","category-tips","tag-failure","tag-fix","tag-php","tag-rules","tag-update","tag-wordfence"],"_links":{"self":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts\/2597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2597"}],"version-history":[{"count":0,"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts\/2597\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/media\/2598"}],"wp:attachment":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}