Last year, we published a hint on installing the webserver analysis program Analog. There are, of course, other analysis programs out there, one of which is The Webalizer. The Webalizer is a super fast and flexible open-source analysis package, and it's used on many sites, large and small. It's been the web analysis tool of choice on macosxhints.com for quite a while now.
Installing The Webalizer on OS X is a snap, thanks to a precompiled OS X version available on their download page. Just download the archive and expand it, then open a terminal and type a couple of commands:
% sudo cp webalizer /usr/local/bin/webalizerThis installs The Webalizer (change the path if you don't wish to have it in /usr/local/bin) and the man page for the prgoram. Typing 'rehash' forces the shell to find the new program. Once that's done, just run the webalizer from a directory of your choice:
% sudo chmod 755 /usr/local/bin/webalizer
% sudo cp webalizer.1 /usr/local/share/man/man1/webalizer.1
% rehash
% webalizer /var/log/httpd/access_logThe end result is an index.html file you can open in any web browser showing the usage of your Apache webserver. For more information on configuration options, check the 'man' pages.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20020507010045637