• Resolved allm

    (@realblueorange)


    When in a situation where you have no control over php.ini can you get the firewall running by doing this?

    1.
    Have WF change the htaccess file AND add this:
    php_value auto_prepend_file "/path_to_file/wordfence-waf.php"
    to your htaccess.

    2.
    Check that wordfence-waf.php is in your root.

    Will this work? Or is there more that needs to be done?

    https://www.ads-software.com/plugins/wordfence/

Viewing 1 replies (of 1 total)
  • Plugin Author WFMattR

    (@wfmattr)

    Hi allm,

    It depends on how the server is configured — if your site is using Apache + mod_php, this is basically what Wordfence does during the installation. (In addition to prompting to save backup copies of files before they’re changed of course, and there are a few other .htaccess lines that help prevent issues if the server configuration is later changed.)

    Servers with other configurations like suPHP or CGI/FastCGI may also need a .user.ini or a php.ini file in , and some other changes to the .htaccess. On those servers, adding php_value to .htaccess may cause a ‘500’ error (white screen) until the line is removed.

    -Matt R

Viewing 1 replies (of 1 total)
  • The topic ‘does this work?’ is closed to new replies.