LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Help needed with Webalizer (https://www.linuxquestions.org/questions/linux-networking-3/help-needed-with-webalizer-173754/)

nixinbarrie 04-23-2004 01:12 PM

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.

mcmanta 04-24-2004 08:42 PM

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?

:newbie:

bulliver 04-24-2004 10:03 PM

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.

mcmanta 04-24-2004 10:50 PM

it worked !! thanks.

nixinbarrie 04-26-2004 08:38 AM

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.

bulliver 04-26-2004 03:16 PM

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.

nixinbarrie 04-26-2004 03:44 PM

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.

88guy 05-10-2004 05:27 PM

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.

bulliver 05-10-2004 10:47 PM

Mine is in /usr/lib/

tommytomato 06-01-2004 06:37 AM

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

88guy 06-01-2004 10:26 PM

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

bulliver 06-02-2004 01:47 AM

In this case. localhost would be the machine that webalizer (and apache) are running on.

tommytomato 06-02-2004 06:09 AM

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 :newbie:

tommytomato 06-02-2004 06:41 AM

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 :newbie:


All times are GMT -5. The time now is 10:13 AM.