Title: Same install different setup
Last modified: March 3, 2017

---

# Same install different setup

 *  Resolved [nam1962](https://wordpress.org/support/users/nam1962/)
 * (@nam1962)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/same-install-different-setup/)
 * 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](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/same-install-different-setup/#post-8870592)
 * 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](https://nintechnet.com/share/wp-check.txt)” 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](https://wordpress.org/support/users/nam1962/)
 * (@nam1962)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/same-install-different-setup/#post-8873256)
 * 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.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [user.ini](https://wordpress.org/support/topic-tag/user-ini/)

 * 2 replies
 * 2 participants
 * Last reply from: [nam1962](https://wordpress.org/support/users/nam1962/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/same-install-different-setup/#post-8873256)
 * Status: resolved