• Resolved nam1962

    (@nam1962)


    Hi,
    I just installed a new site & its blog on WP :
    thesite.com
    thesite.com/blog

    Installed ninjafirewall full WAF on both

    I notice I have this on thesite.com .htaccess :

    # BEGIN NinjaFirewall
    php_value auto_prepend_file /home/mysuser/public_html/wp-content/nfwlog/ninjafirewall.php
    # END NinjaFirewall

    + a .user.ini with the due auto prepend

    But !

    No lines refering to ninjafirewall.php in thesite.com/blog .htaccess
    No .user.ini in thesite.com/blog/

    Both installs tell me they’re functional.

    Is this logical ?

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

    (@nintechnet)

    Hi,

    Why do you have a PHP INI and a .htaccess with the same auto_prepend_file? Are you running LiteSpeed HTTP server?

    You should also have a PHP INI or .htaccess in the “thesite.com/blog/” as well.

    Can you run the “wp-check.php” script in both folders and make sure that it shows that the auto_prepend_file directive does not point to the same PHP script?

    Thread Starter nam1962

    (@nam1962)

    Hi,
    Yes it’s a Litespeed server.
    The wp-check showed it pointed to the main site script.
    Thus I removed ninjafirewall from both sites, deleted the .user.ini and restarted ninjafirewall install bottom up (blog first, then main site).
    It’s ok now.

    Might be due to the fact that My hoster changed my server & that I fiddled with the blog install.

    Even if I knew it, I was trapped again by this requirement of yours to strictly install bottom up when several sites on the same server ! 😉

    (Did you check my tuto’s translation by the way ?)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Same install different setup’ is closed to new replies.