Disable clamav/clamd on cPanel server

Here you can find tutorials and notes for server-side maintenance/configuration

Disable clamav/clamd on cPanel server

Postby lik » Mon Jul 18, 2011 5:28 pm

To completely remove ClamAV from your cPanel-based server please use WHM interface, feature
Code: Select all
WHM -> Plugins -> Manage Plugins

Uncheck 'clamavconnector' box and hit 'Uninstall clamavconnector'.

Tips for those who prefer to remove ClamAV via CLI interface.
Code: Select all
cd /usr/local/cpanel/modules-install/clamavconnector-Linux-x86_64/
./uninstall
sed -i '/clamavconnector/d' /var/cpanel/addonmodules

You can find more details inside 'uninstall' bash script.

Disable and remove clamd from the cpanel check service daemon configuration file:
Code: Select all
sed -i '/clamd/d' /etc/chkserv.d/chkservd.conf

Also remove clamd check description:
Code: Select all
rm -fv /etc/chkserv.d/clamd

Finally, remove the following flag:
Code: Select all
rm -fv /var/run/chkservd/clamd

Restart chkserv.d:
Code: Select all
/scripts/restartsrv_tailwatchd
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Server Side Actions

 


  • Related topics
    Replies
    Views
    Last post
cron