unable to write to ~/wp-content/wflogs/ which the WAF uses for storage
-
I recently cloned the website to a new server, running PHP7, using the cloudways.com (digital ocean) clone app functionality. The website on the old server on cloudways.com (digital ocean), running PHP 5.5 or 5.6 did not have the following issue:
When attempting to activate the Wordfence Web Application Firewall, I get the message: “We were unable to write to ~/wp-content/wflogs/ which the WAF uses for storage. Please update permissions on the parent directory so the web server can write to it.”
The wflogs folder permissions are 775. 775 seems to include write permission for user and group.
The wp-content folder (parent directory) permissions are also 775.
Under WordFence > Tools > Diagnostics,
Checking if web server can read from ~/wp-content/wflogs:
File “config.php” is unreadable, File “wafRules.rules” is unreadableChecking if web server can write to ~/wp-content/wflogs:
File “attack-data.php” is unwritable,
File “ips.php” is unwritable,
File “config.php” is unwritable,
File “rules.php” is unwritable,
File “wafRules.rules” is unwritableWhen SFTP the files in wflogs folder do not include config.php and do not include wafRules.rules, but do include the following files:
.htaccess
attack-data.php
ips.php
rules.phpThe .htaccess file contains:
<IfModule mod_authz_core.c> Require all denied </IfModule> <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule>
What should I do to fix this so the WAF activation works? What permissions on what folder(s) will make the WAF activation successful?
I sent the WordFence Diagnostic Report by email to [email protected]
- The topic ‘unable to write to ~/wp-content/wflogs/ which the WAF uses for storage’ is closed to new replies.