Title: php problem
Last modified: August 31, 2016

---

# php problem

 *  Resolved [karmamack](https://wordpress.org/support/users/karmamack/)
 * (@karmamack)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-problem-12/)
 * Hi, I am having major problems with my websites after migrating to new host. 
   Getting 500 Internal server errors. My host has said this:
 * <<<Your .htaccess files are compatible only with older outdated versions of PHP
   and SuPHP, apparently run by your old host. Please edit your .htaccess files 
   and remove any php_value directives, as they are incompatible with SuPHP and 
   new PHP versions.
 * We have found that these invalid directives were placed there by the NinjaFirewall
   WordPress plugin>>>
 * So does that mean I cannot run Ninja Firewall at all on my current host? My Ninja
   Firewall is the latest version – I always update it.
 * [https://wordpress.org/plugins/ninjafirewall/](https://wordpress.org/plugins/ninjafirewall/)

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

 *  Thread Starter [karmamack](https://wordpress.org/support/users/karmamack/)
 * (@karmamack)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-problem-12/#post-7288609)
 * The host did this: <<<I ran a shell command which disabled all the invalid directives
   in your .htaccess files and your sites are now working.>>>
 * So now I get “NinjaFirewall fatal error: Unable to communicate with the firewall.
   Please check your PHP INI settings. Review your installation, your site is not
   protected.”
 * What do I do please? 🙁
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-problem-12/#post-7288673)
 * Hi,
 * Follow the documentation if you want to migrate your site: [http://nintechnet.com/ninjafirewall/wp-edition/help/?faq](http://nintechnet.com/ninjafirewall/wp-edition/help/?faq)
 * > Can I migrate my site(s) with NinjaFirewall installed?
   >  In order to migrate
   > your site, you must follow those steps: 1. Export your NinjaFirewall configuration
   > from the “Firewall Options” menu. 2. With your FTP client, download its log
   > and cache folder located in /wp-content/nfwlog/. 3. Uninstall NinjaFirewall.
   > 4. Migrate your site. 5. Install NinjaFirewall. 6. Reimport its configuration
   > from the “Firewall Options” menu. 7. Upload its /wp-content/nfwlog/ folder 
   > to your new site (unless you already copied it during the blog migration).
   > _Note that “File Check” configuration cannot be exported/imported.exported/
   > imported._
 *  Thread Starter [karmamack](https://wordpress.org/support/users/karmamack/)
 * (@karmamack)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-problem-12/#post-7288676)
 * Thank you! Bugger. Is it possible to repair the sites, as they have already been
   migrated by my host? Or will I have to go back and start from scratch?
 * Or … I have WPTwin backups of all the sites, from immediately prior to migrating.
   These could be installed over top of current WP installations?
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-problem-12/#post-7288681)
 * Simply remove the NinjaFirewall directives from your .htaccess (but it looks 
   like your host did that, didn’t he?), and re-install NinjaFirewall.
 * If you have many sites, re-install NinjaFirewall on one site, export its configuration,
   re-install on other site and re-import the configuration so that you won’t have
   to configure each one separately.
 *  Thread Starter [karmamack](https://wordpress.org/support/users/karmamack/)
 * (@karmamack)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-problem-12/#post-7288688)
 * Thank you so much, and I am sorry for being such a Dork!

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

The topic ‘php problem’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [karmamack](https://wordpress.org/support/users/karmamack/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/php-problem-12/#post-7288688)
 * Status: resolved