• Resolved bulewold

    (@bulewold)


    So, I have site running WF firewall since it first came out using fCGI handler setting.

    Over the weekend due to new fcgi packaging with EA4, i had to go with suphp for now for its handler.

    Do i need to rest firewall back to learning mode or can I leave it as is in ‘enabled and protecting’ mode and it’ll catch up on its own?

    Thank you.

    https://wordpress.org/plugins/wordfence/

Viewing 9 replies - 1 through 9 (of 9 total)
  • wfalaa

    (@wfalaa)

    Hi bulewold,
    You can keep the Firewall Status set to “Enabled and Protecting” but you will need to re-configure Wordfence Web Application Firewall again, the simplest way to do that is by deleting # Wordfence WAF section in your server .htaccess file.

    Now, you can go to (Wordfence > Firewall) and press “Click here to configure.” button on the warning message at the top of the page, make sure to choose “Apache + suPHP” option there and you should be done now.

    Let me know how it goes,
    Thanks.

    Thread Starter bulewold

    (@bulewold)

    Thanks. What’s the possible issue if I do not go through that process. Just wondering… since it is a lot of work to do it for each site… lol

    wfalaa

    (@wfalaa)

    After talking with one of the dev team, he mentioned that it may work as-is depending on how the suPHP environment is set up, but this doesn’t apply on all cases.

    I recommend re-configure Wordfence Web Application Firewall on your websites with this new PHP handler settings.

    Good luck!

    Thread Starter bulewold

    (@bulewold)

    What about change from
    PHP5.6 FCGI to PHP7 FPM (which is only way to get fcgi)

    My sites are currently on suphp and I’m trying to move them to FPM in next couple days.

    wfalaa

    (@wfalaa)

    Actually, from PHP5.6 FCGI to PHP7 FPM there shouldn’t be any change in the Wordfence WAF configuration, you need to choose “Apache + CGI/FastCGI” option in both cases.

    As you mentioned you are currently using suPHP and will move to “PHP-FPM”, then you may need to know that the only difference between these configurations is this line in .htaccess file:

    <IfModule mod_suphp.c>
    	suPHP_ConfigPath 'some_path_here'
    </IfModule>

    This will not be applied if you don’t have mod.suphp loaded, so there shouldn’t be any problem to keep the configuration as it’s in this case.

    Thanks.

    Thread Starter bulewold

    (@bulewold)

    Awesome. I had php56 fcgi before, and when upgrading to php7, fpm module was unavialable, so I’m trying to find a way to keep fcgi…

    suphp is default as a temp solution… but I wanted to ask anyway to be sure.

    Thank you!

    Thread Starter bulewold

    (@bulewold)

    Wfalaa,

    I had another question. What’s the worst that can happen if I keep it enabled based on previous fcgi setting after server changed handler to suphp?

    Would it just make firewall less effective? or has potential to lock me out or something?

    wfalaa

    (@wfalaa)

    There is no risk of being locked out here, upon discussion with developers team, keep choosing “Apache + CGI/FastCGI” as your firewall configuration and changing the PHP handler to suPHP shouldn’t affect your firewall behavior, everything will be working fine with this scenario.

    Thanks.

    Thread Starter bulewold

    (@bulewold)

    that’s good to know. Thank you!!!

    If that’s the case, I’ll keep it as suphp until build 58 is available with FPM selector. 🙂

    Thanks for your help and answering all the questions for me.

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

The topic ‘Firewall & php handler change’ is closed to new replies.