Hi all,
Install ClamAV on a VM of VirtualBox running on PC
OS - Ubuntu 20.04
$
sudo apt install clamav clamav-daemon -y
$
which clamscan
/usr/bin/clamscan
$
which freshclam
/usr/bin/freshclam
Before updating the database, stop the clamav-freshclam service;
$
sudo systemctl stop clamav-freshclam
Update the database;
$
sudo freshclam
WARNING: Ignoring deprecated option SafeBrowsing at /etc/clamav/freshclam.conf:22
Tue Jul 13 16:30:15 2021 -> ClamAV update process started at Tue Jul 13 16:30:15 2021
Tue Jul 13 16:30:15 2021 -> ^Your ClamAV installation is OUTDATED!
Tue Jul 13 16:30:15 2021 -> ^Local version: 0.103.2 Recommended version: 0.103.3
Tue Jul 13 16:30:15 2021 -> DON'T PANIC! Read
https://www.clamav.net/documents/upgrading-clamav
Tue Jul 13 16:30:15 2021 -> daily.cvd database is up-to-date (version: 26229, sigs: 3995624, f-level: 63, builder: raynman)
Tue Jul 13 16:30:15 2021 -> main.cvd database is up-to-date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Tue Jul 13 16:30:15 2021 -> bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)
Start clamav-freshclam and enable it to start at reboot:
$
sudo systemctl start clamav-freshclam
$
sudo systemctl enable clamav-freshclam
Synchronizing state of clamav-freshclam.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable clamav-freshclam
$
sudo clamscan --infected --remove --recursive /var/www/html/reynoldstocks/
----------- SCAN SUMMARY -----------
Known viruses: 8545158
Engine version: 0.103.2
Scanned directories: 693
Scanned files: 5680
Infected files: 0
Data scanned: 438.99 MB
Data read: 1926.02 MB (ratio 0.23:1)
Time: 95.604 sec (1 m 35 s)
Start Date: 2021:07:13 17:14:26
End Date: 2021:07:13 17:16:02
/var/www/html/reynoldstocks/
is the folder where the website is installed
$
sudo freshclam --infected --remove --recursive /var/www/html/reynoldstocks/
freshclam: unrecognized option `--infected'
ERROR: Unknown option passed
ERROR: Can't parse command line options
freshclam is a virus database update tool for ClamAV. I think it is NOT a tool of running CLamAV. Clamscan is !!!
The options of fresclam are different.
freshclam -h
Please refer to the attached screenshot
I haven't contacted the Technical Support of my hosting company yet. I must make use there is no problem running ClamAV on local PC first.
Comment and advice are appreciated. Thanks
Regards