CSF command not found in cPanel/WHM 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 facing some errors with csf, like “csf command not found”

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

 
[root@srv1]# csf
-bash: csf: command not found
[root@srv1]# 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 should be updated after executing the command. Then, try to run the csf command and it must be work properly.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to install ConfigServer Security & Firewall

ConfigServer Firewall, also known as CSF, is a firewall configuration script created to provide...

How to install ConfigServer Explorer (cse)

To install or upgrade cse simply do the following from the root shell via SSH: cd /usr/src rm...

Fix False Downtime Reports of Your Server

Many of our clients are using uptimerobot to ensure the uptime status of their servers. Some of...

How to ignore emails/messages sent by CSF/LFD

Many peoples would like to ignore messages sent by CSF/LFD. So, we're writing a tutorial to guide...

DDoS/DOS Prevention Settings in CSF firewall

Denial of Service (DoS) and Distributed Denial of Service (DDoS) attacks are common threats that...