Problem in ClamAV, clamscan: command not found

polkocholo

Active Member
Nov 22, 2010
42
0
56
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
 

GaryT

Well-Known Member
May 19, 2010
320
3
68
I think the command your looking for is:

/usr/bin/clamscan /home -ir --remove=yes
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

30 5 * * * /usr/bin/clamscan /home -ir --remove=yes
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 )
 
Last edited:

polkocholo

Active Member
Nov 22, 2010
42
0
56
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 )

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
 

ChrisRHS

Well-Known Member
Jul 12, 2006
292
5
168
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
 

polkocholo

Active Member
Nov 22, 2010
42
0
56
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 ?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
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.
 

polkocholo

Active Member
Nov 22, 2010
42
0
56
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)
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
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!