- Sat Nov 30, 2019 12:57 am
#137
How to install ClamAV
ClamAV or Clamscan is a malware scanner for Linux. It will often catch things that are malicious, such as PHP scripts, bad emails, etc.
On your Linux server, it is very easy to install and run Clamscan, however you’ll need to be familiar with how to SSH into your server.
If you’re not familiar with how to do this, we’ve got you covered! Please review the following guide, which should assist you with this: Connecting to Your Server via SSH
To install clamscan on your cpanel/centos server, copy and paste these commands into SSH as “root”:
Bad files will be removed and located to /quar directory, and logs will be in the /quar/log.txt file.
ClamAV or Clamscan is a malware scanner for Linux. It will often catch things that are malicious, such as PHP scripts, bad emails, etc.
On your Linux server, it is very easy to install and run Clamscan, however you’ll need to be familiar with how to SSH into your server.
If you’re not familiar with how to do this, we’ve got you covered! Please review the following guide, which should assist you with this: Connecting to Your Server via SSH
To install clamscan on your cpanel/centos server, copy and paste these commands into SSH as “root”:
Code: Select all
How to run a scan with ClamAV To run a scan using ClamAV simply copy and paste the following command into SSH as root.1 wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel- release-6-8.noarch.rpm
2 wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
3 sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
4 yum -y update
5 yum install -y clamav
6 freshclam
7 mkdir /tmp/quar
Code: Select all
This will run ClamAV on your entire user folder for all accounts on the server.clamscan -r /home --move=/tmp/quar/ --log=/tmp/quar/log.txt --infected &
Bad files will be removed and located to /quar directory, and logs will be in the /quar/log.txt file.