Support » Plugin: NinjaFirewall (WP Edition) - Advanced Security » Multi Network Subsite: NinjaFirewall fatal error: Unable to communicate [w/ f/w]

  • Resolved supaiku


    I have a subsite on a network. NinjaFirewall works fine other subsites as well as the main network site, but a new site I recently created, it throws this error:

    NinjaFirewall fatal error: Unable to communicate with the firewall. Please check your settings. Review your installation, your site is not protected.

    Any ideas?

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



    Try to upload and run the troubleshooter script:

    Upload it in the root folder of the new site where the error occurred.

    NinjaFirewall (WP edition) troubleshooter

    HTTP server : Apache/2.4.18 (Ubuntu)
    PHP version : 7.0.18-0ubuntu0.16.04.1

    auto_prepend_file : /var/www/wproot/wp-content/nfwlog/ninjafirewall.php
    wp-config.php : found in /var/www/wproot/wp-config.php
    NinjaFirewall detection : NinjaFirewall WP Edition is loaded (Full WAF mode)

    Loaded INI file : /etc/php/7.0/apache2/php.ini
    user_ini.filename : .user.ini
    user_ini.cache_ttl : 300 seconds
    User PHP INI : none found

    DOCUMENT_ROOT : /var/www/wproot/
    ABSPATH : /var/www/wproot/ (ABSPATH != DOCUMENT_ROOT)
    WordPress version : 4.8.1
    WP_CONTENT_DIR : /var/www/wproot/wp-content
    Plugins directory : /var/www/wproot/wp-content/plugins
    User Role : Administrator
    Log dir permissions : /var/www/wproot/wp-content/nfwlog dir is writable
    Cache dir permissions : /var/www/wproot/wp-content/nfwlog/cache dir is writable
    NinjaFirewall (WP edition) troubleshooter v1.5

    That’s from the root of the Multisite, however NFW works from the multisite, and most established sites and is only not working from two new Subsites.

    Plugin Author nintechnet


    The firewall is loaded so there must be something wrong with your setup.
    I can see you are running PHP as an Apache module (mod_php). Can you check your .htaccess or Apache conf, and make sure that there is no directives such as rewrite rules that apply before the firewall auto_prepend_file directive? The firewall directive must come first.

    There are no directives before auto_prepend_file directive.

    Also, the firewall is working on other sites on the network, it’s only these two new subsites that it fails to load on.

    Turns out the issue was in my VirtualHost sites-available configuration(s). The two sites didn’t have their domain names specifically assigned as VirtualHosts.

    It also caused permalinks to not work properly, which turned me on the root of the issue (which was also causing this).
    The sites managed to find the right wordpress site through the default catch-all re-direct and Domain Mapper plugin, but didn’t work for permalinks or NinjaFirewall.


Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multi Network Subsite: NinjaFirewall fatal error: Unable to communicate [w/ f/w]’ is closed to new replies.