LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-23-2004, 02:12 PM   #1
nixinbarrie
Member
 
Registered: Apr 2004
Posts: 43

Rep: Reputation: 15
Question Help needed with Webalizer


Hello to everyone,

I forgot to setup one thing a while back when I was setting up Apache.

I have never setup weablizer before and I would really like to.

Is there an easy step by step how to out there for Fedora Core 1?

I am sure it's not that difficult and would really like to get it up and running as soon as possible.

Thanks for all your help and I will look forward to hearing back from you in the near future.

Take care,

Chris.

PS: I know that webalizer is already installed on my system I just need to know how to configure it properly so that I can make it work and access it from my domain name, ie: www.mydomain.com/webalizer

I took a quick look at /etc/webalizer.conf.sample but have not figured it out yet....

Any help would be much appreciated.
 
Old 04-24-2004, 09:42 PM   #2
mcmanta
LQ Newbie
 
Registered: Apr 2004
Location: LI, New York
Distribution: Fedora Core 1
Posts: 7

Rep: Reputation: 0
im Also looking for help on this topic

Im also running fedora and would like to know where I can find information on how to setup weablizer. Does weablizer track ftp usage?

 
Old 04-24-2004, 11:03 PM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
It's real simple to setup.

In your webalizer.conf:

LogFile /var/log/apache/access_log <- change this to where your access log is
OutputDir /var/www/htdocs/webalizer <- change this to your Apache document root + '/webalizer'. Make sure the 'webalizer' directory exists first

That's really all you should need for it to work. Now type 'webalizer' on the command line and surf to www.yourdomain.com/webalizer, and if you are happy with the results set it up as a cron task.
 
Old 04-24-2004, 11:50 PM   #4
mcmanta
LQ Newbie
 
Registered: Apr 2004
Location: LI, New York
Distribution: Fedora Core 1
Posts: 7

Rep: Reputation: 0
Talking

it worked !! thanks.
 
Old 04-26-2004, 09:38 AM   #5
nixinbarrie
Member
 
Registered: Apr 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Hi bulliver,

Thanks for your reply. It worked, however I still have a couple of questions.

I am running Fedora Core 1 and when I installed I did a full install which included webalizer. Now there was already a cron task setup for webalizer and I am not sure if it is working properly or not.

I completed the steps you have illustrated above and I was able to review the graphs and charts that webalizer creates for you. But the date the report was generated is still yesterdays date. Is webalizer not supposed to update on a daily basis with a cron job.

If this is true than something must be wrong with my cron job.

Also, I am running multiple virtual domains and I use different error/access logs for each one. So I setup my webalizer.conf file to point to a specific domain access log. For some reason I am not able to just access webalizer by going to www.mydomain.com/webalizer I have to go to www.mydomain.com/webalizer/index.html. I have checked all the permissions and it will not use the Directory Index in apache. (IE: index.html).

Also, for some reason in the report, webalizer is not distinguishing the countries, etc. I am receiving 100% unknown/unresolved. Any idea why?

And last but not least, when I did the full install of Fedora along with webalizer included, it automatically installed, configured and ran webalizer automatically in a dir called usage with the sample webalizer.conf file. Now all the files were in the dir called usage but it would not work by going to mydomain.com/webalizer. Any idea why this is setup like this by default in fedora? The usage dir is located at /var/www/html/usage

Well if you could provide me with some insight to any of these questions I would greatly appreciate it.

Thanks in advance,

Take care,

Chris.
 
Old 04-26-2004, 04:16 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I wouldn't assume that it is set up automatically as a cron task. I would have a look in your cron.daily folder and see if there is a script called webalizer. If there is not then you can add something as simple as:
Code:
#!/bin/bash

webalizer
Make sure you 'chmod +x' it.

Next check your crontab file and double check that your daily cron jobs are actually being executed once a day at a suitable time. (usually midnight, but I have mine go at 4:00 am).

As for having to type index.html, have a look in your apache.conf and be sure that index.html is included in the 'Directory Index' directive.

Not sure what to say about your other question. Sorry bud. If your cron jobs look like they are set up properly then run webalizer manually and see if there is an error.

Oh ya, "100% unknown/unresolved" is what I usually have too, sometimes I get 1-2% US/Commercial. I've never worried about it too much but you can ask on the webalizer mailing list if you are really curious.
 
Old 04-26-2004, 04:44 PM   #7
nixinbarrie
Member
 
Registered: Apr 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for your help once again.

I checked and there was a cron job but it was using an if statement to check for access_log when I have already setup my access logs on a per site basis, so I just changed it to run webalizer and that's it.

Thanks for you help, that should do the trick.

Take care,

Chris.
 
Old 05-10-2004, 06:27 PM   #8
88guy
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9
Posts: 25

Rep: Reputation: 15
Webalizer installation

I have a related question, I guess. I installed Webalizer from the source code - quite awhile ago - on RedHat 7.3. I used a tutorial I found on the net and converted it to a script. It works great. But when I tried to upgrade to RedHat 9 gdlib is in another location. I need to edit the Makefile script in the webalizer package. Can someone tell me the path to gdlib, or gd, in RedHat 9 (I don't have it installed on any PC at the moment). Hope this made sense.......Thanks.
 
Old 05-10-2004, 11:47 PM   #9
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Mine is in /usr/lib/
 
Old 06-01-2004, 07:37 AM   #10
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Rep: Reputation: 32
hi guys i'm trying to set up Webalizer on White Box

yes there a way to trun it on.

I get Forbidden You don't have permission to access /usage/ on this server.

This is whats in my cron.daily

Code:
#! /bin/bash
# update access statistics for the web site

if [ -s /var/log/httpd/access_log ] ; then
    /usr/bin/webalizer
fi

exit 0
Do i need to set perms for /var/www/usage/ ?


TT
 
Old 06-01-2004, 11:26 PM   #11
88guy
LQ Newbie
 
Registered: Aug 2003
Distribution: RedHat 9
Posts: 25

Rep: Reputation: 15
How to make Webalizer not count LAN hits

I've got webalizer installed but my question is this: If I edit a config file by uncommenting the "HideSite localhost" directive will it stop counting hits from the Windows box on my LAN? My assumption is that it would not........since localhost, as far as I know, refers to the specific box on which your working........period. I use another program called AXS administrator and it allows you to ignore hits based on IP - I edit it for the NAT numbers of local boxes. Any hekp would be appreciated - thanks
 
Old 06-02-2004, 02:47 AM   #12
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
In this case. localhost would be the machine that webalizer (and apache) are running on.
 
Old 06-02-2004, 07:09 AM   #13
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Rep: Reputation: 32
hello. I've got webalizer going by the look of it.

But i'm still unable to view the page.

http://www.mydomain.com/usage/
Forbidden
You don't have permission to access /usage on this server.

I can see all the files in /var/www/usage

How do i open up the page so i can view it..?

any one help me out please.

OS Fredora Core 2

TT
 
Old 06-02-2004, 07:41 AM   #14
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 952

Rep: Reputation: 32
I found out how to give my self access to webalizer

Note for other who are having trouble with it.

path on fedora core 2 is /etc/httpd/cond.d/webalizer.conf

Code:
#
# This configuration file maps the webalizer log analysis
# results (generated daily) into the URL space.  By default
# these results are only accessible from the local host.
# 
Alias /usage /var/www/usage

<Location /usage>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1 192.168.x.x
    Allow from ::1
    # Allow from .example.com
</Location>
I just added my PC IP and it worked.

If you wanted the world to see the page would it be like so ?
Allow from .all

unsure about that one.

found a few links as well
http://www.mrunix.net/webalizer/
http://www.geocities.com/danilody/we...unixlinux.html

TT
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is Webalizer FunkFlex Linux - Software 1 03-11-2005 12:12 PM
Webalizer wolfman423 Linux - Software 1 07-16-2004 12:28 AM
Webalizer MDSJB Linux - Newbie 4 06-01-2004 06:05 AM
Webalizer tommytomato Linux - Newbie 2 02-05-2004 09:48 PM
Webalizer herc Linux - Software 0 09-06-2003 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration