Any resolution to this?
I’m having this same issue with WF saying this:
“Unable to open /usr/share/nginx/html/wp-content/wflogs/config.php for reading and writing.”
Lots of these errors showing up for me and nothing being written to wflogs/config.php…
Permissions are:
drwxr-xr-x 2 www-data www 4096 Aug 6 11:45 .
drwxrwsr-x 11 www-data www 4096 Aug 6 11:28 ..
-rw-rw—- 1 www-data www 40083 Aug 5 15:45 attack-data.php
-rw-rw—- 1 root root 874 Aug 6 11:45 config.php
-rw-rw-r– 1 www-data www 133 Aug 5 15:45 .htaccess
-rw-rw—- 1 www-data www 51 Aug 5 15:45 ips.php
-rw-rw-r– 1 www-data www 21288 Aug 5 15:45 rules.php
-rw-rw—- 1 www-data www 14996 Aug 5 15:45 wafRules.rules
You’ll notice config.php is owned by root:root. Wordfence appears to keep changing the permissions of this file back from my web server user and group of www-data:www after I changed them, thinking that was the problem…
And I just checked the Wordfence Diagnostic page and it says the process is being run by www-data:
Process Owner: www-data
And absolutely everything else on that Diagnostics page is in the green.
Please help!