Webalizer tuning

bvvelzen

Verified User
Joined
Oct 30, 2003
Messages
82
Location
Netherlands
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
 
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
 
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
 
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
 
Just double checked on an ensim server and HostnameLookups is off, and i am 100% certain the webalizer gives visitor country statistics
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
ProWebUK said:
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
 
maybe the site specific webalizer.conf's i posted up are what you need? I have no idea, sorry
 
DirectAdmin Support said:
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:

:)
 
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.

Jeff
 
ProWebUK said:
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
 
Back
Top