Title: PHP 7
Last modified: August 30, 2016

---

# PHP 7

 *  Resolved [Barry Veinotte](https://wordpress.org/support/users/bveinotte/)
 * (@bveinotte)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/)
 * Help! NF is not ready for PHP 7 apparently. I failed to check first and now all
   my sites have no firewall. Should I install something else before I get into 
   trouble or will there be a fix?
 * I jumped into 7 too early it seems.
 * [https://wordpress.org/plugins/ninjafirewall/](https://wordpress.org/plugins/ninjafirewall/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/php-7-8/page/2/?output_format=md) [→](https://wordpress.org/support/topic/php-7-8/page/2/?output_format=md)

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814042)
 * Hi
 * Can you clarify which problem or error do you get? Also, which PHP SAPI are you
   running (CGI/FCGI, PHP-FPM, mod_php5 etc)?
 * So far, we, as well as several customers, are running it on PHP 7 without having
   issues.
 *  Thread Starter [Barry Veinotte](https://wordpress.org/support/users/bveinotte/)
 * (@bveinotte)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814090)
 * It not acts like a new install, and will not pass the setup area where you select
   the SAPI – It was Apache + PHP5
 * I am heading to the server logs now to see if there are any items there but on
   every install when I click on settings it does the same thing – acts like a new
   install.
 * This is on CentOS 7 with the new PHP installed as yum replace:
 * yum replace php-common –replace-with=php70w-common
 * I also got a whole lot of emails titled:
    [NinjaFirewall] Quick Start, FAQ & 
   Troubleshooting Guide
 * WP Dashboard message:
    NinjaFirewall fatal error: Unable to communicate with 
   the firewall. Please check your PHP INI settings. Review your installation, your
   site is not protected.
 *  Thread Starter [Barry Veinotte](https://wordpress.org/support/users/bveinotte/)
 * (@bveinotte)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814092)
 * I think I have the answer. The new install changed the permissions on the php
   sessions directory. I am setting up one install now and it gets past the SAPI
   screen so should be all good.
 * Not a Ninja Firewall issue after all. If I could delete this thread I would 🙂
 * Sorry folks!
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814094)
 * No problem 😉
    If you see any issue with PHP 7, report it here. We haven’t found
   any yet.
 *  Thread Starter [Barry Veinotte](https://wordpress.org/support/users/bveinotte/)
 * (@bveinotte)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814097)
 * Ahh I am going to reinstall from scratch – it still doesn’t load.
 * “Error: the firewall is not loaded.
    Suggestions:
 * You selected Apache + PHP5 module as your HTTP server and PHP SAPI. Maybe your
   HTTP server is Apache + CGI/FastCGI?
    You can click the “Go Back” button and 
   try to select another HTTP server type.”
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814102)
 * Your new PHP install may use a different PNP INI file?
    If you are using a php.
   ini, rename it to **.user.ini** instead. Or vice-versa. After the change, it 
   may take up to 5 minutes before PHP reloads the new INI. You can restart Apache
   to force it to reload it immediately.
 *  Thread Starter [Barry Veinotte](https://wordpress.org/support/users/bveinotte/)
 * (@bveinotte)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814110)
 * No luck with that either… I am going to uninstall one and reinstall from scratch.
   I just don’t know what else to try at this point and fear I will have hacked 
   sites before I get it figured out.
 *  Thread Starter [Barry Veinotte](https://wordpress.org/support/users/bveinotte/)
 * (@bveinotte)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814112)
 * phpinfo gives php.ini file as that being used.
 * No errors in the server logs.
 * I am lost.
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814114)
 * Did check our blog article? [Troubleshoot NinjaFirewall installation problems](http://blog.nintechnet.com/troubleshoot-ninjafirewall-installation-problems/).
 *  Thread Starter [Barry Veinotte](https://wordpress.org/support/users/bveinotte/)
 * (@bveinotte)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814120)
 * Yes but no luck. I ran test script as well:
 * HTTP server : Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/7.0.0
    PHP version:
   7.0.0 PHP SAPI : APACHE2HANDLER Loaded INI file : /etc/php.ini user_ini.filename:.
   user.ini user_ini.cache_ttl : 300 seconds User PHP INI : none found
 * auto_prepend_file : none
    NinjaFirewall detection : NinjaFirewall is not loaded
 * ini configs are all the same as they were before upgrading. I checked.
 *  Thread Starter [Barry Veinotte](https://wordpress.org/support/users/bveinotte/)
 * (@bveinotte)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814121)
 * Hey this would have changed in seven yes?
 * “<IfModule mod_php5.c>”
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814122)
 * > PHP SAPI : APACHE2HANDLER
 * You should use .htaccess, not PHP INI.
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814124)
 * I am not sure if there was a change about that as this is managed by Apache, 
   but you can try to remove the <IfModule> tags if you want.
 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814126)
 * Ensure that the `AllowOverride` directive is set to `All` instead of `None` in
   your Apache config, otherwise it will ignore your .htaccess (the latest Apache
   2.4 sets it to `None`).
 *  Thread Starter [Barry Veinotte](https://wordpress.org/support/users/bveinotte/)
 * (@bveinotte)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/#post-6814128)
 * Yes that is what I select – apache PHP5
 * Ok I got one working. I deleted old .htacces.ninja files and that didn’t help.
   But then when I removed the #<IfModule mod_php5.c> tags it seems to have fixed
   it.
 * I am confused as hell, but it seems to have worked. I will have to change all
   the htaccess files manually I guess without touching the firewall settings and
   maybe that will be all I need to do.
 * I sure hope so anyway. I love the program and use it exclusively… would hate 
   to have to stop using it.
 * Thanks for your help. If anything else comes up I will let you know.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/php-7-8/page/2/?output_format=md) [→](https://wordpress.org/support/topic/php-7-8/page/2/?output_format=md)

The topic ‘PHP 7’ 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](https://wordpress.org/support/topic-tag/php-7/)

 * 18 replies
 * 2 participants
 * Last reply from: [Barry Veinotte](https://wordpress.org/support/users/bveinotte/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/php-7-8/page/2/#post-6814134)
 * Status: resolved