Plugin Contributor
wfmatt
(@wfmatt)
Hi tbenoit,
We haven’t tested the Firewall installation using with CloudLinux and mod_lsapi, but I’ve added it to our list of environments to test for a future release. Based on it’s documentation it looks like mod_lsapi supports the php_value directive which you should be able to include in your .htaccess if you’d like to attempt to install the Firewall manually.
You can try adding the below code with the path shown in the ‘Alternate method’ section of the Firewall installation page to your .htaccess file:
<IfModule lsapi_module>
php_value auto_prepend_file '/path/to/wordfence-waf.php'
</IfModule>
With LiteSpeed, the .htaccess file took around 5 minutes to take effect when changes were made, so you may experience the same. If you run into any issues, remove the above code from your .htaccess.
http://docs.cloudlinux.com/index.html?apache_mod_lsapi.html
Thanks,
Matt
Matt,
I was thinking the manual method would be the way to go but just wanted to verify first. When I go to Firewall in WordFence it doesn’t ask me to configure the firewall anymore so I assume it is working. I appreciate you taking the time to help me out.
Plugin Contributor
wfmatt
(@wfmatt)
Great, I’ll make a note that the .htaccess code configured the Firewall correctly.