Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jasonschell

    (@jasonschell)

    Thanks for your quick help!

    Thread Starter jasonschell

    (@jasonschell)

    As LiteSpeed is using the Apache Vhosts Configuration files (because using Plesk, LiteSpeed is only available with Apache together) I entered

    <IfModule Litespeed>
       php_value auto_prepend_file "/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content/nfwlog/ninjafirewall.php"
    </IfModule>

    into the Additional Apache-directives settings in Plesk (as LiteSpeed is taking that directive from Apache).
    Now NinjaFirewall shows me Full WAF mode, thanks for your advise!
    But is this a problem which you can fix in NinjaFirewall or are there settings in my LiteSpeed-configuration which is responsible for my non-recursive directive in .htaccess?

    • This reply was modified 5 years, 5 months ago by jasonschell.
    Thread Starter jasonschell

    (@jasonschell)

    Another strange thing:
    When I’m viewing phpinfo() directly from my server, it shows me the auto_prepend_file with NinjaFirewall.
    When I’m viewing phpinfo() from WordPress Health Check, the line auto_prepend_file is empty.

    Thread Starter jasonschell

    (@jasonschell)

    Thanks for your fast reply!
    Yes, nginx is being used as a reverse proxy with apache. I’m managing my server with Plesk and this is the initial setup.
    But when I’m with LiteSpeed (activated it again a few moments ago), nginx service is stopped and Apache is running only (with LS).

    I run the script and I’m surprised that it says, NinjaFirewall is in FullWAF-mode while viewed directly in NF-Dashboard is showing me WP-WAF mode only:

    At first without activated the FullWAF-mode:

    NinjaFirewall (WP edition) troubleshooter
    
    HTTP server	:	LiteSpeed
    PHP version	:	7.4.13
    PHP SAPI	:	LITESPEED
     	 	 
    auto_prepend_file	:	none
    wp-config.php	:	found in /var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-config.php
    NinjaFirewall detection	:	NinjaFirewall WP Edition is loaded (WordPress WAF mode)
     	 	 
    Loaded INI file	:	/var/www/vhosts/system/webdesign-schell.de/etc/php.ini
    user_ini.filename	:	.user.ini
    user_ini.cache_ttl	:	300 seconds
    User PHP INI	:	none found
     	 	 
    DOCUMENT_ROOT	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de
    ABSPATH	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/
    WordPress version	:	5.6
    WP_CONTENT_DIR	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content
    Plugins directory	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content/plugins
    User Role	:	Unknown role (or user not logged in)
    User Capabilities	:	Error: missing manage_options capability - Error: missing unfiltered_html capability
    Make sure you are logged in to WordPress before running this script.
    Log dir permissions	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content/nfwlog dir is writable
    Cache dir permissions	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content/nfwlog/cache dir is writable
    NinjaFirewall (WP edition) troubleshooter v1.9.3

    Now I activate the FullWAF-mode with the recommended LiteSpeed-option:

    NinjaFirewall (WP edition) troubleshooter
    
    HTTP server	:	LiteSpeed
    PHP version	:	7.4.13
    PHP SAPI	:	LITESPEED
     	 	 
    auto_prepend_file	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content/nfwlog/ninjafirewall.php
    Loader's path to firewall	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content/plugins/ninjafirewall/lib/firewall.php
    wp-config.php	:	found in /var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-config.php
    NinjaFirewall detection	:	NinjaFirewall WP Edition is loaded (Full WAF mode)
     	 	 
    Loaded INI file	:	/var/www/vhosts/system/webdesign-schell.de/etc/php.ini
    user_ini.filename	:	.user.ini
    user_ini.cache_ttl	:	300 seconds
    User PHP INI	:	none found
     	 	 
    DOCUMENT_ROOT	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de
    ABSPATH	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/
    WordPress version	:	5.6
    WP_CONTENT_DIR	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content
    Plugins directory	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content/plugins
    User Role	:	Unknown role (or user not logged in)
    User Capabilities	:	Error: missing manage_options capability - Error: missing unfiltered_html capability
    Make sure you are logged in to WordPress before running this script.
    Log dir permissions	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content/nfwlog dir is writable
    Cache dir permissions	:	/var/www/vhosts/itservices-schell.de/webdesign-schell.de/wp-content/nfwlog/cache dir is writable
    NinjaFirewall (WP edition) troubleshooter v1.9.3
Viewing 4 replies - 1 through 4 (of 4 total)