howto: Upgrade ClamAV

NeilHerbert

YummyHost
I've noticed that cPanel's update system doesn't bother to upgrade clamAV so here is a quick upgrading guide taken from http://www.configserver.com/cp/upgrade.html

* Download the latest stable ClamAV distribution from http://www.clamav.net (http://www.clamav.net/download/sources)
* Expand the distribution and cd into the resultant directory and build ClamAV using:
tar -xzf clamav-*
cd clamav*
./configure --disable-zlib-vcheck
make
make install
replace "Example" "#Example" -- /usr/local/etc/freshclam.conf
replace "Example" "#Example" -- /usr/local/etc/clamd.conf
* Run freshclam to download the latest definitions:
freshclam
* If you're using the clamavmodule, check you have the latest version installed:
/scripts/perlinstaller Mail::ClamAV
Neil
YummyHost
 
Hello Neil,

Um, did this work alright for you? When I did it it didn't actually upgrade my CPanel install of Clamd. Instead it installed a second version. This was confirmed with clamd -V which still reported the old version and then whereis clamd which reported a version in /usr/sbin and /usr/local/sbin.

I ended up removing the CPanel installation completely and then modifying the conf files (original: /etc/clamd.conf and /etc/clamscan.conf. new: /usr/local/etc/clamd.conf and /usr/local/etc/clamscan.conf) so that they matched the CPanel version and all seems to be working well.

Thanks for the tip though!
 
If your clamAV messes up because of this you can let cPanel reinstall for you. Go to WHM - cPanel - Plugins - uninstall clamav connector and then reinstall it. This will reinstall clamav for you.
 
Top