Page 1 of 1

ClamAV Error

Posted: 17 Nov 2016, 15:15
by tomv
I am seeing the error below when I go to ConfigServer eXploit Scanner in WHM:
Error trying to talk to ClamAV socket [/tmp/clamd]: Connection refused
You must install ClamAV (Clamavconnector on cPanel) or ensure clamd is running to use this product correctly

If the clamd socket is not automatically detected, and to clear this message, you must set clamdsock=/path/to/socket in /etc/cxs/cxs.defaults to the live socket location
The process list shows that clamd is running from /usr/local/cpanel/3rdparty/bin/clamd and I tried setting this in cxs.defaults but I get the same error. What do I need to do to fix this?

CentOS 6.8
WHM 60.0 (build 24)
CSX v6.22

Re: ClamAV Error

Posted: 17 Nov 2016, 15:53
by Sarah
The clamd socket for clamavconnector is /var/clamd. If /tmp/clamd exists, for instance from a previous install of clamav that has been uninstalled, then you should remove that file.

As long as /tmp/clamd does not exist, cxs will then find the correct clamd socket at /var/clamd, so you should remove the setting for the clamd socket in your defaults.

Re: ClamAV Error

Posted: 17 Nov 2016, 17:48
by tomv
Thanks! Removing /tmp/clamd fixed it.

Re: ClamAV Error

Posted: 15 Dec 2016, 18:54
by adtastichosting
I have a smiilar error but not within the ui of csx it seems to be running fine and I do not have /tmp/clamd. I get this error in the email sent to me from a scan:
# Clamd Error for [SCAN /home/xxxx/public_html/testexploit.php]: Connection refused