ClamAV and RHEL 9.5

I’m trying to get ClamAV working. I’ve been following this article for installation. Axigen is installed in RHEL 9.5.

… but get stuck at this …

usermod -aG axigen clamscan
usermod: user ‘clamscan’ does not exist

and this …

systemctl enable clamd@scan
systemctl restart clamd@scan
Failed to enable unit: Unit file clamd@scan.service does not exist.
Failed to restart clamd@scan.service: Unit clamd@scan.service not found.

The commands for SELinux were executed without error.
I have also created the ‘freshclam.service’ file in /usr/lib/systemd/system/

In Axigen WebAdmin>AntiVirus & AntiSpam> Supported Applications it shows as:

ClamAV - Built-in External - Could not connect

Which is no surprise given the above errors tying to install ClamAV.

I may have resolved the issue. Essentially, I started again. :slight_smile:
So for others, this is what I did …

I removed ClamAV …
dnf remove clamav clamav-update clamd

I removed old config files and their backups leftover from the previous ClamAV install …
/etc/clamd.d/scan.conf
/etc/freshclam.conf

I stopped Axigen …
/etc/init.d/axigen stop

I reinstalled Axigen (just to ensure it was a clean’ish install) …
dnf reinstall axigen-10.6.1-1.x86_64.rpm -y

I cleaned the dnf caches etc (maybe not necessary, but just to start fresh) …
dnf clean all

I reinstalled EPEL (again, maybe not necessary, just a refresh) …
dnf reinstall epel-release

I then reinstalled ClamAV per the Axigen KB article above …
dnf install clamav clamav-update clamd
This time every step completed without errors :slight_smile:

And finally restarted Axigen …
/etc/init.d/axigen start

Back in WebAdmin and enabled and configured ClamAV.

I need to do some testing, but I’m quietly confident all is well.

1 Like