We-Host.com Main Web Site
Web Development
Support

Installing Options/Software
http-analyze 1.9e

Go to Beginning
Search Site
Order Services
Server Reference
You are currently viewing support information for this item http-analyze 1.9e

Are you in the wrong place? Hosting accounts click below

Getting Started
Virtual Host
light blue

http-analyze 1.9e

  1. Installation
  2. Documentation

Installation

To install http-analyze 1.9e, telnet or SSH to your Virtual Server and do the following:

  1. Unpack the http-analyze 1.9e tar file located in the programs area of the server by using the below commands. These commands will copy the http-analyze software onto your virtual server:
      % cd    (this will put you in your home directory)
      % tar -xvf /usr/local/contrib/http-analyze.tar
    
  2. Run the http-analyze program to create HTML pages with your virtual server's web statistics. http-analyze 1.9e has already been compiled for your use. This command will create a monthly report of access to your virtual server's web server:
      % virtual http-analyze -vm -S <your_domain_name> -o /www/htdocs/http-analyze /www/logs/access_log
    

    After running the command above you will find several pages with your virtual server's web statistics at the URL:

      http://YOUR-DOMAIN.com/http-analyze/

    Using the virtual command above allows you to specify paths from the home directory of your virtual server, instead of from the root directory of the host machine of your virtual server. Here is an explanation of the command line arguments used above and several others you may find useful:

      -h              print the help list
      -d              generate short statistics (default)
      -m              generate full statistics (includes -d)
      -v              verbose mode: comment ongoing processing
      -o outdir       name of the directory for HTML output files
      -S srvname      set server name (default: system name)
    

    The final command line argument used in the example above is the path and filename of the virtual server's web server access log file.

An example of a statistical report produced by http-analyze of another website is provided.


Documentation

Local documentation will be installed as manpages on your Virtual Server when you install the http-analyze tar file. This documentation can be accessed in a telnet session after configuring your virtual server to view manpages in your virtual server directory structure. To do that, you need to add the following line (alias) to ~/.cshrc file on your virtual server:

  alias man man -m '/usr/home/<username>/usr/local/man'

To make this change effective, use the source command:

  % source .cshrc

Once the above is configured you can view the http-analyze manpages during a telnet session by using the man command:

  % man http-analyze

There is also online documentation available at the http-analyze home page:

In order to cause your web server to automatically update your usage statistics, you may want to use the cron program. It is recommended that statistical calculations for your web site be run a maximum of one-time per day so as to not overload your virtual servers processing capabilities.

By default, all new virtual servers have had a "stats.cron" file added to the root directory of your server which deletes all log files at midnight on the first of each month.
# command deletes all log files at midnight on first of each month
0 0 1 * * /usr/local/bin/vnukelog2 -a


This assists you in managing the size of your log files. If you chose to add a cron for automatically calculating statistics each night at 10pm you might add the following comments to the stats.cron file.

# YOUR_DOMAIN.COM
MAILTO=""
00 22 * * * /usr/home/
login_name/usr/local/bin/http-analyze -vm -S your_domain.com -o /usr/home/login_name/usr/local/etc/httpd/htdocs/directory_where_you_want_statistics_placed /usr/home/login_name/usr/local/etc/httpd/logs/your_domain.com_access

Notations: The above command line should be edited in an ASCII editor and contain no line breaks. Substitute items in red for your account information. Be sure to run the crontab command after making modifications (information available on the cron support page).

Additional Options

If your Virtual Server was configured after December 15, 1998, you may modify your httpd.conf files to allow hostname look-ups by editing your httpd.conf file. Look for the following comments:

# HostnameLookups: Log the names of clients or just their IP numbers
# e.g. www.apache.org (on) or 000.00.000.000 (off)
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on. Turning this feature to on can
# slow access to your site. Most logfile analysis programs will do
# hostname lookups off-line (which obviously does not affect your server
# perfromance).

HostnameLookups off


The older style of httpd.conf file would not contain the above comments, you would therefore add the below line to your httpd.conf file.

# INFO to track country info for search engines
DNSMode Standard

Contents Copyright 1997-2003  We-Host Web Hosting. See our copyright page for additional copyright and disclaimer information.

Last Updated: 11 June, 2000  · Email support web site errors to webmaster@we-host.com

We-Host Web Hosting