The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Virus scan in Cpanel

Discussion in 'General Discussion' started by Wallaby, Jan 7, 2005.

  1. Wallaby

    Wallaby Well-Known Member

    Joined:
    Aug 15, 2001
    Messages:
    131
    Likes Received:
    1
    Trophy Points:
    18
    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. kacsa

    kacsa Member

    Joined:
    Apr 6, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

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

    Sorry my english :)
     
  3. Wallaby

    Wallaby Well-Known Member

    Joined:
    Aug 15, 2001
    Messages:
    131
    Likes Received:
    1
    Trophy Points:
    18
    My clamav.conf had that entry already.

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

    kacsa Member

    Joined:
    Apr 6, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    clamav.conf not equal clamd.conf!!!!

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

    Wallaby Well-Known Member

    Joined:
    Aug 15, 2001
    Messages:
    131
    Likes Received:
    1
    Trophy Points:
    18
    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
     
    easyhoster1 likes this.
  6. kacsa

    kacsa Member

    Joined:
    Apr 6, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    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. Wallaby

    Wallaby Well-Known Member

    Joined:
    Aug 15, 2001
    Messages:
    131
    Likes Received:
    1
    Trophy Points:
    18
    It was editing clamav.conf that did the trick for me.
     
  8. Elliot

    Elliot Well-Known Member

    Joined:
    Jan 22, 2002
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    good post, editing clamav.conf did the trick
     
  9. MianoVision

    MianoVision Member

    Joined:
    Nov 24, 2002
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
  11. oulzac

    oulzac Well-Known Member

    Joined:
    Aug 7, 2005
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    16
    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. a24uall

    a24uall Active Member

    Joined:
    Feb 4, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
Loading...

Share This Page