• Resolved Hazel Z.

    (@cadencehart)


    Hi! I have launched my website over a month ago and have just noticed that the Wordfence Firewall was never enabled. The “Automatically enable on” checkbox is checked with a specified date. As it happens, the date changes daily so it is never enabled.

    So I tried to do it manually but to no avail. I noticed that the config.php file is missing under the wflogs folder. Could this be the problem? How do I fix this?

    My website is hosted in Azure (WordPress on Linux).

    I have already read through similar posts but still I could not find a solution that works.

    • This topic was modified 4 years, 7 months ago by Hazel Z..
    • This topic was modified 4 years, 7 months ago by Hazel Z..
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Hazel Z.

    (@cadencehart)

    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.

    Thread Starter Hazel Z.

    (@cadencehart)

    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.

    Thread Starter Hazel Z.

    (@cadencehart)

    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.

    Thread Starter Hazel Z.

    (@cadencehart)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wordfence Firewall Cannot Be Enabled’ is closed to new replies.