Title: Question about upgrading PHP environment
Last modified: February 23, 2019

---

# Question about upgrading PHP environment

 *  Resolved [tomdkat](https://wordpress.org/support/users/tomdkat/)
 * (@tomdkat)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/question-about-upgrading-php-environment/)
 * Hi! So, I upgraded one of my WordPress sites to WordPress 5.1 and after the upgrade,
   WordPress informed me I was using an “insecure” version of PHP. I believe PHP
   5.4.x was installed in my shared hosting account at Hostgator. So, I upgraded
   PHP from 5.4.x to 7.0. After doing so, NinjaFirewall refused to load and I was
   prompted to re-configure it. I tried setting up the Full WAF and NinjaFirewall
   can’t load. It works fine in WordPress WAF mode.
 * So, I have two questions:
 * 1) What’s the best way to change the PHP environment when NinjaFirewall is already
   installed?
 * 2) How can I change NinjaFirewall from WordPress WAF to Full WAF?
 * Thanks!

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/question-about-upgrading-php-environment/#post-11241458)
 * It may be just a PHP INI issue as described here: [Upgrading to PHP 7 with NinjaFirewall installed](https://blog.nintechnet.com/upgrading-to-php-7-with-ninjafirewall-installed/).
 * You cannot switch from one mode to another. You need to export your configuration,
   reinstall NF in the mode you want and reimport its configuration.
 *  Thread Starter [tomdkat](https://wordpress.org/support/users/tomdkat/)
 * (@tomdkat)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/question-about-upgrading-php-environment/#post-11242238)
 * Thanks! I’ll check that out!
 *  Thread Starter [tomdkat](https://wordpress.org/support/users/tomdkat/)
 * (@tomdkat)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/question-about-upgrading-php-environment/#post-11242314)
 * Thanks again for this great info! The issue turned out I needed to use .user.
   ini for the PHP7 environment. After getting NinjaFirewall setup with .user.ini,
   I’m back up and running in Full WAF mode!
 * Thanks!

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

The topic ‘Question about upgrading PHP environment’ 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

 * [PHP 7.0](https://wordpress.org/support/topic-tag/php-7-0/)
 * [WordPress 5.1](https://wordpress.org/support/topic-tag/wordpress-5-1/)

 * 3 replies
 * 2 participants
 * Last reply from: [tomdkat](https://wordpress.org/support/users/tomdkat/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/question-about-upgrading-php-environment/#post-11242314)
 * Status: resolved