• Resolved acon

    (@acon)


    I know this might have been asked before but not sure I’m in the same situation so I decided to ask again.

    So I just migrated my site from a VPS server with Apache + php7.2 to another VPS with Litespeed + lsphp7.4. I deactivated NinjaFirewall before the migration.

    After the migration (I use WPvivid Pro to do his if you would like to know), I activated NinjaFirewall and tried to activate the Full WAF mode. It recommended Litespeed which was correct, but when I hit the Finish Installation button, it didn’t pass the sandbox mode and showed this error message:

    NinjaFirewall detected that the requested changes seemed to crash your blog. The website front-end returned: HTTP 503 Service Unavailable.
    Changes have been undone. You may need to modify your selection and try again.

    I tried this twice and both failed.

    I then used my terminal to log into the VPS via SSH checked the website directory and found two extra files .htaccess.ninja1656722058 and .htaccess.ninja1656722092, besides the normal .htaccess.

    I hope all the information help you to understand what’s going on here. If so, could you please give me some hint to solve this problem so I can activate the Full WAF mode on the Litespeed server?

    Thanks in advance.

    Regards,
    Acon

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter acon

    (@acon)

    Oh wait…I just tried to do it manually by adding these directives into the .htaccess and it’s now activated! Guess it was because NinjaFirewall was not allowed to modify my .htaccess file (?)

    # BEGIN NinjaFirewall
    <IfModule Litespeed>
    php_value auto_prepend_file “/usr/local/lsws/mysite.com/html/wp-content/nfwlog/ninjafirewall.php”
    </IfModule>
    # END NinjaFirewall

    So the problem is solved here. Now I just want to know if I can delete the two files .htaccess.ninjaxxxxxxxxxxx generated by the plugin? ??

    • This reply was modified 2 years, 8 months ago by acon.
    Plugin Author nintechnet

    (@nintechnet)

    You can delete them, they are backup files.

    Thread Starter acon

    (@acon)

    @nintechnet,

    Thanks for confirming this!

    Regards,

    Acon

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t activate Full WAF mode on Litespeed server’ is closed to new replies.