• A few months ago, I migrated my sites to another host. I vaguely remember that there might have been some issue with the wflogs files, so I may just have deleted all of them because I assumed that they would be automatically recreated. Turns out that now I only have the .htaccess ; the GeoLite2-Country.mmdb ; and the rules.php files in my wflogs folder, and the other 7 are missing. I do still have the old files in the old site backup, as well as in a “wflogs-old” folder. Is it ok if just copy-paste the 7 old files to the wflogs folder now? Or would the proper way be something else? Is this a big issue, and how can I fix it? Thanks!

    • This topic was modified 4 months, 1 week ago by todama.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @todama, thanks for getting in touch.

    Under normal circumstances not copying this folder with a backup/migration, or deleting its contents entirely wouldn’t pose any problems as Wordfence tries to repopulate it automatically within ~30 minutes.

    If you’ve spent some time without the folder regenerating, then it may suggest that file permissions for your site or communications between your site and our servers aren’t correct. Do you get scan errors or filesystem/communication errors reported on your Wordfence > Tools > Diagnostics page when you expand all sections?

    Customers with persistent problems with files in this folder can bypass it entirely by setting Wordfence to write to the MySQLi storage engine instead of a file so your site could already be using this method:?https://www.wordfence.com/help/firewall/mysqli-storage-engine/

    Many thanks,
    Peter.

    Thread Starter todama

    (@todama)

    Thanks for getting back to me! The only error I get on the diagnostics page is this (under “Connectivity”): “Connecting back to this site via IPv6 (not required; failure to connect may not be an issue on some sites) X wp_remote_post() test back to this server failed! Response was: cURL error 7:”. This page is referenced under “info” for the error: https://www.wordfence.com/help/tools/diagnostics/?utm_source=plugin&utm_medium=pluginUI&utm_campaign=docsIcon#ipv6 . I do use cloudflare, so maybe I should enable the option “Use only IPv4 to start scans”? But that will probably not be the cause of my issue.

    I don’t have this line “define(‘WFWAF_STORAGE_ENGINE’, ‘mysqli’);” in the mentioned “wordfence-waf.php” file. So unless Cloudways High-Frequency Vultr servers automatically force the MySQLi method, that shouldn’t be the case. Is there a way to check if this method is successfully in use? Including if I decide to use this method in the future? Can I check if there’s a specific table in my database for example?

    When I make backups of the public_html files in SSH (tar -czf command), I get “Cannot open: Permission denied” errors for each of the 7 wflogs files which are missing, but that should be due to them missing from the folder, right? I’ve already reset the permissions in the Cloudways Application Settings to User, I don’t know if there’s anything else I can do permission-wise.

    • This reply was modified 4 months, 1 week ago by todama.
    Thread Starter todama

    (@todama)

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.