• Resolved Grackle Design

    (@mikedark)


    I had NF running on my site on a shared server with Full WAF. I had the site migrated to a Cloud Hosting account on the same web host. AFAIK it’s the same basic configuration accept it uses MySQL now instead of MariaDB. Running LiteSpeed V8.0.1

    HTTP server 	: 	Apache
    PHP version 	: 	7.4.33
    PHP SAPI 	: 	LITESPEED 

    I was having some issues activating Full WAF after migration. I thought it was curious that it wasn’t still activated. I tried deleting everything and running a fresh install of the plugin, and still getting the same issue.

    I ran the wp-check file and it shows ‘auto_prepend_file:none’

    However it does show this in the .htaccess file:

    # BEGIN NinjaFirewall
    <IfModule lsapi_module>
       php_value auto_prepend_file "/path/to/file/wp-content/nfwlog/ninjafirewall.php"
    </IfModule>
    # END NinjaFirewall

    The user.ini file is blank. I tried manually adding the above prepend to user.ini but that didn’t make a difference.

    Also the wp-check gives this which I didn’t see before:

    Error: missing manage_options capability – Error: missing unfiltered_html capability

    (even though I am logged in)

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

    (@nintechnet)

    May I know the name of your webhost? Some hosts require specific actions to be taken in order to use INI directives such as auto_prepend_file.

    The error about missing capabilities is weird though: are you accessing the wp-check file using the same domain (or subdomain) and protocol (http:// or https://) as the WordPress site? Otherwise, WordPress authentication cookies would not match.

    Thread Starter Grackle Design

    (@mikedark)

    Ah yeah, when I used https that error resolved.

    impreza host

    Is there a reason it would work on their shared hosting but not on their cloud hosting?

    Note, I also didn’t deactivate the plugin or anything else before the migration.

    Plugin Author nintechnet

    (@nintechnet)

    I can’t find many info about Impreza host using PHP INI with but I found this page (in German): https://de.impreza.host/so-erhohen-sie-das-php-speicherlimit-und-laden-das-dateilimit-und-die-skriptausfuhrungszeit-hoch/

    Could you ask them if and how you can use the PHP auto_prepend_file directive on their cloud hosting platform?

    Thread Starter Grackle Design

    (@mikedark)

    I can’t find many info about Impreza host using PHP INI

    Is it php.ini or user.ini? Right now there is only a user.ini file. Should there be a php.ini?

    Or is it okay being in the .htaccess file but somehow it’s not being called correctly?

    Plugin Author nintechnet

    (@nintechnet)

    By default, LiteSpeed requires that the PHP directives be added to a .htaccess.
    If that doesn’t work, try to replace in your .htaccess:

    # BEGIN NinjaFirewall
    <IfModule lsapi_module>
       php_value auto_prepend_file "/path/to/file/wp-content/nfwlog/ninjafirewall.php"
    </IfModule>
    # END NinjaFirewall

    With:

    # BEGIN NinjaFirewall
    php_value auto_prepend_file "/path/to/file/wp-content/nfwlog/ninjafirewall.php"
    # END NinjaFirewall

    If that still doesn’t work, re-run the installer, choose “Other webserver” and select “.user.ini”. If after 5 minutes, that still doesn’t work, re-run the installer and select “php.ini” (or rename the “.user.ini” to “php.ini”) and wait again 5 minutes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to activate Full WAF Mode’ is closed to new replies.