Solved

Looking for a good tracker / referrer.

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

630 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