How to install a Malware scanner on my server?
This article applies to 123 Reg Servers
This article will show you how to install Malware scanners on your server.
For Linux servers, you can install the below:
You can install Maldet via SSH by entering this command:
tar -xzf maldetect-current.tar.gz
To scan a folder, for example, /var, you should enter maldet -a /var. This will print an output with two commands, which will either show the scan results or quarantine the infected files.
To install ClamAV, run the command:
apt-get install clamav
yum install clamav
Before scanning with ClamAV you should run Freshclam. This will update the ClamAV definitions database, which means that the scan will include any new pieces of malware.
clamscan -rvi / –log=malwarescan.txt
To view the instances of malware that have been found you can view the log file by running:
cat malwarescan.txt | grep FOUND
For Windows servers, you can download Clamwin by visiting www.clamwin.com and use this to scan your severs.