Solved

Looking for a good tracker / referrer.

Posted on 2001-08-28
3
253 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

948 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now