View Full Version : Webalizer tuning
bvvelzen
11-12-2003, 07:50 AM
Is it possible to tune webalizer by changing the language, resolv the ip's and the locations so that you can see from wich country a visitor is?
Greetings
ProWebUK
11-12-2003, 08:33 AM
I believe to change the language of Webalizer, the binary has to be compiled against the language file using the parameter --with-language=LANGUAGE-NAME
Chris
DirectAdmin Support
11-12-2003, 01:43 PM
Hello
I think you need to turn on the reverse lookup in the /etc/http/conf/httpd.conf:
around line 636, change:
HostnameLookups Off
to
HostnameLookups On
service httpd restart
John
nobaloney
11-12-2003, 03:53 PM
Problem with that, John, is that looking up hostnames in realtime can seriously impact the speed of webservice.
You'd be much better of setting up Webalizer so it does IP lookups when processing the logs.
I don't know how to do it, but I do know it's an option.
Jeff
ProWebUK
11-12-2003, 05:11 PM
Just double checked on an ensim server and HostnameLookups is off, and i am 100% certain the webalizer gives visitor country statistics
ProWebUK
11-12-2003, 05:15 PM
just taken a look at one of our webalizer.conf files and found this, not sure if it will be of any help:
# Country Graph allows the usage by country graph to be disabled.
# Values can be 'yes' or 'no', default is 'yes'.
#CountryGraph yes
DirectAdmin Support
11-12-2003, 10:08 PM
Hello,
You can use your own webalizer.conf file if you place it in:
/usr/local/directadmin/data/templates/custom/webalizer.conf
and it will be called for each domain with the -c option.
John
nobaloney
11-13-2003, 08:59 AM
Thanks, John.
Do you use webazolver at log processing time to resolve IP#s, or do you have IP# resolution turned on for apache logging?
Jeff
ProWebUK
11-13-2003, 09:14 AM
not sure if this will be of any use to any of you, although this is one of the site specific webalizer.conf files i have.
LogFile /home/virtual/DOMAIN/var/log/httpd/access_log
OutputDir /home/virtual/DOMAIN/var/log/webalizer
DNSCache /var/cache/dns_cache.db
DNSChildren 5
Incremental yes
HostName domain.com
PageType htm*
PageType shtm*
PageType cgi
PageType phtml
PageType php*
PageType pl
ReallyQuiet yes
HideURL *.gif
HideURL *.GIF
HideURL *.jpg
HideURL *.JPG
HideURL *.ra
nobaloney
11-13-2003, 09:41 AM
I was hoping John would reply so I wouldn't have to read the man files for webalizer and for apache (just incredibly busy right now) to see which is turned on for resolution.
I prefer using webazolver during the webalizer update run as it doesn't slow down delivery of website information if the requestor's IP# can't be resolved, but it can cause problems as well; this morning one of our clients had multiple instances of webazolver running 7 hour after the webalizer run started.
Jeff
DirectAdmin Support
11-13-2003, 11:10 AM
Hi Jeff,
During the tally, we run:
/usr/bin/webalizer -p -n domain.com -o /path/stats /logs/log
or
/usr/bin/webalizer -c /path/webliazer.conf -p -n domain.com -o /path/stats /logs/log
if webalizer.conf is in the templates/custom directory.
It doesn't touch webazolver. I was just reading the man page and it said that you just need to specify the DNSCache file then it should do the lookups, so create the webalizer.conf, add the DNSCache line and that should do it. (I didn't test it out)
John
nobaloney
11-13-2003, 11:37 AM
Thanks, John.
I'm going nuts this morning <frown>, but I'll look at it and the httpd.conf settings when I have a chance.
If you've got DNS resolution turned on in httpd.conf I'd have to turn it off to speed up http responses; then turn it on in webalizer if I lost the country resolution in the webalizer stats.
My recollection is it has to be compiled in, but I don't have the time to check it right now.
Nor do I expect you to take the time.
Thanks.
Jeff
bvvelzen
11-19-2003, 05:59 AM
Originally posted by ProWebUK
Just double checked on an ensim server and HostnameLookups is off, and i am 100% certain the webalizer gives visitor country statistics
I waited for some days but still nothing?
Top 1 of 1 Total Countries
# Hits Files KBytes Country
1 15587 100.00% 6849 100.04% 140915 100.00% Unresolved/Unknown
I have installed the webalizer-2.01_10-11 rpm.
Greetings
ProWebUK
11-19-2003, 06:02 AM
maybe the site specific webalizer.conf's i posted up are what you need? I have no idea, sorry
leblover
08-08-2004, 01:28 AM
Originally posted by DirectAdmin Support
Hello
I think you need to turn on the reverse lookup in the /etc/http/conf/httpd.conf:
around line 636, change:
HostnameLookups Off
to
HostnameLookups On
service httpd restart
John
it work with me so good but its
/etc/httpd/conf/httpd.conf
not
/etc/http/conf/httpd.conf:
:)
nobaloney
08-08-2004, 07:17 AM
O'Reilly (the publisher) has seen fit to give away a pdf version chapter 18 (Apache Configuration) of their "WebMaster in a Nutshell" quick reference bok; you can download it here (http://www.oreilly.com/catalog/webmaster3/chapter/ch18.pdf).
Jeff
Originally posted by ProWebUK
not sure if this will be of any use to any of you, although this is one of the site specific webalizer.conf files i have.
LogFile /home/virtual/DOMAIN/var/log/httpd/access_log
OutputDir /home/virtual/DOMAIN/var/log/webalizer
DNSCache /var/cache/dns_cache.db
DNSChildren 5
Incremental yes
HostName domain.com
PageType htm*
PageType shtm*
PageType cgi
PageType phtml
PageType php*
PageType pl
ReallyQuiet yes
HideURL *.gif
HideURL *.GIF
HideURL *.jpg
HideURL *.JPG
HideURL *.ra
John
Are you using this on a DA system as elsewhere on this forum DA support says that you can only tweak the webaliizer.conf file on a non domain basis?
Regards
Jon
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.