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

Re: [cobalt-developers] Webalizer Stats Raq 4R



Hi, thanks for the info, but this was done to fix an ongoing Front Page and Webalizer problem. It's working fine on most sites but the newest one it just isn't keeping stats. Below is the original solution posted.

At 12:26 PM 10/8/2000 -0400, you wrote:
>
>For those having problems with Webalizer with the following problems, I came
>up with a way that solves them.
>
>1.  Not able to publish with FrontPage
>2.  Not able to Turn off and not have stats for a users site
>3.  Having to Chmod and Crown Front Page users sites for them to publish.
>
>
>I started thinking,  why not have the stats in the "users" directory
>that way it would not interfere with Frontpage when your users publish
>
>I did a test on this and it works great.
>
>I created a directory in the users directory called stats
>
>I changed the following lines in webalizer.pl to the following
>
>before:
>
>    $webpath = "$prefix/$asite/web";
>    $thepath = "$prefix/$asite/web/stats";
>
>After:
>    $webpath = "$prefix/$asite/users/stats";
>    $thepath = "$prefix/$asite/users/stats/web";
>
>All you need to do is create a directory called "stats" in
>in the site's user directory.
>
>The stats then show up when you goto  http://domainname.com/~stats
>
>This eliminates the problem with Frontpage and second, if you
>didn't want a site to generate a report, you would not put
>a stats directory in their users directory.  You will however
>get a email saying "error: unknow directory" in your admin
>email.  But you could discard it.  The email is good to see
>what sites are not getting the stats generated.
>
>Just thought I would share this with everyone.
>
>Only draw back, you can't have a user called stats, but who
>would anyways.
>
>L. James Prevo
>President
>The Prevo Network
>http://www.prevo.net
>"The Place Where We Unlock Your Doors to the Net!"



At 07:00 PM 12/19/00, you wrote:
Hi tom.

Why are you keeping logs in the user's directory?
They will be scattered everywhere.

I prefer to keep all logs for domains in a separate directory/partition.
Example /www/logs
I have about 100+ domains on this server, and all users get their logs
with the url
http://www.domain.name/weblogs/ (this I get with mod_rewrite)
RewriteEngine on
RewriteLog "/www/logs/rewrite.log
RewriteRule  ^/weblogs/(.*)     /www/logs/%{SERVER_NAME}/$1


This makes it easier for me to manage, and its just a preference.
I have a couple of perl-scripts and a Makefile to automate the
report-creation and log-rotation.
Let me know if interested.

Regards







Tom Hanberg wrote:
>
> Hi,
>
> I took the advice of someone in the users group to solve the Front Page
> /Webalizer stats problem, and I have my stats generated as
> www.thedomain.com/~stats.
>
> I have 5 or 6 sites operating this way perfectly.   I just added a new site
> to the Raq4, and created the stats directory in the users directory for
> that domain.  For some reason, after 3 days Webalizer has not generated any
> stats for this site.  The program doesn't appear to be running on this
> domain, as when I access www.thedomain.com/~stats I am prompted for the
> user name and password, but then all I get is an index of that directory.
>
> I am not aware of having to "turn on" webalizer for each domain, but maybe
> I forgot something from when I set up these others that are working....any
> ideas?
>
> Thanks
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers

--
Atif Ghaffar
Internet Development Manager
4unet AG/SA

-------------------------.
        +41 78 787 51 45 ¦ voice
        +41 24 441 09 03 ¦ fax
    http://www.4unet.net ¦ www
http://atif.developer.ch ¦ homepage
  atif.ghaffar@xxxxxxxxx ¦ email

Do you speak Unix?

_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers