wafRules.rules does not exist
-
Hi Team
I have hosted my WordPress Linux web site on Azure environment. After installed the wordfence plug-in, have seen that the File “wafRules.rules” does not exist in Wordfence –> Tools –> Daignostics –> File systems, and php_erros.log file has filled up with
“Unable to open /home/site/wwwroot/wp-content/wflogs/config-synced.php for reading and writing”
Did some google search and as i saw a lot of customers were posted the same error message on different different websites, but since no one has answered for this error.
For a workaround I updated my wordfence-waf.php file to the following and tested.
Added extra (define(“WFWAF_IS_WINDOWS”, true);)
<?php
// Before removing this file, please verify the PHP ini settingauto_prepend_file
does not point to this.if (file_exists(‘/home/site/wwwroot/wp-content/plugins/wordfence/waf/bootstrap.php’)) {
define(“WFWAF_LOG_PATH”, ‘/home/site/wwwroot/wp-content/wflogs/’);
define(“WFWAF_IS_WINDOWS”, true);
include_once ‘/home/site/wwwroot/wp-content/plugins/wordfence/waf/bootstrap.php’;
}
?>wafRules.rules is now being downloaded/saved and config.php and other files are staying and the error messages have gone in Wordfence –> Tools –> Diagnostics –> File systems, but after a few days the issue was started again because the wordfence plug-in opening a lot of configuration files. I did some further research and it seems like it might relate to the limits of the system on number of file opens allowed being exceeded. I updated /etc/security/limits.conf to add:
* soft nofile 65535
* hard nofile 65535To increase the limit from the default (1024 I think). So far this seems to have stopped the errors, but if I restart the web app the modified settings on /etc/security/limits.conf will not be persisted due to the host environment policies.
Please help to find a permanent fix for this issue. Wordfence plug-in is opening a lot of configuration files.
- The topic ‘wafRules.rules does not exist’ is closed to new replies.