• Resolved lownri

    (@lownri)


    Hello, I’m trying to activate the Full Waf mode. Unfortunately I always get the following error message:

    “Oops! Full WAF mode is not enabled yet.
    Because PHP caches INI files, you may need to wait up to five minutes before the changes are reloaded by the PHP interpreter. Please wait for 209 seconds before trying again (you can navigate away from this page and come back in a few minutes).”

    After the waiting period I am back to the beginning – only the WAF mode.

    I have used “Apache + CGI/FastCGI or PHP-FPM”.

    The NinjaCheck says the following:
    NinjaFirewall (WP edition) troubleshooter
    HTTP server : Apache
    PHP version : 7.3.17-nmm1
    PHP SAPI : FPM-FCGI

    auto_prepend_file : …../wp-content/nfwlog/ninja firewall.php
    Loader’s path to firewall : …../wp-content/plugins/ninja firewall/lib/firewall.php
    wp-config.php : found in …../advertisingplus.de/wp-config.php
    NinjaFirewall detection : NinjaFirewall WP Edition is loaded (WordPress WAF mode)

    Loaded INI file : /etc/php73/fpm/php.ini
    user_ini.filename : .user.ini
    user_ini.cache_ttl : 300 seconds
    User PHP INI : .user.ini found –

    User Role : Administrator
    User Capabilities : manage_options: OK – unfiltered_html: OK
    Log dir permissions : …/wp-content/nfwlog dir is writable
    Cache dir permissions : …/wp-content/nfwlog/cache dir is writable
    NinjaFirewall (WP edition) troubleshooter v1.9.1

    What can I do to activate the Full WAF Mode? Thanks for your help!

    The page I need help with: [log in to see the link]

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

    (@nintechnet)

    PHP-FPM is the right choice, and it shows that the auto_prepend_file directive is properly setup.
    There’s a space between “ninja” and “firewall.php” in the auto_prepend_file” and “Loader’s path to firewall” lines. Is that a copy/paste error?

    Can you ask your host if you can use the auto_prepend_file directive in a php.ini or .user.ini file?

    Thread Starter lownri

    (@lownri)

    Hello, ninja team,

    my hoster says I can’t access either one. But I can write it into the htaccess file.

    Now I’m not sure. What do I enter at which position?

    Plugin Author nintechnet

    (@nintechnet)

    That’s a bit odd, but if they told you that you can enter the directive to the .htaccess, then click on the “Full WAF” installer, and in the “Select your HTTP server and your PHP server API (SAPI)” menu, select “Apache + PHP7 module”. NinjaFirewall will add the directive to the .htaccess.

    Thread Starter lownri

    (@lownri)

    Thanks, it all worked out now.

    I had to uninstall and reinstall the plugin. Then the “Apache+PHP7 module” – installation mode worked.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Full WAF mode is not enabled – PHP caches INI files’ is closed to new replies.