• Resolved tri3shnyirl5a3f

    (@tri3shnyirl5a3f)


    I can’t get OPTIMIZE THE WORDFENCE FIREWALL to work.
    I checked the past forums and confirmed that Rool > Diagnostics > Process Owner is also correct. I also changed the permissions of the root directory to 755, but the Firewall configuration does not complete with the following message.

    
    We were unable to create the wordfence-waf.php file in the root of the WordPress installation. It's possible WordPress cannot write to the wordfence-waf.php file because of file permissions. Please verify the permissions are correct and retry the installation.
    

    When I set up the Wordfence Firewall in my local environment or on another site on a different server, it worked fine. What could be the cause of this problem?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @tri3shnyirl5a3f, thanks for getting in touch.

    Sometimes this persisting despite permissions changes could be based on the version of server software or CDN/installers running. The best place for me to start would be seeing the permissions and the underlying configuiration myself.

    Can you send a diagnostic report to wftest @ wordfence . com? You can find the link to do so at the top of the Wordfence > Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    NOTE: It should look as follows – Screenshot of Tools > Diagnostic > Send by Email

    Thanks,

    Peter.

    Thread Starter tri3shnyirl5a3f

    (@tri3shnyirl5a3f)

    Thank you.
    I have sent you an email with the report.

    Plugin Support wfpeter

    (@wfpeter)

    Hi @tri3shnyirl5a3f, thanks for sending that over.

    Your PHP version, file permissions, communication status and Cloudflare IP setup all look like they’re working fine and it also appears that your .user.ini is present and not causing errors. This tallies with my setup that is running the optimized firewall successfully.

    Despite running Cloudflare and CGI/Fast CGI the underlying server software is still Apache. Even changing the permissions for WordPress folders to 755, the owner on your WordPress root directory (and all contained directories) should be www-data. Web servers such as Apache, Nginx, etc will require www-data to be an owner so that WordPress and plugins can update and run functions required to do so. Please check this first.

    The following links may also be of assistance, as the troubleshooting guide can assist you in modifying your .user.ini manually:

    https://www.wordfence.com/help/firewall/optimizing-the-firewall/#firewall-optimization-setup
    https://www.wordfence.com/help/firewall/optimizing-the-firewall/troubleshooting/

    Thanks again,

    Peter.

    Thread Starter tri3shnyirl5a3f

    (@tri3shnyirl5a3f)

    Thanks for your reply.

    I have also contacted official support and was able to set up the Firewall by manually adding to and creating a file. It may have been an ownership issue, as you point out.

    Plugin Support wfpeter

    (@wfpeter)

    Wonderful news, thanks for letting me know @tri3shnyirl5a3f.

    If you have Wordfence questions in future, by all means start a new topic and we’ll always be glad to help out!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to create wordfence-waf.php’ is closed to new replies.