Solved

Looking for a good tracker / referrer.

Posted on 2001-08-28
3
256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses

752 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