Skip to content Skip to sidebar Skip to footer

How to Install AntiVirus Clamav in RHEL 7, for Your Web Application Security

Preparation

You must mounting your local repo and install epel repo

Installing

For RHEL 6

# yum install -y epel-release
# yum install -y clamav
Install Clamav
Install Clamav


For RHEL 7

# yum install -y epel-release
# yum -y install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd

Configure

Backup and config this clamav and configure it

# cp /etc/clamd.d/scan.conf /etc/clamd.d/scan.conf.bak 
# sed -i '/^Example/d' /etc/clamd.d/scan.conf

and uncomment this script at LocalSocket

# vi /etc/clamd.d/scan.conf
....... 
LocalSocket /var/run/clamd.scan/clamd.sock 
...... 

For this Anti Virus is up to date you must run command freshclam but config before you run it

# cp /etc/freshclam.conf /etc/freshclam.conf.bak
# sed -i -e "s/^Example/#Example/" /etc/freshclam.conf
# freshcalm
update freshcalm
update freshcalm

And setup this service to start and autostart on booting

# systemctl start [email protected]
# systemctl enable [email protected]


Trying

try to scan some directory to make sure this service is worked

# clamscan -r --remove /home/kitsake
try scan with clamav
try scan with clamav
Bangkit Ade Saputra
Bangkit Ade Saputra Hard-working professional with experience and a proven knowledge of operating system, server architecture and system configuration.

Post a Comment for "How to Install AntiVirus Clamav in RHEL 7, for Your Web Application Security"