Installing cfs & bfd

CSF and LFD are very easy to install and to configure especially if you are using a cpanel & WHM server. Here are the instructions on how to install CSF and LFD.

1) SSH into your server and switch to the root user
2) Switch directories to your download directory, usually /root

cd ~

3) Download the latest version of the software:


4) Untar the package:

tar -xzf csf.tgz

5) Switch into the new extracted folder:

cd csf

6) Run the installer:


7) If you are still running APF and BFD on your server it is necessary to disable those applications:


If you are running WHM you can now configure CSF and LFD from WHM under Main >> Plugins. CSF/BFD comes pre-configured for a cpanel/WHM server and so there is not that much to do after the installation. Log into WHM and inspect the new configuration utility. As an example you can uninstall APF and BFD from here with the click of the button. If you want to manually edit the CSF/LFD configuration you can do so at
Make sure to make backups before you make changes as well as using the debug mode to avoid being locked out.

If for whatever reason you need to uninstall CSF and LFD you can do this easily yourself as well. Login to your server via SSH and switch to the root user.

1) Switch to the folder holding the uninstaller:

cd /etc/csf

2) Run the uninstaller: #


All done. We highly recommend to make yourself familar with the product and how it works. CSF / LFD comes with a readme.txt file that you really should read. The readme file will give a great insight into how both apps work and what you need to configure to have your server properly configured.


I am a g33k, Linux blogger, developer, student and Tech Writer for My passion for all things tech drives my hunt for all the coolz. I often need a vacation after I get back from vacation....

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.