Unable to Create wordfence-waf.php
-
I’m getting the error “We were unable to create the wordfence-waf.php file in the root of the WordPress installation” when I attempt to optimize the Wordfence Web Application Firewall. I’ve done some searching around and this appears to be a permissions issue. The problem is both Nginx and PHP-FPM have permission to write to the root of my site.
I’ve temporarily opened up permissions to test and it’s still not working.
Permissions on the root folder (and everything within):
www-data:www-data rwX:rwX
Also, I’ve tried to run a command as the www-data user to see if files actually can be created and it creates them without issue:
sudo -H -u www-data bash -c 'touch ~/testing.txt'
The file testing.txt is created in the root without issue.On the diagnostics page, the PHP Environment Process Owner is
www-data
and there are no warnings in the Filesystem tab.At this point I have no idea what to do.
- The topic ‘Unable to Create wordfence-waf.php’ is closed to new replies.