CSF command not found in WHM cPanel server

Some of you may face strange issues with CSF firewall on cPanel WHM 11.38.x in which the csf command does not work.

# csf -r

bash: csf: command not found...

# /usr/sbin/csf

nothing found..

The CSF plugin though was successfully added to the WHM's AppConfig. There were no modifications in the CSF files nor in WHM.

Updating WHM and re-installing CSF latest version, removing  csf.conf present at /var/cpanel/apps  did not helped much.

After searching for solution online, one post on CSF forums attracted my attention. After reading complete discussion, I came to conclusion that the issue with perl scripts and latest cPanel WHM updates. The auto perl scripts are not added in the cPanel WHM.

To resolve the issues with CSF:

1. Take backup of csf.conf, csf.allow and csf,deny files.

2. Update CSF using following command

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

Note: CSF should be install on the server before executing above command.

The CSF files should be updated.

Now try using CSF command which should work like a charm.

Share on FacebookShare on Google+Tweet about this on TwitterShare on StumbleUponShare on LinkedInShare on TumblrDigg thisPin on PinterestShare on RedditEmail this to someonePrint this page

About Abhijit Sandhan

Abhijit Sandhan
Loves Linux, Blogging, Traveling, Hiking and sharing the knowledge!

Leave a Reply

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

*

CAPTCHA Image

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>