Install ClamAV antivirus
Install ClamAV antivirus software
Install EPEL repo:
For CentOS 6 32-bit execute command:
rpm -Uvh http://mirror.overthewire.com.au/pub/epel/6/i386/epel-release-6-8.noarch.rpm
For CentOS 6 64-bit execute command:
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Install required packages:
yum install clamav clamd
Start the clamd service and set it to auto-start
chkconfig clamd on
Update ClamAV's signatures:
Note: ClamAV will update automatically, as part of /etc/cron.daily/freshclam.
In this example, we will configure a cronjob to scan the /var/www directory every day. Create cron file:
Configure daily scan
Add the following to the file above. Be sure to change SCAN_DIR to the directory that you want to scan:
/usr/bin/clamscan -i -r $SCAN_DIR >> $LOG_FILE
Give our cron script executable permissions:
chmod +x /etc/cron.daily/man_clamscan
Was this answer helpful?
An exploited or hacked VPS is one that is no longer fully under your control. Someone else is now...
Here is a simple, straightforward guide to improve VPS security. Change the SSH port One of the...
PING allows you to quickly verify the connectivity of your internet connection to the VPS server....
The Sender Policy Framework (SPF) is a method of fighting spam. As more time passes, this...
The terms Open and Closed are now used to describe DNS servers in the following context: Open...