UPDATE: For those who may be having the same issue…
Since the config.php file is missing, I tried creating a blank config.php file inside the wflogs folder. Then from the WP Dashboard, I updated some Wordfence Firewall settings.
I now got the error: “The Wordfence Web Application Firewall cannot run. The configuration files are corrupt or inaccessible by the web server, which is preventing the WAF from functioning. Please verify the web server has permission to access the configuration files. You may also try to rebuild the configuration file by clicking here. It will automatically resume normal operation when it is fixed.”
I clicked the link to rebuild the configuration file. I noticed that the blank config file was overwritten and is no longer 0KB.
So I tried to enable the Firewall again but got the same error.
I clicked rebuild again. When I tried to enable the firewall for the 3rd time. I got no error this time. But the firewall did not enable… it’s still stuck on learning mode.
What’s puzzling is that the config file in the wflogs folder was no longer there. It was deleted.
UPDATE: Tried deleting the wflogs folder and from the WP Dashboard, re-saved the Wordfence firewall settings.
The wflogs folder re-appeared but still no config.php file inside it.
Help pls?
Can you send a diagnostic report to wftest [at ] wordfence [dot] com? You can find the link to do so at the top of the Wordfence Tools > Diagnostics page. Please add your forum username where indicated and respond here after you have sent it.
Note: For the fastest response time, please make sure and add any information or questions directly to this ticket and not the email address above unless asked.
Thank you for the response but I do not need a solution for this anymore. I moved my site from Azure Web App Service to AWS Lightsail and Wordfence worked great.
You might want to take note though that this issue was encountered using the Azure Web App Service. Thanks.
Same issue as many others. Unable to enable Firewall in Azure web app.