Portal Home > Knowledgebase > Virtual Private Servers > Budget VPS > Troubleshooting > How to install and run Clamscan


How to install and run Clamscan




How to install and run Clamscan?

 

Clamscan is a malware scanner for Linux. It will often catch things that are malicious, PHP scripts, bad emails, etc.

 
On your Linux VPS, it is very easy to install and run Clamscan, however you will need to be familiar with how to SSH in to your server.
If not, please drop us a ticket and we would be more than happy to do this for you.
 
To install and run clamscan on your cpanel/centos server, copy and paste these commands into SSH as "root":
 

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum -y update
yum install -y clamav
freshclam
mkdir /tmp/quar
clamscan -r /home --move=/tmp/quar/ --log=/tmp/quar/log.txt --infected &

 
 
This will install, update, and run clam on your entire user folder for all accounts on the server.
 
Bad files will be removed and located to /quar directory, and logs will be in the /quar/log.txt file.
 
 


Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
How to Add IPv6 IPs? (Views: 1400)