Apache::Traffic

Apache::Traffic is a Perl module that tracks hits and bytes transferred on a per-user basis.
Download

Apache::Traffic Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Maurice Aubrey
  • Publisher web site:
  • http://search.cpan.org/~maurice/Apache-Traffic-1.02/Traffic.pm

Apache::Traffic Tags


Apache::Traffic Description

Apache::Traffic is a Perl module that tracks hits and bytes transferred on a per-user basis. Apache::Traffic is a Perl module that tracks hits and bytes transferred on a per-user basis.SYNOPSIS # Place this in your Apache's httpd.conf file PerlLogHandler Apache::TrafficThis module tracks the total number of hits and bytes transferred per day by the Apache web server, on a per-user basis. This allows for real-time statistics without having to parse the log files.After installation, add this to your Apache's httpd.conf file and restart the server: PerlLogHandler Apache::TrafficThe statistics are then available through the 'traffic' script, which is included in this distribution. See the section VIEWING STATISTICS for more details.Requirements:· IPC::Shareable· IPC::SysV· DB_File· Date::Parse· PerlINSTALLATIONTo install this module, move into the directory where this file is located and type the following: perl Makefile.PL make make test make installThis will install the module into the Perl library directory.Once installed, you will need to modify your web server's configuration file so it knows to use Apache::Traffic during the logging phase: PerlLogHandler Apache::TrafficRestart your web server.As of this writing, there is a problem with IPC::Shareable which will cause segmentation faults in httpd processes if Apache::Traffic is run long enough (at least this is the case under Linux). This distribution contains a patch named 'share.patch', which will fix the problem.If Apache::Traffic does not appear to work correctly (look in your server's error_log for problems), make sure the semaphore and shared memory segments are not already allocated for another purpose. If this is the case, you can change the constants SHMKEY, SEMKEY, and DBPATH at the top of the Apache::Traffic module, and reinstall.


Apache::Traffic Related Software