Hi @mrtvykenny,
It would depend on if your host is running three web services or not.
If your host is only using one instance of apache/nginx/etc, you only need to edit php.ini and point auto_prepend_file to any wordfence-waf.php (located in any wp install).
To do this:
1. Edit php.ini
2. Place auto_prepend_file = "/path/to/domains/domain.com/wordfence-waf.php" on a new line
3. Save php.ini
Remember to change /path/to/
—
If your host is running three instances, you’ll need to optimize the firewall for all three websites on your server. This means having .htaccess or .user.ini exist in all three subfolders pointing to different versions of wordfence-waf.php.
Dave
ok, so I tried it.
it is one php instance for all sites.
I set it up and all websites work, however on the 2 that have different path I’m getting:
Existing WAF Installation Detected: You are currently running the Wordfence Web Application Firewall from another WordPress installation. Please configure the firewall to run correctly on this site.
this is correct description of the situation, however does it work and it is just a warning, or it doesn’t work properly?
thank you
In my opinion you should just optimize all 3 separately. This isn’t functionality that was intended and we can’t support custom solutions.
Tim
I understand, however it’s not possible at this configuration. It is one setting per hosting account and my predecessor has made this installation structure, I would have to order another 2 hosting accounts and move the sites… It seems to be working fine somehow.. (I’m not sure how to check it out properly though..)
But I’m aware of this and will pay close attention if any problem would show up.