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":
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum -y update
yum install -y clamav
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.
Add to Favourites Print this Article