Control Web Panel
WebPanel => E-Mail => Topic started by: naoydu54 on February 02, 2018, 09:48:00 AM
-
Hello,
I just installed cwp and I can not install clamav.
In the dashbord the status is "activating"
When I try to restart the service I have this message:
Job for clamd.service failed because timeout was exceeded. See "systemctl status clamd.service" and "journalctl -xe" for details.
[root@server ~]# systemctl status clamd.service
● clamd.service - clamd scanner () daemon
Loaded: loaded (/usr/lib/systemd/system/clamd.service; static; vendor preset: disabled)
Active: activating (start) since ven. 2018-02-02 10:43:13 CET; 12s ago
Control: 1389 (clamd)
CGroup: /system.slice/clamd.service
└─1389 /usr/sbin/clamd -c /etc/clamd.d/amavisd.conf --foreground=...
févr. 02 10:43:23 server.conceptsiteweb.fr clamd[1389]: Portable Executable...
févr. 02 10:43:23 server.conceptsiteweb.fr clamd[1389]: ELF support enabled.
févr. 02 10:43:23 server.conceptsiteweb.fr clamd[1389]: Mail files support ...
févr. 02 10:43:23 server.conceptsiteweb.fr clamd[1389]: OLE2 support enabled.
févr. 02 10:43:23 server.conceptsiteweb.fr clamd[1389]: PDF support enabled.
févr. 02 10:43:23 server.conceptsiteweb.fr clamd[1389]: SWF support enabled.
févr. 02 10:43:23 server.conceptsiteweb.fr clamd[1389]: HTML support enabled.
févr. 02 10:43:23 server.conceptsiteweb.fr clamd[1389]: XMLDOCS support ena...
févr. 02 10:43:23 server.conceptsiteweb.fr clamd[1389]: HWP3 support enabled.
févr. 02 10:43:23 server.conceptsiteweb.fr clamd[1389]: Self checking every...
Hint: Some lines were ellipsized, use -l to show in full.
Vous avez du courrier dans /var/spool/mail/root
[root@server ~]# journalctl -xe
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Limits: MaxHTMLNoTags limit set to 2097152 bytes.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Limits: MaxScriptNormalize limit set to 5242880 byte
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Limits: MaxZipTypeRcg limit set to 1048576 bytes.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Limits: MaxPartitions limit set to 50.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Limits: MaxIconsPE limit set to 100.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Limits: MaxRecHWP3 limit set to 16.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Limits: PCREMatchLimit limit set to 10000.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Limits: PCRERecMatchLimit limit set to 5000.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Limits: PCREMaxFileSize limit set to 26214400.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Archive support enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Algorithmic detection enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Portable Executable support enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: ELF support enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Mail files support enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: OLE2 support enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: PDF support enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: SWF support enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: HTML support enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: XMLDOCS support enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: HWP3 support enabled.
févr. 02 10:44:54 server.conceptsiteweb.fr clamd[1639]: Self checking every 600 seconds.
févr. 02 10:45:01 server.conceptsiteweb.fr systemd[1]: Started Session 93 of user root.
-- Subject: L'unité (unit) session-93.scope a terminé son démarrage
-
Run this command and paste the output here
uname -sr
-
Hey, I've had the same problem, on both of my machines, i am trying to gather my notes to help you.
I eventually fixed it.. it was a pain. :/
until i can replicate the fix again, here is my uname -sr:
Linux 3.10.0-693.17.1.el7.x86_64
it involved editing the /etc/clamd.conf file about 4 different places, as far as i know.
one major one was the DirectoryData was /var/clamd i think i changed it to /var/LIB/clamd
and another of hand that i remember was the username, was clamav, i believe i changed that to reflect "clamupdate"
as the "clamav" was NOT in my /etc/passwd list..
...eventually.. i got it working, i will post what i can step-by step, IF i can figure it out again.
Cheers
-
ok, basically, i followed this...
https://linux-audit.com/install-clamav-on-centos-7-using-freshclam/ (https://linux-audit.com/install-clamav-on-centos-7-using-freshclam/)
instead of typing all my cmd's, i think that should work... if not, let me know i will look at my notes..
for anything that was not mentioned in the link above..
HTH
Cheers