• Resolved rd171

    (@rd171)


    Hosting environment:

    • Linux (AlmaLinux)
    • Nginx with PHP 8.1
    • WordPress 6.2.2
    • WordFence version: 7.10.3
    • Site is behind Cloudflare, but I have followed the configuration steps in the WordFence documentation
    • All diagnostics pass except “Connecting back to this site via IPv6”
    • SELinux set to permissive (so not enforcing any policy)
    • Modsecurity disabled

    The rules file (rules.php) does not update, automatically or manually. When I try to manually update the rules, I get the error message: “No rules were updated. Please verify you have permission to write to the /wp-content/wflogs directory.”

    But, that directory is writeable, and there are other files in that directory and appear normal to me.

    Based on searching these forums, some posts suggested to deactivate/uninstall the plugin and reinstall it, but that did not work. I also separately deleted rules.php and let it get recreated, but the recreated file is 0 KB.

    I tested out “curl -v https://noc1.wordfence.com/” from the terminal and that works just fine and gets a response.

    I have been through every troubleshooting step I can think of. Any ideas? Thanks in advance for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @rd171, thanks for the thorough description of things you’ve tried and checked so far.

    The first thing that comes to mind is that in addition to 755 permissions on your WordPress site’s directories, the process owner is also www-data. I’ve seen a different process owner result in problems writing before.

    If you experience persistent problems with the rules.php file, you can bypass this entirely by setting Wordfence to write to the MySQLi storage engine instead of a file: https://www.wordfence.com/help/firewall/mysqli-storage-engine/

    Let me know if you continue to experience issues.

    Thanks,
    Peter.

    Work around suggested

    “setting Wordfence to write to the MySQLi storage engine”

    Solved issue on AlmaLinux 9.2

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Rules not updating’ is closed to new replies.