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.. 🙂

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

6 thoughts on “Csf command not found in WHM/cPanel server

Leave a Reply

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