When cxs is installed, directadmin can usually give the following error.
ClamAV socket [] not found
You must install ClamAV (Clamavconnector on cPanel) or ensure clamd is running to use this product correctly
If the clamd socket is not automatically detected, and to clear this message, you must set clamdsock=/path/to/socket in /etc/cxs/cxs.defaults to the live socket location
You have to fix this error by following the steps below.
First of all, if clamav is not installed, follow the steps below in order.
cd /usr/local/directadmin/custombuild ./build update ./build set clamav yes ./build clamav
After Clamav is activated
nano /etc/clamd.conf
You need to activate the /tmp/clamd.socket setting by applying the command
Press Ctrl + W to remove the # symbol at the beginning of the search for the word LocalSocket, press ctrl+x to save it.
Later on
Apply the nano /etc/cxs/cxs.defaults command and add the code echo clamdsock=/run/clamd.socket at the bottom