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

[cobalt-users] Re: [Cobalt] RaQ2 and Analog (revisited)



Ahoy Tim

You ask:
__________________
I need to set up my clients sites so that they can get their webstats from
their browsers by entering the address something similar to
"www.clientsdomain.co.uk/stats/analog" or whatever.

Each client would have has his own Analog config file within their stats
directory.
__________________

Here's an easy way:

1) For each domain, create a directory thus: /home/sites/siteX/web/stats
2) Into that directory, copy analog.cfg (you'll find the original at
/etc/analog.cfg)
3) Edit these four lines of analog.cfg:
    HEADERFILE /home/sites/siteX/web/stats/header
    HOSTNAME "mydomain.com"
    OUTFILE /home/sites/siteX/web/stats/report.html
    LOGFILE /home/sites/siteX/logs/access
    IMAGEDIR img/
4) copy analog's img directory, with contents, to
/home/sites/siteX/web/stats/img
5) create a file named logreports in /etc/cron.weekly
6) for each domain, add this line to it:
                /usr/local/sbin/analog
+g/home/sites/siteX/web/stats/analog.cfg

If any of this is unclear, let me know at rdavis@xxxxxxxxxxx

With not much effort, you should be able to make a script which will do all
this for you each time you set up a domain.

Aloha
Davis