Mike van Vugt wrote:

Keep getting the message below over and over again.

[EMAIL PROTECTED] root]# /usr/local/sbin/clamd
ERROR: Please edit the example config file /etc/clamav//clamav.conf.
ERROR: Can't open/parse the config file /etc/clamav//clamav.conf
[EMAIL PROTECTED] root]#



Edit the file to make sure it's appropriately configured. Make sure you look
at the very top of the file. There's a line that contains "Example" that must
be uncommented or you'll get the "Please edit..." message.


found two entrie of clamav.conf :

]# locate clamav.conf
/home/mike/clamav/clamav-0.68/etc/clamav.conf
/etc/clamav/clamav.conf



Edited them both and stil get the same message.

since you do

* ./configure --sysconfdir=/etc/clamav

then the one you should edit is /etc/clamav/clamav.conf
Examine that file again. Perhaps the Example line is still uncommented.

in my /etc/rc.d/init.d/


You won't have that if you compile from source.

there is no clamav.... Maby thats the problem ??? and if it is howto fix
that ???



If you still have problems, than for beginners, I would suggest either :
1.   install RPM or deb packages.
Usually they have latest STABLE versions. However, for clamav usually many
problems were solved in CVS snapshot versions.

OR,

2. use my prebuilt clamav linux static binary (built from CVS snapshot)
- grab http://clamav.or.id/snapshot/clamav-devel-latest.linux-static.tar.gz
- unpack it
gunzip -c clamav-devel-latest.linux-static.tar.gz | ( cd / ; tar xvf - )
this will put files in /usr/local/etc, /usr/local/bin, /usr/local/sbin, and /usr/local/share/clamav
- create symlinks
in /usr/local/bin, delete the files freshclam, sigtool, clamdscan, and clamscan if exists.
create links :
ln -s clamscan-static clamscan; ln -s clamdscan-static clamdscan;
ln -s sigtool-static sigtool; ln -s freshclam-static freshclam;
in /usr/local/sbin, delete the files clamd and clamav-milter if exists.
create links :
ln -s clamd-static clamd; ln -s clamav-milter-static clamav-milter;
in /usr/local/etc, copy the file clamav.conf.milter.linux to clamav.conf
- run freshclam
- copy /usr/local/share/clamav/clamd.init to /etc/init.d/clamd
- run /usr/local/sbin/clamd or execute `service clamd start`



You should now have a fully-functional clamav (and clamd), which runs as root.
If the above steps work, you can experiment whatever you want afterwards
(customize clamav.conf, runs clamd as different user, compile your own, etc.)



Regards,


Fajar


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to