Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default Virus scan in Cpanel

    On one of our servers, with clamavconnector installed, when using the virus scan icon in CPanel the screen just says "loading ..." and never completes the scan.

    Background: this server had Mailscanner on, which I uninstalled before installing clamavconnector. I've verified that email is being virus scanned OK by using the eicar test site and doing a tail on the exim logfile. So I know that ClamAv is working OK. It's just the CPanel scan that is not working. Cpanel is 9.9.9-RELEASE 70.

    Anyone got any ideas? Cheers.

  2. #2
    Member
    Join Date
    Apr 2003
    Posts
    17

    Default

    Hello,

    you modify LocalSocket entry in /etc/clamd.conf to: LocalSocket /var/clamd then restart clamd.

    Sorry my english

  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default

    My clamav.conf had that entry already.

    What is the correct command(s) to reatart clamd?

  4. #4
    Member
    Join Date
    Apr 2003
    Posts
    17

    Default

    clamav.conf not equal clamd.conf!!!!

    The restart command the following: /etc/init.d/exim restart

  5. #5
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default

    Magic, thanks very much, that did the trick!

    Hope you don't mind me just clarifying the info for the benefit of others reading this thread in future:

    Problem: After uninstalling mailscanner and installing clamavconnector, mail is virus scanned but cpanel's virus scanning of files does not work.

    Solution:

    1. Edit /etc/clamav.conf:
    Code:
    pico /etc/clamav.conf
    2. Look for the line
    Code:
    LocalSocket xxx
    where
    Code:
    xxx
    might be
    Code:
    /tmp/clamd
    3. Change the line to:
    Code:
    LocalSocket /var/clamd
    4. Save the file

    5. Restart exim (which will also restart clamd) using:
    Code:
    /etc/init.d/exim restart

  6. #6
    Member
    Join Date
    Apr 2003
    Posts
    17

    Default

    The process following:

    Edit /etc/clamd.conf (NOT clamav.conf):
    Code:
    pico /etc/clamd.conf
    2. Look for the line
    Code:
    LocalSocket xxx
    3. Change the line to:
    Code:
    LocalSocket /var/clamd
    4. Save the file

    5. Restart exim (which will also restart clamd) using:
    Code:
    /etc/init.d/exim restart

  7. #7
    Member
    Join Date
    Aug 2001
    Posts
    132

    Default

    It was editing clamav.conf that did the trick for me.

  8. #8
    Member
    Join Date
    Jan 2002
    Posts
    51

    Default

    good post, editing clamav.conf did the trick

  9. #9
    Member
    Join Date
    Nov 2002
    Posts
    10

    Default Same issue, ClamAV addon stuck at loading, in Cpanel

    I edited the clamav.conf file and restarted exim, and voila. Worked like a charm. Thanks for the assist!

  10. #10
    Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Apr 2004
    Posts
    620

    Default

    Guys, first of all I need to tell you that in the case you have installed cPanel ClamAV connector you need just SINGLE file - /etc/clamd.conf !

    E.g. for Virus Scan to work you need to REMOVE /etc/clamav.conf - it is not used by cPanel in any way.

    We have tested this on all servers of us and know what we are talking about.
    Reliable web-hosting, good resellers plans, web-design.
    ISProHosting.com

  11. #11
    Member
    Join Date
    Aug 2005
    Posts
    131

    Default

    I am having this same issue, scanning in cpanel is not longer working, but the clamd file is set exactly the way it should be, so that is not a solution. Anyone else ever have this issue and was able to actually fix it?

  12. #12
    Member
    Join Date
    Feb 2010
    Location
    India
    Posts
    23

Similar Threads & Tags
Similar threads

  1. cannot load virus scan
    By frothy in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-25-2006, 12:22 PM
  2. Daily Virus Scan
    By streryan in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-16-2006, 04:52 AM
  3. Virus Scan
    By riccardino in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 05-08-2005, 10:11 AM
  4. Virus Scan
    By AnthonyCaesar in forum New User Questions
    Replies: 1
    Last Post: 02-21-2005, 06:36 PM
  5. virus scan feature
    By cazny in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-19-2004, 01:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube