Page 1 of 1

Webalizer on windows

Posted: Mon Jul 31, 2006 10:27 am
by batfastad
Hi guys

We have a private intranet web server running apache 2.2 and php5 on windows, and I know it's possible to run the webalizer stats software on windows.

Has anyone found a good guide on how to set it up to work on windows and rotate the apache logs correctly?


Thanks

Ben

Posted: Mon Jul 31, 2006 10:39 am
by themurph
I use WAMP5 for my development boxes. It is windows based, and has a quick easy webalizer plugin. Don't know if it will work with your setup or not, but may be worth a try.

A quick google search also yielded this page:
http://www.snapfiles.com/get/webalizerwin32.html[/url]

Posted: Mon Jul 31, 2006 1:04 pm
by batfastad
Yeah I've got a windows binary already.

Just wondering how to configure it.


I downloaded XAMPP (http://www.apachefriends.org/en/xampp-windows.html) and have been messing around with their configuration of it to suit my needs. Seems to be working!
You could probably just use the whole webalizer folder from the xampp distribution.

Here's what I did anyway...

- Unzipped the webalizer windows binary zip, to c:\webalizer

- Copied the contents of c:\webalizer\sample.conf to a new file c:\webalizer\webalizer.conf
... made the following edits and left everything else as the defaults from the XAMPP webalizer.conf file...

Code: Select all

# changed this to be where my apache access log is - in my case c:\Apache\logs\access.log
LogFile        \Apache\logs\access.log

# this is where webalizer puts its html output - I wanted it in my htdocs dir (I set up some specific Apache directory options for this in httpd.conf to restrict access
OutputDir      \htdocs\webalizer

# changed this to yes because our intranet server uses a self-signed SSL certificate
UseHTTPS       yes
- Created a batch file c:\webalizer\webalizer.bat
... with the following contents...

Code: Select all

@echo off
webalizer.exe -c webalizer.conf
- Scheduled a task in task scheduler to run c:\webalizer\webalizer.bat at 6am every morning, to rebuild the HTML output

And it works! Well, it seems to after a few tests, we'll see whether it works over the weeks and months!

The only reason I wanted to do this was to see if there were any referrers to my section of the intranet (there are other intranet locations that other people develop that might link to ours), and to check on users and traffic.

HTH


Ben