• Hi,

    I’m having problems installing the NinjaFirewall

    This is the output from ninjacheck.php

    I’ve tried each individual option “Apache + PHP7 module” etc but it still says “Error: the firewall is not loaded.”

    I do also get this meesage “NinjaFirewall detected that the PHP auto_prepend_file directive seems to be used by another application: /var/www/html/wordfence-waf.php. Because NinjaFirewall needs to use that directive, it will override your current one.”

    NinjaFirewall (WP edition) troubleshooter
    HTTP server 	: 	Apache/2.4.18 (Ubuntu)
    PHP version 	: 	7.0.7-4+deb.sury.org~xenial+1
    PHP SAPI 	: 	APACHE2HANDLER
    
    auto_prepend_file 	: 	/var/www/html/wordfence-waf.php
    NinjaFirewall detection 	: 	NinjaFirewall is not loaded	
    
    Loaded INI file 	: 	none
    user_ini.filename 	: 	.user.ini
    user_ini.cache_ttl 	: 	300 seconds
    User PHP INI 	: 	none found
    
    DOCUMENT_ROOT 	: 	/var/www/html
    wp-config.php 	: 	found in /var/www/html/wp-config.php
    ABSPATH 	: 	/var/www/html/
    WordPress version 	: 	4.5.2
    WP_CONTENT_DIR 	: 	/var/www/html/wp-content
    Plugins directory 	: 	/var/www/html/wp-content/plugins
    User Role 	: 	Administrator
Viewing 1 replies (of 1 total)
  • Thread Starter romprod

    (@romprod)

    Never mind, I’ve figured it out, the following was loaded into a .htaccess file.

    # Wordfence WAF
    <IfModule mod_php7.c>
           php_value auto_prepend_file '/var/www/html/wordfence-waf.php'
    </IfModule>
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
           Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
           Order deny,allow
           Deny from all
    </IfModule>
    </Files>
    
    <IfModule mod_env.c>
       SetEnv PHPRC /etc/php/7.0/apache2/php.ini
    </IfModule>
    
    # END Wordfence WAF
Viewing 1 replies (of 1 total)

The topic ‘NinjaFirewall (WP Edition)’ is closed to new replies.