hello cartx_child

Knowledgebase

How to Set Up the cPanel DAV Daemon

  • فتح المنافذ باستخدام CSF, فتح المنافذ بإستخدام apf, Enable cPanel DAV Hidden, open ports in firewall, فتح منافذ جدار الحماية
  • 0

The hidden cPanel settings contain a set of extensions that allow users to remotely manage their website's data. There are a host of plugins, such as CalDAV, which allows multiple devices to manage calendar data on a remote server at the same time. Also from creating, sharing, editing, and removing calendar events using your server, just follow the article to learn how to set up cPanel DAV Daemon to add CalDAV services.

Enable cPanel DAV Hidden:
Before you start adding CalDAV you have to initially enable cPanel DAV hidden by whm.
Steps to enable cPanel DAV Daemon:

Step 1: Go to WHM and log in to your account.

Step 2: Contact the Service Manager by searching in the search box

Step 3: Click on Enable and Monitor for hidden cPanel DAV settings.

Now that you have enabled cPanel DAV you will then need to open ports in the firewall to allow connection to cPanel DAV settings

 
How to open ports in firewall:
At first you should learn some information about opening windows with the firewall >> This is necessary when you enable cPanel DAV hidden settings to manage connections by default. The process of opening ports to the firewall is simple and you can easily implement them whether you use APF or CSF

Identify the firewall used:
If you are using the default configuration of a VPS server or you are using a dedicated server, you are using APF and to do so, please follow the steps below.

Run the following command as root:
/ bin / systemctl status apf.service

root@hostname ~ $  /bin/systemctl status apf.service
 apf.service - SYSV: Advanced Policy Firewall
Loaded: loaded (/etc/rc.d/init.d/apf; bad; vendor preset: disabled)
Active: active (exited) since Wed 2017-10-04 17:51:10 EDT; 2min 37s ago
Docs: man:systemd-sysv-generator(8)
Process: 20628 ExecStart=/etc/rc.d/init.d/apf start (code=exited, status=0/SUCCESS)

The output confirms APF activation

If the output appears this way
root@hostname ~ $  /bin/systemctl status apf.service
Unit apf.service could not be found.

It means that the APF signal is not active

If not activated, the following root is used
/ bin / systemctl status csf.service
That means it works with CSF

root@hostname ~ $  /bin/systemctl status apf.service
 csf.service - ConfigServer Firewall & Security - csf
Loaded: loaded (/usr/lib/systemd/system/csf.service; enabled; vendor preset: disabled)
Active: active (exited) since Wed 2017-09-20 13:58:36 EDT; 2 weeks 0 days ago
Main PID: 829 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/csf.service

Steps to Open Ports Using APF:

Step 1: Run the following command

nano /etc/apf/conf.apf

Step 2: Specify the following code:

# Common ingress (inbound) TCP ports
IG_TCP_CPORTS = "20,21,25,53,80,110,113,143,443,465,993,998,2049,2077,2078,2082,2083,2086,2087,2089,2095,2096,3306,5222,9090,12001"
Step 3: The second line of code will be released to enter ports 2079 and 2080 and so will be

# Common ingress (inbound) TCP ports
IG_TCP_CPORTS = "20,21,25,53,80,110,113,143,443,465,993,995,2049,2077,2078,2079,2080,2082,2083,2086,2087,2089,2095,2096,3306,5222,
Step 4: Restart the APF again through the apf -r command

Steps to Open Ports Using CSF:
Step 1: Run the following command:
nano /etc/csf/csf.conf
Step 2: Identify the following code:

# Allow incoming TCP ports
TCP_IN = "20,21,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096"


Step 3: Edit the code to enter ports 2079 and 2080 and thus will become

# Allow incoming TCP ports
TCP_IN = "20,21,25,53,80,110,143,443,465,587,993,995,2077,2078,2079,2080,2082,2083,2086,2087,2095,2096"


Step 4: Restart the CSF again with the csf -r command

 

Was this answer helpful?