• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.

Clamd failed after cPanel v98.0.x upgrade on CloudLinux 6

Started by Kailash, August 26, 2021, 04:44:28 PM

WordPress Premium Themes


After recent cPanel update to cPanel v98.0 on CloudLinux 6 server, clamd is failing as follow:

/scripts/restartsrv_clamd --start
Service "clamd" is already stopped.
Startup Log
/usr/local/cpanel/3rdparty/bin/clamd: error while loading shared libraries: libpcre2-8.so.0: cannot open shared object file: No such file or directory

clamd has failed. Contact your system administrator if the service does not automagically recover.

This is due to a missing shared library object (libpcre2-8.so.0) file that is required by ClamAV which you can confirm by this:
ldd /usr/local/cpanel/3rdparty/bin/clamd
libz.so.1 => /lib64/libz.so.1 (0x00007f64ae2db000)
libpcre2-8.so.0 => not found
libm.so.6 => /lib64/libm.so.6 (0x00007f64ae056000)

The libpcre2-8.so.0 shared library file is provided by the pcre2 package. However that package fails to be installed as a dependency when ClamAV is installed on the server.


To get around this issue, you can manually install the missing package and then restart ClamD:

yum install pcre2

/scripts/restartsrv_clamd --start

WordPress Premium Themes