ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
ERROR: Can't parse the config file /usr/local/etc/clamd.conf
igoldman


Joined: 25 Dec 2005
Posts: 1
Reply with quote
Hello to all members in this forum.
I have installed ClamWin Free Antivirus 0.87.1
I use windows 2003 server std. edition.

whene I run the freshclam.exe file , then I get the following error msg :
ERROR: Can't parse the config file /usr/local/etc/clamd.conf

the path where clamAV is installed in my server is :
C:\Program Files\ClamWin\bin

thanks to all who help me.
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 1751
Reply with quote
clamwin actually creates a freshclam.conf file on the fly whne doing a databasew update based on your config settings. TO use freshclamfrom command line you need to create freshclam.conf and tell freshclam where it is.

an example frschclam.conf with all fileds documented can be found in clamav distribution:
http://clamav.net/stable.php#pagestart http://clamav.net/stable.php#pagestart

you will need

DatabaseDirectory c:/<path to your db files>/
DatabaseMirror database.clamav.net

parameters and maybe others depending on your config

Alch
View user's profileSend private message
aceinc


Joined: 03 Feb 2006
Posts: 2
Reply with quote
OK, I have installed clamav, and the version of freshclam in clamav-devel works swimmingly. However, the freshclam.conf files located in clamav-devel/etc use virtual path such as;

DatabaseDirectory /cygdrive/c/clamav-devel/share/clamav

Is the solution;

Use the version from clamav-devel, and modify the conf files to point to;

C:\Documents and Settings\All Users\.clamwin\db

using;

DatabaseDirectory /cygdrive/cDocuments and Settings/All Users/.clamwin/db

If this is the solution these questions follow;

1) Does this mean everytime I upgrade clamwin, I must upgrade clamav?

2) Unix is usually particular about spaces in filenames an folders, how do I address this with cygwin in the example above?

3) Is there a better way?

Paul
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 1751
Reply with quote
Quote:

Use the version from clamav-devel, and modify the conf files to point to;

All you need form clamav-devel is the freshclam.conf, then you don't need clamav-devel and can use freschlam.exe found in clamwin/bin

Quote:

C:\Documents and Settings\All Users\.clamwin\db
using;
DatabaseDirectory /cygdrive/c/Documents and Settings/All Users/.clamwin/db

yes using /cygdrive/c/ is the best way to tranlate filenames to Cygwin environment

Quote:

1) Does this mean everytime I upgrade clamwin, I must upgrade clamav?

No, clamav includes freshclam form the lates stable clamav release. All you need to do is keep your freshclam.conf file and use it when running freshclam.exe from command line

Quote:

2) Unix is usually particular about spaces in filenames an folders, how do I address this with cygwin in the example above?

Cygwin (unix emulatuion layer for Windows, that clamwin uses) is case insensitive

Quote:

3) Is there a better way?

Not really Smile
View user's profileSend private message
ERROR: Can't parse the config file /usr/local/etc/clamd.conf
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic