Plugin Support
WFAdam
(@wfadam)
Hello @bpier and thanks for reaching out to us!
Can you send a diagnostic report to wftest @ wordfence . com? You can find the link to do so at the top of the Wordfence Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.
I want to check your Server API and make sure everything is set correctly.
Thanks!
Thread Starter
bpier
(@bpier)
Hi WFAdam. I sent the diagnostics Report. Thanks a lot. Pierre
Plugin Support
WFAdam
(@wfadam)
Thanks for sending that diagnostic!
What is strange is your setup shouldn’t even be using a .user.ini file for anything. If you browse to your .user.ini file using FTP or a file manager, what sort of code exists inside of it? If any?
Since your Server API is actually Litespeed, you will want to add this code to your htaccess file, but make sure to adjust the file path to point at your wordfence-waf.php:
# Wordfence WAF
<IfModule LiteSpeed>
php_value auto_prepend_file '/path/to/waf/wordfence-waf.php'
</IfModule>
# END Wordfence WAF
This should optimize your firewall. Let me know if this helps!
Thanks!
Thread Starter
bpier
(@bpier)
Hi WPAdam. This .user.ini was created by wordfence, during installation. This file contains this code (I replaced my real domain name with domain generic name)
; Wordfence WAF
auto_prepend_file = '/home/mydomain/public_html/wordfence-waf.php'
; END Wordfence WAF
I added your code in my .htaccess file, (using my domain name). I will let you informed
Best regards
Pierre
-
This reply was modified 5 years, 1 month ago by
bpier.
-
This reply was modified 5 years, 1 month ago by
bpier.
-
This reply was modified 5 years, 1 month ago by
bpier.
Plugin Support
WFAdam
(@wfadam)
It can be created if the incorrect Server API is selected during the Optimization wizard. I recommend removing the .user.ini file(always make backups) and then use the correct code in the htaccess file:
# Wordfence WAF
<IfModule LiteSpeed>
php_value auto_prepend_file '/home/mydomain/public_html/wordfence-waf.php'
</IfModule>
# END Wordfence WAF
Just make sure the path to the wordfence-waf.php is correct.
Thanks again!
Thread Starter
bpier
(@bpier)
OK Adam. File .user.ini renamed in .user_ini.bkp & code integrated in .htaccess
I will keep you informed. Il will wait for 2 or 3 days before. Thanks. Pierre
-
This reply was modified 5 years, 1 month ago by
bpier.
-
This reply was modified 5 years, 1 month ago by
bpier.
Plugin Support
WFAdam
(@wfadam)
Great news!
Let us know if you need anything else!
Thanks again!
Hi there, I’m having the same issue. I will go ahead and apply the fix as mentioned, but how do I know what my Server API is? Thanks!