Page 2 of 3

Posted: 17 Apr 2008, 16:14
by ccccanada
Hello Sarah!

here is what i did now and same results:

admin@ns10 [~]# su - root
Password:
root@ns10 [~]# bash: ldconfig: command not found
-bash: bash:: command not found
root@ns10 [~]# freshclam
freshclam: error while loading shared libraries: libclamav.so.4: cannot open shared object file: No such file or directory
root@ns10 [~]# service clamd restart
Stopping clamd: [FAILED]
Starting clamd: /usr/local/sbin/clamd: error while loading shared libraries: libclamav.so.4: cannot open shared object file: No such file or directory
[FAILED]

Posted: 17 Apr 2008, 16:23
by Sarah
Looks like this time you typed (or pasted in) "bash: ldconfig". Just type "ldconfig" without the quotes and see if that works.

Posted: 17 Apr 2008, 17:07
by ccccanada
Thank you Sarah all is fine now even though i did not think i used any quotes LOL

Posted: 18 Apr 2008, 07:05
by Lestat69
Some other helpful info can be read here as well.

http://forums.cpanel.net/showthread.php ... post360724

Posted: 20 Apr 2008, 08:54
by Sarah
Thanks for that information.

Regardingy your comments on the cPanel forum about your posts never appearing on the configserver blog, as stated at the top of the blog page:
"Please note that support is not provided through this blog - any support related comments will be removed."

The appropriate place to get specific help about anything related to our scripts is either here in this forum or on our helpdesk. Thanks.

ClamAv wont upgrade

Posted: 23 May 2008, 15:05
by joker33
Hi everybody,
I made upgrades yesterday to MailScanner and MailScanner Front-End.
i just upgrade CLAMAV, i did the upgrade using mailscanner Interface in WHM, it keep telling me ClamAv is outdated :

Code: Select all

A new version of ClamAV (Current:v0.91.2 New:v0.93) is available


i found in upgrade log this error :

Code: Select all

checking for gcc bug PR28045... configure: error: your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
.....................
Stopping clamd: [FAILED]
Starting clamd: [FAILED]
i tryed to restart :

Code: Select all

service clamd restart
i get :

Code: Select all

Stopping clamd: [FAILED]
Starting clamd: ERROR: Please define server type (local and/or TCP).
[FAILED]
My MS version :
MailScanner - v4.68.8 installed
ConfigServer MailScanner Script - v2.65 installed and up to date
MailScanner Front-End - v4.22 installed and up to date

CPANEL:WHM :
WHM 11.23.0
cPanel 11.23.1-C24775
FEDORA 4 i686
on standard - WHM X v3.1.0

Can anyone help ?, or has any ideas ?

PS Sarah, i hav lost my account Infos
how can i get it back ?
Eric Zudas.

Posted: 23 May 2008, 15:47
by Sarah
You are running Fedora Core 4, which has a known bug in gcc as stated in the error message you're getting when trying to upgrade:
checking for gcc bug PR28045... configure: error: your compiler has gcc PR28045 bug, use a different compiler, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28045
You will need to either fix that (sorry we can't help with that), switch to a supported OS, or downgrade clamav. To downgrade clamav back to 0.91.2, follow these instructions:

1. Remove current installation of clamav:

Code: Select all

killall clamd

rpm -e clamav-db clamd clamav clamav-devel

/bin/rm -Rfv /usr/bin/clam*
/bin/rm -Rfv /usr/sbin/clam*
/bin/rm -Rfv /usr/lib/libclam*
/bin/rm -Rfv /usr/share/clam*
/bin/rm -Rfv /usr/include/clam*
/bin/rm -Rfv /usr/bin/freshclam*
/bin/rm -Rfv /usr/etc/clamav*

/bin/rm -Rfv /usr/local/bin/clam*
/bin/rm -Rfv /usr/local/sbin/clam*
/bin/rm -Rfv /usr/local/lib/libclam*
/bin/rm -Rfv /usr/local/share/clam*
/bin/rm -Rfv /usr/local/include/clam*
/bin/rm -Rfv /usr/local/bin/freshclam*
/bin/rm -Rfv /usr/local/etc/clamav*
/bin/rm -fv /etc/cron.daily/freshclam
/bin/rm -fv /etc/cron.hourly/freshclam
/bin/rm -fv /etc/cron.d/freshclam

useradd clamav
groupadd clamav
2. Re-install version 0.91.2:

Code: Select all

cd /root/rpms
rm -fv /usr/local/etc/clamd.conf
wget http://prdownloads.sourceforge.net/clamav/clamav-0.91.2.tar.gz
tar -xzf clamav-*
cd clamav-*
./configure --disable-zlib-vcheck
make
make install
replace "Example" "#Example" -- /usr/local/etc/freshclam.conf
replace "Example" "#Example" -- /usr/local/etc/clamd.conf
replace "LocalSocket /tmp/clamd.socket" "LocalSocket /tmp/clamd" -- /usr/local/etc/clamd.conf
freshclam
/bin/cp -fv contrib/init/RedHat/clamd /etc/init.d/clamd
chown root:root /etc/init.d/clamd
chmod x /etc/init.d/clamd
chkconfig clamd on
service clamd restart
cd ..
/bin/rm -Rf clamav-*
cd /root/rpms/
echo 'service[clamav]=x,x,x,service clamd restart,clamd,root' > /etc/chkserv.d/clamav
touch /var/log/clam-update.log
>/var/log/clam-update.log
chown clamav:clamav /var/log/clam-update.log
service chkservd restart
3. Make sure clamav is checked in WHM - Service Manager.

4. Check the MailScanner Configuration and make sure Virus Scannerrs is set to clamd and not clamavmodule.

And be sure not to try to upgrade clamav in MSFE until you have sorted out the OS problem.

Regards,
Sarah

I also have this problem...

Posted: 04 May 2009, 22:03
by Mrpbody4
I all - I have a CentOS machine running clamav / clamd (both with green lights) and in my exim mainlog I see the following:

May 4 15:40:41 frank MailScanner[12029]: Virus and Content Scanning: Starting
May 4 15:40:41 frank MailScanner[13992]: Cannot find Socket (/tmp/clamd.socket) Exiting!

Can someone please provide some assistance? I tried upping the size limit from 200000 to 300000 and that didn't seem to cure it.

Thank you so much!

Posted: 05 May 2009, 10:19
by Sarah
You need to change the setting for "Clamd Socket" in MailScanner Configuration from /tmp/clamd.socket to /tmp/clamd.

Then restart MailScanner and clamd (service clamd restart).

However, you should only have one clam service enabled in service manager. You should enable the "clamav" service under Additional Services, NOT the "clamd" service in the main section, which should have both boxes unchecked so it is disabled.

Regards,
Sarah

Awesome

Posted: 05 May 2009, 14:02
by Mrpbody4
Thanks Sarah,

You rock. That did the trick!