Knowledgebase

How to Install CSF on a VPS Server

  • install csf cpanel, enable csf firewall, close port 3306 in the server’s firewall, csf firewall commands, how to install config server, how command install csf, iptables is not configured. you need to start csf, install cmq, تثبيت csf cpanel, كيف يتم تثبيت الأمر csf, كيفية تثبيت خادم التكوين, أغلق المنفذ 3306 في الجدار الناري للخادم, أوامر csf firewall, تمكين csf firewall, لم يتم تكوين iptables. تحتاج إلى بدء csf, تثبيت cmq
  • 0

How to Install CSF on a VPS Server

CSF is the perfect alternative to APF because CSF has many of the most powerful and powerful features of APF. By following this article, you can learn how to remove APF and use CSF using VPS via the command line interface.

Remove APF from your server:

As mentioned earlier, we need to uninstall APF before installing CSF. Here are the steps to remove APF from your server ،

 Red commands are run

Step 1: Log on to your server via SSH as a primary user.

Step 2: Run the following command within the shell access to disable the APF service, which is root @ vps999 [~] # service apf stop

Step 3: Then run that command root @ vps999 [~] # chkconfig -del apf

Step 4: root @ vps999 [~] # rm -fr /etc/init.d/apf / usr / local / sbin / apf / etc / apf /usr/local/cpanel/whostmgr/cgi/{apfadd,addon_add2apf.cgi }

Add WHM IP to the firewall:

 

To be able to add your IP WHM to the firewall, you will need to connect to SSH only. Follow these steps and run the highlighted commands in red.

Step 1: Connect to the SSH web server and run the following commands.

Step 2: Run the following command root @ vps999 [~] # yum -y remove apf-ded whm-addip

Step 3: Then run that command root @ vps999 [~] # rm -rf / usr / local / cpanel / whostmgr / cgi / apfadd

Step 4: Run that command root @ vps999 [~] # rm -f /usr/local/cpanel/whostmgr/cgi/addon_add2apf.cgi

Step 5: Open the pluginscache.yaml file by running the following command

root @ vps999 [~] # nano /var/cpanel/pluginscache.yaml

Step 6: You will see a set of lines to remove except for the unique key line

Step 7: Save changes

Steps to Install CSF

Step 1: Go to your VPS server via SSH

Step 2: Run that command in your shell instance (shaded in red)

root @ vps999 [~] # yum install -y csf-ded

Step 3: Make sure CSF is running through the following command.

root @ vps999 [~] # service csf start


Was this answer helpful?