Solved

Looking for a good tracker / referrer.

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 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

19 Experts available now in Live!

Get 1:1 Help Now