I can try .... .htaccess rules are 'promoted' to sub-directories. E.g. Apache traverses the whole tree to look for .htaccess files and if found processes them. What happens (with you mailstats) if you rename/remove ..../web1/web/.htaccess? Just for testing
its definitely not that .htaccess - I renamed to .htaccess.bckp and the problem persists, even the same error in the log file...
how is your apache vhost entry looks like for that host? do you have cgi module installed in apache? can you check the mailgraph.cgi in another host where wordpress isn't installed?
It seems to be a permissions problem: http://cephas.net/blog/2005/06/17/awstats-installation-notes/ http://cc.uoregon.edu/cnews/backissues/webserver_upgrade.html http://archive.apache.org/gnats/2747 http://lists.trustix.org/pipermail/tsl-discuss/2004-July/011507.html But from what I see everything looks fine. Maybe one of the parent directories has too strict permissions?
I just checked it in another vhost, here is the error log: And indeed this directory does not exist: /var/lib/mailgraph/ ? The vhost for the first vhost where I checked: enabled apach2 modules: ###edit### got it to also show no longer errors fro mthe first vhost, I simply kept trying all chmods and chowns... but still it says:
this directory should exist. It seems that you haven't configured mailgraph properly yet. create this directory, then try to start the mailgraph daemon, check for errors. if there is no errors at start mailgrap populate /var/lib/mailgraph directory with .rrd files soon. your configuration files seems fine to me.
thx. it was indeed my configuration file, it seems that while installing, reinstalling etc. I messed them up. Its working now, you can have a peek here, but still no spam and virus mails being logged :-( here are the remaining errors from my logfile: ###edit### so the perms are right ... and yes I see the spam and virus entries inside the /var/log/mail.log file, but it seems mailgraph is not picking them up. I restarted mailgraph still no luck. any more changes needed? ###edit2### also my mailgraph.cgi has a line like this: my $rrd_virus = '/var/lib/mailgraph/mailgraph_virus.rrd'; doens't it need a similar line to know where spam lies? ###edit3### helped myself a bit, as I found out mailgraph.pl seems to not include the right "string" to catch spamd messages from the mail.log so I tried modifying these lines inside mailgraph.pl I inserted the red code above. Also had to insert this code to catch viruses:
what is in your /var/log/mail.log file? how is the log entries looks like? what is in the mailgraph config file? have you configured properly your antivirus.rc and spamassassin.rc files to log properly to syslog? I didnt had to edit mailgraph.pl file, i could do all needed configurations inside in these two .rc files.
here is how the mail.log file looks like: so all works like you described BUT mailgraph does not know how these log entries look like. The definitions it looks for are inside mailgraph.pl you have to do the changes I quoted above although I am a bit unsure about the one concerning viruses as it does not show any viruses until now... but spam works fine now. ###edit### VIRUSes started appearing in my graphs too although I have beens sending myself EICAR viruses the whole day ;-)
in the meantime I am back to having no graphs show up. can we get back to the roots? I am so tired of trying this to run :-( what should I check first? see it here in action: http://www.web-designerz.de/cgi-bin/mailgraph.cgi h898552:/var/log# tail -f /var/www/web1/log/error.log [Thu Oct 18 13:30:16 2007] [error] [client 82.77.200.145] ERROR: Opening '/var/lib/mailgraph/,cgi-bin/mailgraph_1_err.png' for write: No such file or directory, referer: http://www.web-designerz.de/cgi-bin/mailgraph.cgi [Thu Oct 18 13:30:16 2007] [error] [client 82.77.200.145] Premature end of script headers: mailgraph.cgi, referer: http://www.web-designerz.de/cgi-bin/mailgraph.cgi [Thu Oct 18 13:30:16 2007] [error] [client 82.77.200.145] ERROR: Opening '/var/lib/mailgraph/,cgi-bin/mailgraph_2.png' for write: No such file or directory, referer: http://www.web-designerz.de/cgi-bin/mailgraph.cgi [Thu Oct 18 13:30:16 2007] [error] [client 82.77.200.145] Premature end of script headers: mailgraph.cgi, referer: http://www.web-designerz.de/cgi-bin/mailgraph.cgi [Thu Oct 18 13:30:16 2007] [error] [client 82.77.200.145] ERROR: Opening '/var/lib/mailgraph/,cgi-bin/mailgraph_2_err.png' for write: No such file or directory, referer: http://www.web-designerz.de/cgi-bin/mailgraph.cgi [Thu Oct 18 13:30:16 2007] [error] [client 82.77.200.145] Premature end of script headers: mailgraph.cgi, referer: http://www.web-designerz.de/cgi-bin/mailgraph.cgi [Thu Oct 18 13:30:17 2007] [error] [client 82.77.200.145] ERROR: Opening '/var/lib/mailgraph/,cgi-bin/mailgraph_3.png' for write: No such file or directory, referer: http://www.web-designerz.de/cgi-bin/mailgraph.cgi [Thu Oct 18 13:30:17 2007] [error] [client 82.77.200.145] Premature end of script headers: mailgraph.cgi, referer: http://www.web-designerz.de/cgi-bin/mailgraph.cgi [Thu Oct 18 13:30:17 2007] [error] [client 82.77.200.145] ERROR: Opening '/var/lib/mailgraph/,cgi-bin/mailgraph_3_err.png' for write: No such file or directory, referer: http://www.web-designerz.de/cgi-bin/mailgraph.cgi
ok, found the error: the tempfolder was not correct: I changed this line inside my mailgraph.cgi: my $tmp_dir = '/tmp/mailgraph'; and chmodded that folder to 777 => it seems mailgraph.cgi was not allowed to write inside the original fodler.