Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th January 2012, 11:12
fxs fxs is offline
Junior Member
 
Join Date: Jan 2012
Posts: 27
Thanks: 2
Thanked 1 Time in 1 Post
Default clamd, ispconfig, debian 6

Hi,
The last update of ispconfig solve most of my problems.... Thanks
I remind you: Server: i7 ssd ovh debian 6 Ispconfig 3.04.2
Got this error messages:
Quote:
socket /var/run/clamav/clamd.ctl: Aucun fichier ou dossier de ce type) at (eval 105) line 373.\n
Jan 17 20:44:29 xxxxxxx amavis[16379]: (16379-17) (!!)WARN: all primary virus scanners failed, considering backups
Jan 17 20:48:31 xxxxxxxxxx amavis[16378]: (16378-19) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: Aucun fichier ou dossier de ce type, retrying (2)
Jan 17 20:48:37 xxxxxxx amavis[16378]: (16378-19) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX
Perhaps its the same problem described in the following thread: http://www.howtoforge.com/forums/sho...t=44828&page=2
Then I try
Code:
root@xxxxxx:~# service clamd status
And get
Code:
clamd: unrecognized service
Then I try
Code:
........
root@xxxxx:~# apt-get -u upgrade
root@xxxxxxx:~# apt-get install clamav-daemon
And get (in French!)
Quote:
Lecture des listes de paquets... Fait
Construction de l'arbre des dpendances
Lecture des informations d'tat... Fait
Certains paquets ne peuvent tre installs. Ceci peut signifier
que vous avez demand l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
t crs ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider rsoudre la situation :
Les paquets suivants contiennent des dpendances non satisfaites :
clamav : Dpend: libclamav6 (>= 0.97.3+dfsg) mais 0.97.2+dfsg-1~squeeze1 devra tre install
E: Paquets dfectueux
This is a mixed of french and english I do not understand. Maybe it could say I want also 0.97.2+dfsg-1~squeeze1 but it's not there? But how to get precisely this package, what is the command?
Why I cannot install clamd?
What is your opinion regarding the error message?
Thank you for your input.
best regards
Reply With Quote
Sponsored Links
  #2  
Old 20th January 2012, 18:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in /etc/apt/sources.list?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 20th January 2012, 18:45
fxs fxs is offline
Junior Member
 
Join Date: Jan 2012
Posts: 27
Thanks: 2
Thanked 1 Time in 1 Post
Default

Hi,

This is:
Code:
deb http://mirror.ovh.net/debian/ squeeze main
deb-src http://mirror.ovh.net/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-$
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-$
Reply With Quote
  #4  
Old 21st January 2012, 12:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please comment out both
http://volatile.debian.org
lines at the end, run
Code:
apt-get update
and try again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 22nd January 2012, 22:24
fxs fxs is offline
Junior Member
 
Join Date: Jan 2012
Posts: 27
Thanks: 2
Thanked 1 Time in 1 Post
Smile

Hello,

Thank you for your answer.
Now it works!


However, I have a second question.
You have done a great tuto
http://www.howtoforge.com/server_monitoring_monit_munin about munin and I have a problem (Im dealing with debian 6 / ispcponfig 3.042).
I did exactly what you wrote in this tuto. However, when the folder monitoring is inside a web site (handled by Ispconfig), munin cannot transfer the various files. When the folder "monitoring is outside, its ok.
Code:
[ERROR] Could not copy style.css from /etc/munin/templates to /var/www/exemple.com/web/monitoring/
I did chown rf munin:munin ., chmod 755 monitoring, etc.. but failed to solve this problem
Inside the folder web, ls -l gives
Code:
-rw-r--r-- 1 web2  client1 3062 15 dc.  02:01 courrier.htm
drwxr-xr-x 2 web2  client1 4096 15 dc.  02:06 demo_img
drwxr-xr-x 2 web2  client1 4096 14 dc.  15:59 error
-rw-r--r-- 1 web2  client1 1861 22 janv. 13:55 index-bis.html
-rwxr-xr-- 1 web2  client1 7007 15 dc.  02:04 index.html
drwxr-xr-x 2 munin munin   4096 22 janv. 20:18 monitoring
drwxr-xr-x 3 web2  client1 4096 15 dc.  02:05 p7epm
drwxr-xr-x 3 web2  client1 4096 15 dc.  02:05 p7iq
drwxr-xr-x 3 web2  client1 4096 15 dc.  02:01 p7iqm
drwxr-xr-x 2 root  root    4096  2 janv. 00:30 stats
notice: /var/www/exemple.com/web/monitoring
I am unable to find the solution about these permissions. Any input will be appreciated.

On the same subject, I would like the munin's graph not to be public. The solution of the tuto doesn't work for me. I copy the .htaccess from the folder stats (webalizer) to the folder monitoring. He works only one time and after that when we come back it is forbidden. I tried also the folder protection from ispconfig
What is the best solution to reach the goal?

thanks
best regards
Reply With Quote
  #6  
Old 23rd January 2012, 11:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Use the default output directory /var/cache/munin/www and then create an alias in your Apache configuration.

http://httpd.apache.org/docs/2.0/mod...ias.html#alias
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 23rd January 2012, 17:06
fxs fxs is offline
Junior Member
 
Join Date: Jan 2012
Posts: 27
Thanks: 2
Thanked 1 Time in 1 Post
 
Default

Hello

thanks for the prompt answer and your great help.

I give a feedback.

I follow your method and links. Then it gives me various error messages. One of these give me a clue: "Alias munin already created". So that I search..
In the folder munin, there ise a file apache.conf with the code
Code:
Alias /munin /var/cache/munin/www
<Directory /var/cache/munin/www>
        Order allow,deny
        Allow from localhost 127.0.0.0/8 ::1
        Options None

        # This file can be used as a .htaccess file, or a part of your apache
        # config file.
        #
        # For the .htaccess file option to work the munin www directory
        # (/var/cache/munin/www) must have "AllowOverride all" or something
        # close to that set.
        #

        # AuthUserFile /etc/munin/munin-htpasswd
        # AuthName "Munin"
        # AuthType Basic
        # require valid-user
        # This next part requires mod_expires to be enabled.
        #

        # Set the default expiration time for files to 5 minutes 10 seconds from
        # their creation (modification) time.  There are probably new files by
        # that time.
        #

    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault M310
    </IfModule>

</Directory>
hope that helps other people

best regards
Reply With Quote
The Following User Says Thank You to fxs For This Useful Post:
falko (24th January 2012)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3.0.3.3 fresh instalation - email tab is empty artur_gib Installation/Configuration 14 28th January 2014 19:02
All files gone after changing quota to 0 spynode General 17 19th January 2012 14:41
Version 1.3 of the ISPConfig 3 Manual is finally available! falko General 44 2nd December 2011 12:04
ISPConfig on Debian 6 with optional PHP 5.2 for single webs Croydon Installation/Configuration 3 6th September 2011 16:35
DNS issue Debian Squeeze ISPConfig 3 Bind mleeroberts HOWTO-Related Questions 4 18th February 2011 18:26


All times are GMT +2. The time now is 00:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.