Skip to content

Disabling unused services for cPanel host headroom

A default cPanel install runs more daemons than most hosts actually need. Disabling the ones you do not use returns measurable CPU, RAM, and IO headroom.

cPanel ships with a comprehensive set of services: mail (exim, dovecot, mailman), DNS (named, pdns), FTP (proftpd or pure-ftpd), spam (spamd, spamassassin), antivirus (clamd), database (mysqld), web (httpd/lsws), and several cPanel-specific daemons (cpsrvd, cpdavd, queueprocd, etc). Most production hosts use a subset. Each unused service costs RAM, scheduling time, and disk IO from logs and updates. Turning off what you do not need is a simple, reversible performance win.

What’s happening

A default install enables clamd (antivirus), spamd (spam filtering), pdns (alternative DNS), and several cron-driven workers. On a host that uses Cloudflare for DNS, mail delivered to an external service, and no shared file scanning policy, all four are wasted RAM. clamd alone reserves 1-2 GB of RAM for signature databases on a default install — RAM that could hold MySQL buffer pool or PHP-FPM workers.

The catch: some services have non-obvious dependencies. Disabling tailwatchd breaks cPanel’s log monitoring; disabling cpanellogd breaks bandwidth reporting; disabling chkservd disables cPanel’s own service monitoring. The trick is knowing what each daemon actually does before turning it off.

How to verify

What is actually running on the host:

systemctl list-units --type=service --state=running | grep -v cpanel
chkservd --list  # cPanel's own list of monitored services
ps auxf --sort=-%mem | head -20
free -h

For each suspicious daemon, check what it does and how much RAM it holds:

ps -o pid,rss,vsz,cmd -p $(pgrep clamd)
ps -o pid,rss,vsz,cmd -p $(pgrep pdns_server)
ps -o pid,rss,vsz,cmd -p $(pgrep spamd)

A clamd at 1.5 GB RSS on a host that does not need on-access scanning is a candidate to remove.

The fix

The decision list, in order:

  1. clamd — if no customer is using ClamAV scanning, disable through WHM > Service Manager. Uninstall the package with yum remove clamav-server-systemd to reclaim the disk space too.
  2. pdns — if DNS lives elsewhere (Cloudflare, Route 53), disable PowerDNS through Nameserver Selection. Keep BIND if cPanel needs to write zones for templates.
  3. spamd — if mail is filtered at the gateway, disable in WHM > Service Manager. Customer-facing spam filtering UI in cPanel still works through exim’s filters.
  4. mailman — if no customer hosts mailing lists, disable via Service Manager. The cPanel UI still surfaces the option, but the daemon does not run.
  5. cpdavd — WebDAV access via cPanel. If no customer uses it, disable. Most accounts use SFTP instead.
  6. queueprocd, dnsadmin, dovecot (if mail is offsite) — case by case.

Document the decisions in a per-host runbook so the next operator does not re-enable them by reflex. Stack Harbor maintains service-baseline manifests per cluster as part of cPanel server management.