How to install CSF and CSF firewall in cPanel server

1. Move to Temporary directory to download the installation files

cd /usr/local/src/

2. Remove already existing CSF source file

rm -fv csf.tgz

3. Download CSF source file


3. Extrace the downloaded file.

tar -xzf csf.tgz

4.Go to the extracted folder

cd csf

5. Install it using the command below.


CSF is installed, now you need to configure it to protect from different type of attacks

Edit the configuration file

vi /etc/csf/csf.conf
Change TESTING = "1" to TESTING = "0"

Because csf will be installed  default on testing mode. Now you need to restart CSF using the command

csf -r

Now you can  configure CSF as per your need please go through the CSF config for different options

To see more features of CSF click here Features of cPanel server

Need our help to fix the issue ? Submit Support Ticket Now


[button size=”large” color=”green” title=”Server Administration Services from Stack Supports” link=””]View Server Administration Packages[/button]