DirectAdmin Knowledge Base and Support

DirectAdmin is a web panel for a simple administration of both virtual and dedicated servers. DirectAdmin is faster, safe and more powerful than any other CP. And we know how to customize and support it.

ClamAV stopped and does not start with custom viruses definition bases

| 19:06:03 13.08.2020

ClamAV stopped and does not start any longer. And directadmin alerts: The service 'clamd' on server server.domain.com is currently down. Here is a possible cause and solution.

Popular installations for DirectAdmin servers suggest adding virus definition bases from Malware.Expert, they used to be free, and now they are commercial, and due to the way they changed the things on their side all the ClamAV installations are under risk. ClamAV stops working.

Remove Malware.Expert from ClamAV

First we remove broken virus definition bases

rm -f /usr/local/share/clamav/malware.expert*
cp -p /etc/freshclam.conf /etc/freshclam.conf.bak
perl -pi -e 's#^DatabaseCustomURL http://cdn.malware.expert/malware.expert.*\n##' /etc/freshclam.conf

Restart clamd process:

service clamd restart

Make sure ClamAV daemon started:

ps aux | grep clam
If clamd started, then the issue is now solved. If it still fails, then the reason is something else different.


Remove Malware.Expert from Maldet (malware scanner)

Remove Malware.Expert from config, it's stored in options: import_custsigs_md5_url and import_custsigs_hex_url:

cp -p /usr/local/maldetect/conf.maldet /usr/local/maldetect/conf.maldet.bak
perl -pi -e 's#^import_custsigs_md5_url=.*#import_custsigs_md5_url=""#' /usr/local/maldetect/conf.maldet
perl -pi -e 's#^import_custsigs_hex_url=.*#import_custsigs_hex_url=""#' /usr/local/maldetect/conf.maldet
grep ^import_custsigs /usr/local/maldetect/conf.maldet

Since that you should be save.

Have fun.

About Us
We are a team of professionals, and specialize in installation, configuring and managing of remote virtual and dedicated servers powered by Linux/Unix-like OS with DirectAdmin. We support various sets of software, including web-servers Apache, Nginx; internet domain name servers Bind, PowerDNS; mail-servers with POP3, IMAP and SMTP, FTP-servers, etc. After years of working through the most complex server challenges our team has gathered valuable experience and universal solutions suitable for everyday tasks. We are here to lend you a helping hand and take care of your servers in order to let you have enough time to do more of what you love.




All of the information and data on this site is for informational purposes only and is provided for the convenience of the user.
Powered by: Amiro.CMS - Free edition