• Resolved kateharris

    (@kateharris)


    Hey guys!

    I’ve just added Wordfence to another site and gone to configure it, but I’m getting this error message:

    We were unable to make changes to the .htaccess file. It’s possible WordPress cannot write to the .htaccess file because of file permissions, which may have been set by another security plugin, or you may have set them manually. Please verify the permissions allow the web server to write to the file, and retry the installation

    Under Diagnostics, the error is showing under Connectivity. The message reads:

    Connecting back to this site via IPv6 (not required; failure to connect may not be an issue on some sites)

    wp_remote_post() test back to this server failed! Response was: cURL error 7:

    The site is being hosted with a company where the cPanel is hiding in their dashboard and or not accessible without contacting them.

    I’m happy to call the hosting company, but I don’t know if they’d be happy to fix this as it’s a 3rd party plugin, so I wanted to see here if there was anything I could do on my end at all.

    Any help or advice would be awesome and massively appreciated!

    Thank you,

    Kate

    The page I need help with: [log in to see the link]

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

    (@wfpeter)

    Hi @kateharris, thanks for getting in touch about this!

    Are you running the site on a CGI/FastCGI server? I did see another recently where the host may have disabled certain PHP configuration options, causing the firewall to only run in “Basic Protection” and not optimized. The IPv6 error isn’t critical so long as you’re not receiving an error for IPv4 too.

    If you’re not sure about the above or would just like us to take a look at the config ourselves, you can use the Wordfence > Tools menu to send us the diagnostics through the Wordfence > Tools menu. You can send that to us at wftest @ wordfence . com. 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 kateharris

    (@kateharris)

    Hey @wfpeter

    The diagnostic report has been sent.

    I have no idea about what server is being used with this hosting company. I can’t speak on a error for IPv4. I have no idea what that is or where to even look to find out.

    I hope the report helps!

    Thank you,

    Kate

    Plugin Support wfpeter

    (@wfpeter)

    Hi @kateharris, thanks for sending that over.

    The general connectivity seems fine, but you are on FPM/FastCGI. You could use FTP or a file manager to access your .htaccess file in the root directory and make sure this code is input:

    # Wordfence WAF
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>
    </Files>
    # END Wordfence WAF

    Then also, in the same directory, add/edit your .user.ini file with this code:

    ; Wordfence WAF
    auto_prepend_file = '/your/path/to/wordfence-waf.php'
    ; END Wordfence WAF

    Make sure to change the path above with the one where wordfence-waf.php actually resides. It’ll be in the root, but just make sure the rest of the path is correct. Your initial issue does at first glance seem to resemble a problem we once saw where a host had denied PHP configuration to its customers, therefore requiring Wordfence to permanently run in Basic Protection. However, please try the above first and possibly consult your host’s support as to whether you have the ability to modify your .htaccess and .user.ini files in this way before reporting back to us.

    Thanks again,
    Peter.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Installation Failed’ is closed to new replies.