Permissions issues with wordfence
-
Wordpress 5.7.2
Wordfence 7.5.3
EC2 linux instance as serverSo one day out of nowhere my site sends me an email from wordfence saying the firewall is deactivated. I checked on the wordfence menu and it is, and as I try to activate it, I can’t. It shows a pop-uo displaying error when trying to save. There also shows a bar at the top saying the wordfence firewall can’t be executed, and the configuration files are either corrupt or inaccesible for the web server, and I can trying rebuilding the config file entering some link. I entered some link, and there shows another error saying Wordfence can’t write in the ~/wp-content/wflogs/ files that WAF uses for storage. So I look for the Wordfence tool diagnostic to see if something else is going on and it shows 3 errors:
1 Filesystem / checking if web server is able to read ~/wp-content/wflogs: file “attack-data.pgp” can’t be read, file “ips.php” can’t be read, and file “config.php” can’t be read
2 Filesystem / checking if web server is able to write in ~/wp-content/wflogs : can’t write into files
3 Connectivity / connecting to site : wp_remote_post() test back to this server failed. Response was: 503 service unavailable.I checked on .htaccess file to see Wordfence permissions. I get this code related to it:
# Wordfence WAF <Files ".user.ini"> <IfModule mod_authz_core.c> Require all denied </IfModule> <IfModule !mod_authz_core.c> Order deny,allow Deny from all </IfModule> </Files> # END Wordfence WAF
Now, I’m not sure if it should be like that as it seems to be denying access to files. I’m not a programmer nor a tech person, I’m just trying to build up my site from what I can learn through reading, so I would like some help to know why can’t I activate Wordfence firewall, why did it deactivate in the first place, and what can I do to activate it again and to keep Wordfence permissions right. Any ideas?
- The topic ‘Permissions issues with wordfence’ is closed to new replies.