• Resolved june01

    (@june01)


    I can’t optimize the firewall because of this error:

    We were unable to make changes to the .user.ini file. It’s possible WordPress cannot write to the .user.ini file because of file permissions. Please verify the permissions are correct and retry the installation.

    • This topic was modified 4 years, 4 months ago by june01.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support wfphil

    (@wfphil)

    Hi @june01

    Please ask you hosting provider to check file permissions as they appear to be too strict and then try again once they fix any incorrect permissions.

    Alternatively, make sure that that a wordfence-waf.php file exits in the root directory of WordPress.

    If the wordfence-waf.php file exists then open the Tools >> Diagnostics page.

    Expand the Wordfence Firewall Current WAF configuration section.

    On the wordfence-waf.php path line copy the file path like the example below:

    /absolute/file/path/to/wordfence-waf.php

    Add this code below to your .user.ini file with the file path you found:

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

    You may have to wait up to five minutes for the firewall to optimize.

    Note that the .user.ini file will also be in the root directory of WordPress.

    Thread Starter june01

    (@june01)

    Thanks I’ve followed your steps and edited the user.ini file and the extended protection option turned on by itself. Is now everything working fine?

    Plugin Support wfphil

    (@wfphil)

    Hi @june01

    If the Protection Level in the Basic Firewall Options section on the All Options page says Extended Protection then the firewall has been successfully optimized.

    Thread Starter june01

    (@june01)

    Just checked it and it says “Extended Protection” thank you very much for your help.
    I also have another problem. The scan does not work and in the diagnostic tab all fields related to cURL are marked as FAIL. How can I solve this?

    • This reply was modified 4 years, 4 months ago by june01.
    Plugin Support wfphil

    (@wfphil)

    Hi @june01

    Thank you for the update.

    This likely means that the cURL extension for PHP is not installed on the server. Please ask you hosting provider to install it if it is not present and the scans should then run.

    Thread Starter june01

    (@june01)

    Can I solve this problem myself using cPanel?

    Plugin Support wfphil

    (@wfphil)

    Hi @june01

    If the cURL extension for PHP is not installed on the server then your hosting provider can fix this for you by installing it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Unable to make changes to the .user.ini file’ is closed to new replies.