[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Siteadmin at Raq3



Jeff,

Finally, a response. :-)

> This looks like a reasonable solution...
Yes, it looks like one. But it isn't, at least not for me.

> I can dump the stats into a subdirectory called "stats" and make that
> directory password acceptable only.  Does that sound like a reasonable
> solution?
Sure, I did that. But this caused all Frontpage enabled sites to malfunction...., of course, this is no problem if you don't intend
to host Frontpage sites.

This is how I modified the parameters.pl script:

<snip>
## RaQ2: all sites in /var/log/httpd/combined-access, weed them out for the moment...
##
foreach $this (@wz_sites) {
 if (grep /2800R/, @build) {
  print CRON "/usr/local/bin/webalizer -Q -n $this -o /home/sites/$this/web/stats /home/sites/$this/logs/access \n\n";
 }
}
</snip>

This will generate statistics in the www.domainname.com/stats directory of every hosted virtual site using the logs provided at
/home/sites/www.domainname.com/logs/access.

I have also enabled the "Incremental" option in the /etc/webalizer.conf file so that the webalizer keeps a webalizer.current file in
the directory of every virtual site -- this allows me to do logrotation whenever I want.

Parameters.pl file is located at /usr/admserv/cgi-bin/.dnstelecom/Webalizer/parameters.pl, and it will generate a file called
webalizer.cron in your /etc/cron.daily directory. In this script, webalizer is told to generate stats for every virtual site......,
this itself is not a problem if I wouldn't get the "warning buy more memory" messages every couple of hours...... -- I have 256mb
RAM!!!!
My only explanation for this is that the webalizer.cron script that is generated through parameters.pl executes ALL webalizer
instances at the SAME time, and doesn't wait till the first one is finished, and then starts the next process, waits, then starts
the next...., etc. (like the old DOS batch files did).

I hope this helps, and if you have any solution to my memory problem I'd truly appreciate it.

Thanks,
Fathi