Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: win32

Clamd as a service in Windows 2003 Server

 

 

ClamAV win32 RSS feed   Index | Next | Previous | View Threaded


clamav at mtcom

Oct 22, 2007, 12:58 AM

Post #1 of 8 (2948 views)
Permalink
Clamd as a service in Windows 2003 Server

Hi

I've downloaded and installed ClamAV to run clamd as a service on my Server as I want to scan mail attachments by my mailserver.

But I simply cannot get clamd installed as a service. I've first tried with the MS resource kit tools and installed clamd.exe as a service. But I can never start it with that.

Then I found in the archives here a zip-file with a vb-script that installs clamd as a service and initially it was running, but when I try to start it now, I get the error:

"Could not start the ClamAV for Windows service on Local Computer

Error 193: 0xc1"

Does anybody know how to install it as a service?

Thanks in advance.

Matthias


njh at bandsman

Oct 22, 2007, 3:32 AM

Post #2 of 8 (2877 views)
Permalink
Re: Clamd as a service in Windows 2003 Server [In reply to]

Matthias Karl wrote:
> Hi
>
> I've downloaded and installed ClamAV to run clamd as a service on my Server as I want to scan mail attachments by my mailserver.
>
> But I simply cannot get clamd installed as a service. I've first tried with the MS resource kit tools and installed clamd.exe as a service. But I can never start it with that.
>
> Then I found in the archives here a zip-file with a vb-script that installs clamd as a service and initially it was running, but when I try to start it now, I get the error:
>
> "Could not start the ClamAV for Windows service on Local Computer
>
> Error 193: 0xc1"
>
> Does anybody know how to install it as a service?

Install the "powertools" from njh.bandsman.co.uk/clamav.htm
>
> Thanks in advance.
>
> Matthias

-Nigel


--
Nigel Horne. Adjudicator, Arranger, Band Trainer, Composer, Tutor, Typesetter.
NJH Music, Barnsley, UK. ICQ#20252325
njh [at] bandsman http://www.bandsman.co.uk


bret.miller at wcg

Oct 22, 2007, 9:17 AM

Post #3 of 8 (2872 views)
Permalink
Re: Clamd as a service in Windows 2003 Server [In reply to]

> I've downloaded and installed ClamAV to run clamd as a
> service on my Server as I want to scan mail attachments by my
> mailserver.
>
> But I simply cannot get clamd installed as a service. I've
> first tried with the MS resource kit tools and installed
> clamd.exe as a service. But I can never start it with that.
>
> Then I found in the archives here a zip-file with a vb-script
> that installs clamd as a service and initially it was
> running, but when I try to start it now, I get the error:
>
> "Could not start the ClamAV for Windows service on Local Computer
>
> Error 193: 0xc1"
>
> Does anybody know how to install it as a service?

In addition to his power tools, I also have a service that runs clamd. You
can get it from http://webmail.wcg.org/~support/#clamav. It's semi-supported
freeware, and I can provide the source (C#) if you're into modifying it
yourself.

Bret


clamav at mtcom

Oct 22, 2007, 9:41 AM

Post #4 of 8 (2884 views)
Permalink
Re: Clamd as a service in Windows 2003 Server [In reply to]

>> I've downloaded and installed ClamAV to run clamd as a
>> service on my Server as I want to scan mail attachments by my
>> mailserver.
>>
>> But I simply cannot get clamd installed as a service. I've
>> first tried with the MS resource kit tools and installed
>> clamd.exe as a service. But I can never start it with that.
>>
>> Then I found in the archives here a zip-file with a vb-script
>> that installs clamd as a service and initially it was
>> running, but when I try to start it now, I get the error:
>>
>> "Could not start the ClamAV for Windows service on Local Computer
>>
>> Error 193: 0xc1"
>>
>> Does anybody know how to install it as a service?
>
>In addition to his power tools, I also have a service that runs clamd. You
>can get it from http://webmail.wcg.org/~support/#clamav. It's semi-supported
>freeware, and I can provide the source (C#) if you're into modifying it
>yourself.

Bret

I have installed your script, which I found in the archives of this mailing list.
But here I get this error message. Do you have an idea what the prob could
be?

Matthias


bret.miller at wcg

Oct 22, 2007, 9:54 AM

Post #5 of 8 (2874 views)
Permalink
Re: Clamd as a service in Windows 2003 Server [In reply to]

> >> I've downloaded and installed ClamAV to run clamd as a
> >> service on my Server as I want to scan mail attachments by my
> >> mailserver.
> >>
> >> But I simply cannot get clamd installed as a service. I've
> >> first tried with the MS resource kit tools and installed
> >> clamd.exe as a service. But I can never start it with that.
> >>
> >> Then I found in the archives here a zip-file with a vb-script
> >> that installs clamd as a service and initially it was
> >> running, but when I try to start it now, I get the error:
> >>
> >> "Could not start the ClamAV for Windows service on Local Computer
> >>
> >> Error 193: 0xc1"
> >>
> >> Does anybody know how to install it as a service?
> >
> >In addition to his power tools, I also have a service that
> runs clamd. You
> >can get it from http://webmail.wcg.org/~support/#clamav.
> It's semi-supported
> >freeware, and I can provide the source (C#) if you're into
> modifying it
> >yourself.
>
> Bret
>
> I have installed your script, which I found in the archives
> of this mailing list.
> But here I get this error message. Do you have an idea what
> the prob could be?

Is there a file called "program" in the root directory of the drive where
"Program Files" exists? If so, it appears that could cause this error.

Microsoft's technote says the error means "invalid exe format", which could
indicate that the ClamDaemonService.exe file didn't get copied correctly
into the \Program Files\clamAV\service folder. Check to make sure it's there
and that it's properties indicate a version (meaning that it thinks it's a
program).

There seems to be a bug somewhere that causes the "program" file to get
created on some computers. I'll see if I can figure out what is being
created as that and if I can fix it.

Bret


clamav at mtcom

Oct 23, 2007, 4:10 AM

Post #6 of 8 (2864 views)
Permalink
Re: Clamd as a service in Windows 2003 Server [In reply to]

>Is there a file called "program" in the root directory of the drive where
>"Program Files" exists? If so, it appears that could cause this error.

>Microsoft's technote says the error means "invalid exe format", which could
>indicate that the ClamDaemonService.exe file didn't get copied correctly
>into the \Program Files\clamAV\service folder. Check to make sure it's there
>and that it's properties indicate a version (meaning that it thinks it's a
>program).

>There seems to be a bug somewhere that causes the "program" file to get
>created on some computers. I'll see if I can figure out what is being
>created as that and if I can fix it.

Hi Bret

Yes, I did have a file called program in my root. I deleted it and started the service
and it did start without an error message. The ClamDaemonService.exe is in that
directory and it has a Version.

After I started the service, the Program file was created again with the following
text in it:

Tue Oct 23 13:05:54 2007 -> +++ Started at Tue Oct 23 13:05:54 2007
Tue Oct 23 13:05:54 2007 -> clamd daemon 0.91.2 (OS: windows, ARCH: i386, CPU: i686)
Tue Oct 23 13:05:54 2007 -> Log file size limited to 1048576 bytes.
Tue Oct 23 13:05:54 2007 -> Reading databases from C:\Program
Tue Oct 23 13:05:54 2007 -> Not loading PUA signatures.
Tue Oct 23 13:05:54 2007 -> ERROR: Malformed database
--------------------------------------
Can't change dir to C:\Program

After it started the service, I have deleted the file, but it got recreated after a couple
of minutes.

Matthias


bret.miller at wcg

Oct 23, 2007, 8:16 AM

Post #7 of 8 (2873 views)
Permalink
Re: Clamd as a service in Windows 2003 Server [In reply to]

> >Is there a file called "program" in the root directory of
> the drive where
> >"Program Files" exists? If so, it appears that could cause
> this error.
>
> >Microsoft's technote says the error means "invalid exe
> format", which could
> >indicate that the ClamDaemonService.exe file didn't get
> copied correctly
> >into the \Program Files\clamAV\service folder. Check to make
> sure it's there
> >and that it's properties indicate a version (meaning that it
> thinks it's a
> >program).
>
> >There seems to be a bug somewhere that causes the "program"
> file to get
> >created on some computers. I'll see if I can figure out what is being
> >created as that and if I can fix it.
>
> Hi Bret
>
> Yes, I did have a file called program in my root. I deleted
> it and started the service
> and it did start without an error message. The
> ClamDaemonService.exe is in that
> directory and it has a Version.
>
> After I started the service, the Program file was created
> again with the following
> text in it:
>
> Tue Oct 23 13:05:54 2007 -> +++ Started at Tue Oct 23 13:05:54 2007
> Tue Oct 23 13:05:54 2007 -> clamd daemon 0.91.2 (OS: windows,
> ARCH: i386, CPU: i686)
> Tue Oct 23 13:05:54 2007 -> Log file size limited to 1048576 bytes.
> Tue Oct 23 13:05:54 2007 -> Reading databases from C:\Program
> Tue Oct 23 13:05:54 2007 -> Not loading PUA signatures.
> Tue Oct 23 13:05:54 2007 -> ERROR: Malformed database
> --------------------------------------
> Can't change dir to C:\Program
>
> After it started the service, I have deleted the file, but it
> got recreated after a couple of minutes.

OK... For some reason, clamd is writing a log there. Try this:

Edit the clamd.conf and freshclam.conf both in the "service" folder. For
clamd.conf, uncomment the LogFile line and put quotes around the path. For
freshclam.conf, the line is already uncommented, so just put quotes around
the path.

Bret


clamav at mtcom

Oct 24, 2007, 5:27 AM

Post #8 of 8 (2874 views)
Permalink
Re: Clamd as a service in Windows 2003 Server [In reply to]

>OK... For some reason, clamd is writing a log there. Try this:
>
>Edit the clamd.conf and freshclam.conf both in the "service" folder. For
>clamd.conf, uncomment the LogFile line and put quotes around the path. For
>freshclam.conf, the line is already uncommented, so just put quotes around
>the path.

Hehe, thank you.

I've done that already, but in the wrong .conf-file. I've done it now in the .conf
files in the service directory and now it works.

Great. Thanks for your help.

Matthias

ClamAV win32 RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.