A work-around 'fix' for the referrers table showing mostly local pages as opposed to external references.
Configuration: PSA v5.0.5 (RPM) on RedHat v 7.2
The script is available in two forms:
Webalizer Injector [v1.01] (webalizer_i.sh.gz)
A simple script that is used to intercept the call from the statistics program, 'inject' the missing parameters and forward the corrected call to webalizer. Since the script is called directly from PSA's statistics program, it does not need to be adjusted as sites are added or removed from the server. Version 1.01 includes minor adjustment for compatibility with webalizer_r (see below). Installation requires two simple adjustments (one to the psa.conf file, and one to the script) and then it is ready to go.
Webalizer Custom Injector [v1.01] (webalizer_ci.sh.gz)
An enhanced version of the script that features custom configuration file support, resulting in the ability to have completely customizable statistics on a site-by-site basis. Customizable conf file location allows for client accessible configuration files (i.e. the site admins can make the changes themselves) or root-only accessible (superuser can consider possible performance or security impact before applying any changes). Version 1.01 includes minor adjustment for compatibility with webalizer_r (see below). This script requires one adjustment to the psa.conf, as well as several preference settings within the script.
Webalizer Reprocessor [v1.01] (webalizer_r.sh.gz)
A script that re-processes all the log files from all of the sites. Great for recreating existing reports after having made changes to the default webalizer.conf file. Also features the ability to include "old" logs as well, a bonus for people who are migrating to a PSA based box. Compatible with v1.01 of webalizer injector (i.e. supports custom conf files) as well as the default PSA/webalizer install. Please read the comments in the script carefully, as there are some system imposed restrictions that must be considered (i.e. the 2 Gig log size limitation, rotated/archives/purged logs, etc).
Obsolete:
Statistics Simulation Script (sss.sh.gz)
Replaced by Webalizer Reprocessor, which can be used do the same thing.
Restore Logs (r_logs.sh.gz)
Replaced by Webalizer Reprocessor due to unanticipated side effect of re-running old logs though the statistics program.
All of the scripts are fully self-documented and can be easily adapted to other install types or to meet custom requirements.