• Resolved emtucker

    (@emtucker)


    Whenever I install NinjaFirewall my site goes down with an “Internal Server Error” until the NinjaFirewall code is removed from my .htaccess file.

    This is under my initial system configuration check:
    “Your server seems to be running PHP as an Apache module (APACHE2HANDLER). Therefore, we will not need any PHP INI file.”

    Any suggestions on what I might try to successfully install?

    https://wordpress.org/plugins/ninjafirewall/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author nintechnet

    (@nintechnet)

    Hi,

    The installer adds this code to your .htaccess:

    # BEGIN NinjaFirewall
    <IfModule mod_php5.c>
    php_value auto_prepend_file .........
    </IfModule>
    # END NinjaFirewall

    Can you try to remove the opening and closing IfModule directives and see if it helps?

    # BEGIN NinjaFirewall
    php_value auto_prepend_file .........
    # END NinjaFirewall

    Thread Starter emtucker

    (@emtucker)

    Thanks for the response! Unfortunately it didn’t work though.

    Plugin Author nintechnet

    (@nintechnet)

    Can you check your Apache error log ? It will show the reason why it returned a 500 error.

    Thread Starter emtucker

    (@emtucker)

    Here are 2 errors:

    /home/—–/public_html/.htaccess: php_value not allowed here, referer: http://www.—&#8211;.com/wp-admin/network/admin.php?page=NinjaFirewall

    /home/—–/public_html/wp-content/plugins/ninjafirewall/.htaccess: Options not allowed here, referer: http://www.—&#8211;.com/wp-admin/network/admin.php?page=NinjaFirewall&nfw_firstrun=1

    Plugin Author nintechnet

    (@nintechnet)

    If this is your own server, you would need to add those directives to your Apache virtual host configuration file:

    <Directory /path/to/your/website/folder>
       Options All
       AllowOverride All
    </Directory>

    And restart Apache after the modification.

    Thread Starter emtucker

    (@emtucker)

    That worked. Thank you!

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

The topic ‘Internal Server Error on Installation’ is closed to new replies.