• Resolved mor3311

    (@mor3311)


    Hello,
    Activating wordfence makes my site reponse with internal server error 500.
    Please help me understand how to fix that issue because right now only having an empty .httaccess file helps, and of course I don’t want it to be that way.

    Thanks, Mor.

    • This topic was modified 2 years, 11 months ago by mor3311.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support wfphil

    (@wfphil)

    Hi @mor3311

    I would like to have a look at your Wordfence diagnostics report. Please go to the top of the “Diagnostics” tab on the Wordfence “Tools” page. There will be a “SEND REPORT BY EMAIL” button to send the diagnostics report. Enter wftest [at] wordfence [dot] com as the email and mor3311 as the forum username please.

    Once you have emailed me the diagnostics report can you reply here to let me know that it has been sent. This is important in the unlikely event that your installation of WordPress is having an issue with sending mail.

    Thread Starter mor3311

    (@mor3311)

    Hi Phil,
    I sent the email as you requested.
    Thank you!
    Mor

    Plugin Support wfphil

    (@wfphil)

    Hi @mor3311

    Thank you for the update.

    At what precise point are you seeing a 500 Internal Server response status code and where are you seeing it?

    Thread Starter mor3311

    (@mor3311)

    Hi,
    Right after clicking the “configure wizard”.
    Right now the plugin is activated but not configured.
    The whole site crashes and I see this error only.

    Mor

    • This reply was modified 2 years, 11 months ago by mor3311.
    Plugin Support wfphil

    (@wfphil)

    Hi mor3311

    Thank you for the update.

    First check that a wordfence-waf.php file exists in the html directory.

    In your main .htaccess file located in the html directory please add this block of code:

    # Wordfence WAF
    <IfModule mod_php7.c>
    php_value auto_prepend_file '/var/www/html/wordfence-waf.php'
    </IfModule>
    
    <IfModule mod_php.c>
    php_value auto_prepend_file '/var/www/html/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF

    Let me know if the firewall is now optimized.

    Thread Starter mor3311

    (@mor3311)

    Hi Phil,
    It is working now!

    Can you please explain what those code block means? so I will understand what was lacking

    Thanks a lot!
    Mor

    Plugin Support wfphil

    (@wfphil)

    Hi @mor3311

    Thank you for the good news.

    For the Wordfence firewall to operate in Extended Protection mode then the Wordfence firewall needs to be processed before any other file in your WordPress file system.

    We achieve that by using the auto_prepend_file PHP directive in the .htaccess server configuration file (based on the PHP handler that your server is using) to load the wordfence-waf.php file first.

    Thread Starter mor3311

    (@mor3311)

    I understand now – great!
    Thank you very much!
    Mor

    Plugin Support wfphil

    (@wfphil)

    Hi @mor3311

    You’re welcome!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Unable to set wordfence on google cloud vm’ is closed to new replies.