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.

Problem in ClamAV, clamscan: command not found

Discussion in 'General Discussion' started by polkocholo, Dec 4, 2010.

  1. polkocholo

    polkocholo Active Member

    Joined:
    Nov 22, 2010
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    i have a problem in clamav
    i installed clamav from WHM >> Add on >> Configure ClamAV Scanner and when scan server via ssh PuTTy display this error:

    root@####### [~]# clamscan /home -ir --remove=yes
    -bash: clamscan: command not found


    pls help me
    thank you
     
  2. GaryT

    GaryT Well-Known Member

    Joined:
    May 19, 2010
    Messages:
    321
    Likes Received:
    3
    Trophy Points:
    16
    I think the command your looking for is:

    Please note this is not a normal scan and WILL USE many resources, I suggest you run at non peak.

    We use a cron to run it at 5:30AM daily, It looks like in crontab -e

    We choose AM as majority of clients are Euro based, So as we like to keep there website nice and quick for when there on its best to do this when more than likely there offline. ( Asleep )
     
    #2 GaryT, Dec 4, 2010
    Last edited: Dec 4, 2010
  3. polkocholo

    polkocholo Active Member

    Joined:
    Nov 22, 2010
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    thank you
    but again display this error
     
  4. GaryT

    GaryT Well-Known Member

    Joined:
    May 19, 2010
    Messages:
    321
    Likes Received:
    3
    Trophy Points:
    16

    What error ?

    You sure clam is running or even installed correctly, run a restart and post the output:
     
  5. polkocholo

    polkocholo Active Member

    Joined:
    Nov 22, 2010
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6

    Hello,

    1-
    Who can i set cron to run it at 5:30AM in Monday, Tuesday, Thursday, Friday ?

    2-
    Who can in set cron command "freshclam" in every day at 5:30AM ?


    many thanks
     
  6. polkocholo

    polkocholo Active Member

    Joined:
    Nov 22, 2010
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    can any body help me?
     
  7. polkocholo

    polkocholo Active Member

    Joined:
    Nov 22, 2010
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    ???????? pls help me
     
  8. ChrisRHS

    ChrisRHS Well-Known Member

    Joined:
    Jul 12, 2006
    Messages:
    292
    Likes Received:
    5
    Trophy Points:
    18
    Hello there,

    It sounds like ClamAV is not installed properly. I did have an issue once with this, and it turned out, that when installing, it was maxing out the allotted memory that was allowed, and thus not installing fully. I would remove it, then go to tweak settings, and increase the "Max cPanel process memory" to something larger that 256, try 512. Once that is done and saved, try installing ClamAV once again.

    Chris
     
  9. polkocholo

    polkocholo Active Member

    Joined:
    Nov 22, 2010
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    1-
    Who can i set cron to run it at 5:30AM in Monday, Tuesday, Thursday, Friday ?

    2-
    Who can in set cron command "freshclam" in every day at 5:30AM ?
     
  10. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Are you asking how cron intervals work? Here is a guide on how cron time intervals work:

    Linux Help - Cron Help Guide

    For the first interval requested, it would be:

    Code:
    30 05 * * 1,2,4,5
    Where 30 is 30 minutes after the hour, 05 is at 5am and 1,2,4,5 are the days of the week (0 is Sunday).

    For the second interval, you would have:

    Code:
    30 05 * * *
    This would be at 30 minutes after the hour at 05am every day of every week.

    Also, please note this was already provided for the second one:

    Code:
    30 5 * * * /usr/bin/clamscan /home -ir --remove=yes 
    The location is in crontab -e (or editing /var/spool/cron/root file). If this is not what is being asked for the interval itself, please clarify further what is being asked.
     
  11. polkocholo

    polkocholo Active Member

    Joined:
    Nov 22, 2010
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Pls help me


    # /usr/bin/clamscan /home -ir --remove=yes
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in
    LibClamAV Warning: cli_scanbzip: bzip2 support not compiled in

    ----------- SCAN SUMMARY -----------
    Known viruses: 1292111
    Engine version: 0.97.4
    Scanned directories: 26990
    Scanned files: 146608
    Infected files: 0
    Data scanned: 3683.83 MB
    Data read: 3449.45 MB (ratio 1.07:1)
    Time: 845.599 sec (14 m 5 s)
     
  12. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello,

    Please try to install the following:

    Code:
    yum install bzip2-devel
    After that, uninstall and reinstall ClamAV.

    Thanks!
     
Loading...

Share This Page