Good afternoon, today I have more time to fix my issues and I ended with clamav. There is more errors than I expected. So, I tryed to describe how it's working now. Code: clamdscan returns: "ERROR: Could not connect to clamd on LocalSocket /var/lib/clamav/clamd.sock: Connection refused" The problem is the clamav didn't creating /var/lib/clamav/clamd.sock. This .sock is created manually with chown clamav:clamav with permissions -rw-r--r--. It took only 1 B size. When I remove this sock and tryed to create it automatically, nothing happens, just error ERROR: Could not connect to clamd on LocalSocket /var/lib/clamav/clamd.sock: No such file or directory and clamd.sock will not be created. Where can be the problem and any idea how to fix it? The second problem is (probably small), but... Code: /etc/init.d/clamav-daemon status tells me: "Process: 2053895 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=1/FAILURE)" Ok, I'm going to remove the folder manually rm - r /run/clamav and restart the clamav daemon. It tells me now: "Process: 2054069 ExecStartPre=/bin/mkdir /run/clamav (code=exited, status=0/SUCCESS)". When I repeat restart second time, it tells me again the failure row. The folder /run/clamav is completly created automatically with chown clamav:root (is it ok? how to fix?) with permissions drwxr-xr-x. Thank you very much for your help.
I assume you are running ISPConfig? Do this to get some context on this thread: https://forum.howtoforge.com/threads/please-read-before-posting.58408/ Code: "ERROR: Could not connect to clamd on LocalSocket /var/lib/clamav/clamd.sock: Connection refused" I would guess that is because clamd is not running. Probably host is configured to run clamd on command and not as deamon service. Try Code: clamscan /home instead. You should remove the sock files you created manually and maybe reboot the host.