How to uninstall CSF?

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,498
Points
63
I am having CSF installed on the server and I am wanting to try a new firewall software, I think if I keep CSF it can make a conflict between 2 software hence I would remove CSF to install the new firewall. My question is, How to uninstall CSF completely for my server?
 

myresellerhome

Well-known member
Registered
Joined
Jan 21, 2022
Messages
85
Points
6
CSF firewall may be uninstalled by executing the following script from the terminal.
In cPanel servers:
Code:
cd /etc/csf
sh uninstall.sh

In DirectAdmin servers:
Code:
cd /etc/csf
sh uninstall.directadmin.sh

In No-Panel Linux servers:
Code:
cd /etc/csf
sh uninstall.sh
 

Daniel165

Member
Registered
Joined
Jun 9, 2020
Messages
55
Points
6
You can uninstall CSF firewall by running following script from the terminal.

In cPanel servers: Code: cd /etc/csf sh uninstall.sh.
In DirectAdmin servers: Code: cd /etc/csf sh uninstall.directadmin.sh.
In No-Panel Linux servers: Code: cd /etc/csf sh uninstall.sh. That's it.
 

harry_v

Well-known member
Registered
Hosting Provider
Joined
Dec 20, 2017
Messages
110
Points
18
Best answer
I am having CSF installed on the server and I am wanting to try a new firewall software, I think if I keep CSF it can make a conflict between 2 software hence I would remove CSF to install the new firewall. My question is, How to uninstall CSF completely for my server?
Hello David Beroff,

CSf is the most commonly used firewall application to secure Linux servers. However, removing CSF is even more straightforward. Along with installation, CSF provides an uninstallation script in the configuration folder.

You can uninstall the CSF firewall by running the script from the terminal. You can follow the below-given way to uninstall the CSF firewall from the server completely,

There is a script in the csf directory. You can uninstall the CSF firewall utility by running the ‘uninstall.sh‘ script from the command line.

  • Login to your server via SSH root user
  • Change the directory to ‘/etc/csf’
Code:
# cd /etc/csf
  • Locate this file under the directory /etc/csf.
Code:
uninstall.sh -> /usr/local/csf/bin/uninstall.sh
  • Now, Execute the following command,
Code:
# sh uninstall.sh
  • Or,
Code:
# /usr/local/csf/bin/uninstall.sh
You can also uninstall the CSF firewall completely from the below command,
Code:
cd /etc/csf
sh uninstall.sh
The below command can be used for a user having no control panel for their Linux servers and wanted to uninstall the CSF firewall completely,
Code:
cd /etc/csf
sh uninstall.sh
I hope the information above helps you to uninstall the CSF firewall from the Linux server completely.

-------------------------
Regards,
harry_v
 
Older Threads
Replies
27
Views
10,126
Replies
1
Views
1,390
Replies
9
Views
2,546
Replies
1
Views
1,870
Latest Threads
Replies
0
Views
146
Replies
0
Views
70
Replies
0
Views
63
Replies
1
Views
92

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top