Csf command not found in WHM/cPanel server

CSF – Config server firewall is a firewall configuration tool for WHM/cPanel server. CSF is available as a plugin of WHM by default. In some strange situation you will be face some errors with csf, like “csf command not found”

Error details:
“csf: command not found” while executing command via command line.

[root@server]# csf
-bash: csf: command not found
[root@server]# csf -e
-bash: csf: command not found

Solution:

Step 1: At first, check if the CSF is installed or not on the server. If it is installed, most probably due to the absence of ‘perl scripts’ in WHM/cPanel.
Step 2: Take a back up of csf.conf, csf.allow and csf,deny files for our security.
Step 3: Update CSF by executing the following command;

 
curl -s configserver.com/free/csupdate | perl

The config server firewall shoul be updated after executing the command. Then, try to run the csf command and it must be work properly.
That’s it.. 🙂

Arunlal Ashok

Sr. Linux Server Administrator. I'm managing Linux servers since 2012. I started this blog to share and discuss my ideas. Check My Profile in uPwork (oDesk) and create a job, if you need any administration help. Thanks!!

You may also like...

6 Responses

  1. YasinSanjari says:

    Hello,

    it work’s !

    thank you :-“

  2. AY says:

    Oh…In my case, that solution does not work.

  1. December 19, 2013

    […] Related topics : Install and configure csf on CentOS Csf command not found in WHM/cPanel server […]

  2. December 20, 2013

    […] Related links: Install and configure csf on CentOS CSF commands for Unix/Linux servers Csf command not found in WHM/cPanel server […]

Leave a Reply

Your email address will not be published. Required fields are marked *