Title: Internal Server Error on Installation
Last modified: August 22, 2016

---

# Internal Server Error on Installation

 *  Resolved [emtucker](https://wordpress.org/support/users/emtucker/)
 * (@emtucker)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/internal-server-error-on-installation/)
 * 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/](https://wordpress.org/plugins/ninjafirewall/)

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/internal-server-error-on-installation/#post-5305202)
 * 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](https://wordpress.org/support/users/emtucker/)
 * (@emtucker)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/internal-server-error-on-installation/#post-5305207)
 * Thanks for the response! Unfortunately it didn’t work though.
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/internal-server-error-on-installation/#post-5305212)
 * Can you check your Apache error log ? It will show the reason why it returned
   a 500 error.
 *  Thread Starter [emtucker](https://wordpress.org/support/users/emtucker/)
 * (@emtucker)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/internal-server-error-on-installation/#post-5305252)
 * Here are 2 errors:
 * /home/—–/public_html/.htaccess: php_value not allowed here, referer: [http://www.—&#8211](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](http://www.—&#8211);.com/wp-admin/
   network/admin.php?page=NinjaFirewall&nfw_firstrun=1
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/internal-server-error-on-installation/#post-5305256)
 * 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](https://wordpress.org/support/users/emtucker/)
 * (@emtucker)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/internal-server-error-on-installation/#post-5305397)
 * 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.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

## Tags

 * ["internal server error"](https://wordpress.org/support/topic-tag/internal-server-error/)

 * 6 replies
 * 2 participants
 * Last reply from: [emtucker](https://wordpress.org/support/users/emtucker/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/internal-server-error-on-installation/#post-5305397)
 * Status: resolved