Title: Firewall setup with &#8220;Apache + mod_lsapi&#8221; server
Last modified: March 10, 2017

---

# Firewall setup with “Apache + mod_lsapi” server

 *  Resolved [maweb](https://wordpress.org/support/users/maweb/)
 * (@maweb)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/firewall-setup-with-apache-mod_lsapi-server/)
 * Ho, my server configuration is “Apache + mod_lsapi”, so How i can setup wordfence
   firewall? The setup has just
    >>1) Apache + mod_php >>2) Apache + suPHP >>3) 
   Apache + CGI/fastCGI >>4) LiteSpeed >>5) NGINX >>6) Windows (IIS) Thank you.

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

 *  Thread Starter [maweb](https://wordpress.org/support/users/maweb/)
 * (@maweb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/firewall-setup-with-apache-mod_lsapi-server/#post-8925225)
 * Any answer to resolve it ?
 *  Thread Starter [maweb](https://wordpress.org/support/users/maweb/)
 * (@maweb)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/firewall-setup-with-apache-mod_lsapi-server/#post-8925316)
 * Sites using lsapi instead of mod_php
 * If your site uses “lsapi” and shows that “Basic WordPress Protection” is still
   active after the firewall optimization, you may need to add the section below
   to your .htaccess file. This will be detected automatically in a future version.
   You can confirm if your site is using “lsapi” by going to the Tools page on the
   Wordfence menu and clicking the Diagnostics tab, then click the link that says“
   Click to view your system’s configuration in a new window” near the bottom of
   the page. If the Server API field near the top of that page says “LiteSpeed”,
   search for $_SERVER[‘SERVER_SOFTWARE’] near the bottom of the page, and if you
   find “Apache” there, this change should be what you need:
 * <IfModule lsapi_module>
    php_value auto_prepend_file ‘/path/to/wordfence-waf.
   php’ </IfModule>
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/firewall-setup-with-apache-mod_lsapi-server/#post-8927363)
 * Hi,
    You should use the pre-selected option that has “(recommended based on our
   tests)” which I think is “Apache + mod_php” in your case, then apply instructions
   mentioned in “[Sites using lsapi instead of mod_php](https://docs.wordfence.com/en/Web_Application_Firewall_Setup#Sites_using_lsapi_instead_of_mod_php)“.
 * Thanks.
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [9 years ago](https://wordpress.org/support/topic/firewall-setup-with-apache-mod_lsapi-server/#post-9132867)
 * Hi [@maweb](https://wordpress.org/support/users/maweb/)
    Since I haven’t heard
   back from you I am assuming that the instructions helped you solve your issue
   so I am marking this topic as resolved.
 * If however, for whatever reason, you are still experiencing this issue and it
   is not resolved please respond to the post, which will move it back up the queue,
   and mark this topic as “not resolved”.
 * Thank you.
 *  Thread Starter [maweb](https://wordpress.org/support/users/maweb/)
 * (@maweb)
 * [9 years ago](https://wordpress.org/support/topic/firewall-setup-with-apache-mod_lsapi-server/#post-9132958)
 * Hi [@wfalaa](https://wordpress.org/support/users/wfalaa/)
 * Problem solved
 * <IfModule lsapi_module>
    php_value auto_prepend_file ‘/path/to/wordfence-waf.
   php’ </IfModule>
 * 😀

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

The topic ‘Firewall setup with “Apache + mod_lsapi” server’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [maweb](https://wordpress.org/support/users/maweb/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/firewall-setup-with-apache-mod_lsapi-server/#post-9132958)
 * Status: resolved