Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author nintechnet

    (@nintechnet)

    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

    (@bveinotte)

    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

    (@bveinotte)

    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

    (@nintechnet)

    No problem ??
    If you see any issue with PHP 7, report it here. We haven’t found any yet.

    Thread Starter Barry Veinotte

    (@bveinotte)

    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

    (@nintechnet)

    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

    (@bveinotte)

    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

    (@bveinotte)

    phpinfo gives php.ini file as that being used.

    No errors in the server logs.

    I am lost.

    Plugin Author nintechnet

    (@nintechnet)

    Thread Starter Barry Veinotte

    (@bveinotte)

    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

    (@bveinotte)

    Hey this would have changed in seven yes?

    “<IfModule mod_php5.c>”

    Plugin Author nintechnet

    (@nintechnet)

    PHP SAPI : APACHE2HANDLER

    You should use .htaccess, not PHP INI.

    Plugin Author nintechnet

    (@nintechnet)

    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

    (@nintechnet)

    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

    (@bveinotte)

    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)
  • The topic ‘PHP 7’ is closed to new replies.