Solved

Looking for a good tracker / referrer.

Posted on 2001-08-28
3
255 Views
Last Modified: 2010-03-04
Hi all. I am looking for a good web tracker / referrer with daily /weekly stats that will work?? with virtual websites on apache. It must be a single script to go in one cgi-bin and work for all virtual webs. Is this possible and if so can anyone recommend a good one.thanks
0
Comment
Question by:j1mlondon
  • 2
3 Comments
 

Author Comment

by:j1mlondon
ID: 6431589
It will need to display stats ONLY for the particular virtual web.
0
 

Accepted Solution

by:
HandyAndy earned 75 total points
ID: 6440985
If it isn't already, you first need to seperate log entries for each virtual host site from the default log file. to do this, add a "TransferLog" line in each VirtualHost directive, e.g:

<VirtualHost 123.123.123.123>
 ServerName www.domain.com
 DocumentRoot /home/www/adomain
 TransferLog /home/logs/www.adomain.com-access.log
</VirtualHost>

That will seperate out log entries for the www.adomain.com web site to the www.adomain.com-access.log file in /home/logs. You can also seperate out errors by using "ErrorLog" and calling the file www.adomain.com-error.log. This is handy when trying to debug CGI scripts, etc.

I would recommend using webalizer - http://www.webalizer.org , it is a C binary package that is installed on the server, but is very fast and can be controlled by a Perl or PHP script (I have written a PHP script to do this, but is not ready for release yet).

You could set up a nightly, or weekly cron job to process a log file, then tell webalizer to output the results to a directory in a virtual host's web space for the user to read.
0
 

Author Comment

by:j1mlondon
ID: 6441015
Thanks. Best answer I've recieved. PErfect. I didn't think to do the logs into the home dir.
Please post a link for the PHP when you have finished!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question