PHP 7
-
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.
-
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.
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 GuideWP 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.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!
No problem π
If you see any issue with PHP 7, report it here. We haven’t found any yet.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.”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.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.
phpinfo gives php.ini file as that being used.
No errors in the server logs.
I am lost.
Did check our blog article? Troubleshoot NinjaFirewall installation problems.
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 foundauto_prepend_file : none
NinjaFirewall detection : NinjaFirewall is not loadedini configs are all the same as they were before upgrading. I checked.
Hey this would have changed in seven yes?
“<IfModule mod_php5.c>”
PHP SAPI : APACHE2HANDLER
You should use .htaccess, not PHP INI.
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.
Ensure that the
AllowOverridedirective is set toAllinstead ofNonein your Apache config, otherwise it will ignore your .htaccess (the latest Apache 2.4 sets it toNone).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.
The topic ‘PHP 7’ is closed to new replies.