When "Statistics Status Summary" is ran from "Statistics Software Configuration" in WHM and the domain of the user chosen contains a hyphen then the result will always show that analog and webalizer are disabled and awstats are enabled regardless of the true actual configuration.
User stats configuration, /home/USER/tmp/stats.conf, stores details in this format:
WEBALIZER-SOME-DOMAIN.COM=yes
ANALOG-SOME-DOMAIN.COM=no
AWSTATS-SOME-DOMAIN.COM=yes
The problem lies in /usr/local/cpanel/whostmgr/docroot/cgi/statmanager.cgi at line 952:
my ( $gen, $dom ) = split( /-/, $stat );
Using a hyphen (-) to split is wrong as this is only returning SOME into variable $dom
Hyphens are accepted characters in domain names of all TLD's, even multiple hyphens are allowed.
statmanager.cgi and stats.conf could be easily modified to use a non domain character, there are plenty to choose from, for example +.,|/^*;:_<>@



LinkBack URL
About LinkBacks
Reply With Quote




