In This Tutorial:
The cPanel DAV Daemon enables a set of extensions that allow users to manage website data remotely. For example, CalDAV is an extension that grants multiple devices access to manage calendar data on a remote server simultaneously. With CalDAV, you can create, share, edit, and remove calendar events using your server to host them. The following guide contains the steps on how to set up cPanel DAV Daemon to add CalDAV services.
NOTE: The steps below require Root Access, which is only obtainable on VPS and Dedicated Servers.
Enable cPanel DAV Daemon
In order to use CalDAV, the cPanel DAV Daemon needs to be enabled from WHM. Follow the steps below to enable the cPanel DAV Daemon.
- Log into WHM as root.
- Navigate to Service Manager. To do this, simply type “service manager” into the search field and click on the result found.
- Click the checkbox for Enable and Monitor for cPanel DAV Daemon.
Now that you have enabled the service, you will need to open the ports in the firewall to allow the cPanel DAV Daemon to listen for connections.
Open Ports in Firewall
The cPanel DAV Daemon uses the firewall ports 2079 and 2080 to manage connections. Generally, these ports are not “open” to making connections by default. Opening ports in the firewall for connections is simple and similar whether you are using APF or CSF. The instructions in this section will describe how to determine which firewall is running. Depending on whether you are running APF or CSF, you can follow the respective instructions to learn how to open the ports needed for the cPanel DAV Daemon.
Which Firewall Am I Using?
If you are using the default configuration of a VPS or Dedicated Server, then you most likely are running APF. To confirm this, run the following command as root:
The output below confirms that APF is active:
The output below indicates that APF is not active:
In this case, run the following command as root:
The following output confirms that CSF is running:
Opening Ports Using APF
- SSH (as root) into your server.
- Run the following command:
- Locate the following code:
- Edit the second line to include the ports 2079 and 2080 like so:
- Restart APF by running the command:
Opening Ports Using CSF
- SSH (as root) into your server.
- Run the following command:
- Locate the following code:
- Edit the second line to include the ports 2079 and 2080 like so:
- Restart CSF by running the command:
Testing
Once you have enabled the cPanel DAV Daemon and opened the ports in the firewall, you can use telnet to test the connection to port 2079 by running the following command:
You should receive the following output:
Then, run the following command to test port 2080:
You should receive the following output:
Now that you have opened the ports and enabled the cPanel DAV Daemon, CalDAV is available. You can now sync calendar data for your domain using this protocol. To learn more about how to use CalDAV, be sure to check out our guide for “Adding a CalDAV Account in iOS 11”.
Why is CalDAV disabled on regular hosting platforms? It was always available before and many other cPanel hosts still continue to provide this. Opening up ports on shared hosting is something that most people would like to have. Just in the namr of security this exception shouldn’t be applied on Shared Hosting plans.
I am yet to drop an email to manager feedback. Something that strongly forces me to think about a switch.
Hello and thanks for contacting us. I recommend you contact Live Support about migrating to a shared server with CalDAV capabilities or alternative options.