Title: Error Server 500 When Uninstall
Last modified: August 30, 2016

---

# Error Server 500 When Uninstall

 *  Resolved [ccnahub](https://wordpress.org/support/users/ccnahub/)
 * (@ccnahub)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-server-500-when-uninstall/)
 * Dear Developer, I couldn’t delete the plugin, I had to copy your plugin from 
   the backup using FTP back to the website in order to work again. It locked my
   website with Server Error 500. The plugin is deactivated, however, when I hit
   delete, it does delete, but it locks my website with error 500.
 * Please help me delete the plugin,
 * Thank you,
 * Imad Daou
 * [https://wordpress.org/plugins/ninjafirewall/](https://wordpress.org/plugins/ninjafirewall/)

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-server-500-when-uninstall/#post-6377714)
 * Hi,
 * You may still have NinjaFirewall’s instructions in your PHP INI file or .htaccess.
   Open that file in you main root directory and look for such lines and delete 
   them:
 * **PHP INI**:
 *     ```
       ; BEGIN NinjaFirewall
       auto_prepend_file = /......./firewall.php
       ; END NinjaFirewall
       ```
   
 * **.htaccess**:
 *     ```
       # BEGIN NinjaFirewall
       php_value auto_prepend_file /......./firewall.php
       # END NinjaFirewall
       ```
   
 *  Thread Starter [ccnahub](https://wordpress.org/support/users/ccnahub/)
 * (@ccnahub)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-server-500-when-uninstall/#post-6377715)
 * Here is a screen shot of the error.
 * [https://www.dropbox.com/s/u2olmy96fojay9v/2015-07-29_8-05-59.png?dl=0](https://www.dropbox.com/s/u2olmy96fojay9v/2015-07-29_8-05-59.png?dl=0)
 * Thanks.
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-server-500-when-uninstall/#post-6377720)
 * Did you check your PHP INI file if there was any NinjaFirewall instruction left?
   
   Also, you may need to restart your HTTP server (Apache/Nginx), and/or also PHP(
   e.g., if you are running PHP-FPM) to force it to reload the modified PHP INI.
 *  Thread Starter [ccnahub](https://wordpress.org/support/users/ccnahub/)
 * (@ccnahub)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/error-server-500-when-uninstall/#post-6377789)
 * Yes! The following entry was in the end of /etc/php5/fpm/php.ini
 * ; BEGIN NinjaFirewall
    ; auto_prepend_file = /var/www/clients/client1/web1/web/
   wp-content/plugins/ninjafirewall/lib/firewall.php ; END NinjaFirewall
 * I commented the entry, and restarted the following services:
 * service nginx restart
    service php5-fpm restart
 * And I was able to delete the plugin, thank you!
 * Imad Daou
    [http://www.ccnahub.com](http://www.ccnahub.com)

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

The topic ‘Error Server 500 When Uninstall’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [ccnahub](https://wordpress.org/support/users/ccnahub/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/error-server-500-when-uninstall/#post-6377789)
 * Status: resolved