• Resolved dropshot

    (@dropshot)


    Just installed Wordfence on a new site in a new environment.

    It’s rare that I have any issues with Wordfence, but with this install I don’t know what to do.

    Been searching the net and docs but the string gives me no results.

    “The Wordfence Web Application Firewall cannot run”
    followed by
    “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.”

    Probably it’s a permission issue. How can I get around it? In the docs I find this:

    Depending on your server configuration, you may be prompted to create wordfence-waf.php, and edit or create .htaccess or .user.ini files in the site’s main directory.

    Creating and uploading them is no problem of course. But if I need to add something, what should I add?

    Docs includes a lot of tips on how to troubleshoot optimizing the firewall. But not tips at all if you can’t even run it…

    Any help will be much appreciated. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @dropshot,

    Could you go to the Wordfence –> Tools –> Diagnostics page and make sure that all checks in the Filesystem and Wordfence Config sections read OK?

    Can you see a wflogs directory being created (under /wp-content) and populated with several .php files?

    If it exists can you confirm the owner of the /wp-content/wflogs directory is the same as the user the web server runs as?

    In case it hasn’t been created please make sure that the wp-content/ directory is writable by the web server, at least during the setup process; you can make wp-content/ unwritable as long as wp-content/wflogs/ has been created and remains writable by the web server user.

    Hello,
    i have a similar problem: i install and setup WAF correctly.
    I dont’t know what are the correct permission for the wflogs folder (755 with owner web server user/777?).
    I had some maliciuos code insert in the php file in the wflogs folder, how is it possible?
    Can you explain me please?
    Thanks.
    Bye.
    Michela.

    wfyann

    (@wfyann)

    Hi @mikygo123,

    As per the WordPress forum guidelines, please make sure to start your own topic so we can further assist you.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘The Wordfence Web Application Firewall cannot run’ is closed to new replies.