[Pkg-awstats-devel] Bug#613524: Processing of awstats.conf should not be hardcoded

Stefan Froehlich debian at froehlich.priv.at
Tue Feb 15 13:05:40 UTC 2011


Package: awstats
Version: 6.9.5~dfsg-5
Severity: normal


awstats comes together with a cron job. This job looks for all
configuration files within /etc/awstats/ (which is good) but includes
"awstats.conf" hardcoded (which is bad).

If there is no master configuration file (which seems to be quite
ok on a site with serveral vhosts, each with its on, specific config)
this produces an error mail every 10 minutes.

Solution: only consider awstats.conf, if does exist.

-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.7-default (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages awstats depends on:
ii  perl                          5.10.1-17  Larry Wall's Practical Extraction 

Versions of packages awstats recommends:
ii  coreutils                     8.5-1      GNU core utilities
ii  libnet-xwhois-perl            0.90-3     Whois Client Interface for Perl5

Versions of packages awstats suggests:
ii  apache2                       2.2.16-6   Apache HTTP Server metapackage
ii  apache2-mpm-prefork [httpd]   2.2.16-6   Apache HTTP Server - traditional n
ii  libgeo-ipfree-perl            1.101650-1 module to look up the country of a
ii  libnet-dns-perl               0.66-2     Perform DNS queries from a Perl sc
ii  libnet-ip-perl                1.25-2     Perl extension for manipulating IP
ii  liburi-perl                   1.54-2     module to manipulate and access UR

-- Configuration Files:
/etc/awstats/awstats.conf [Errno 2] No such file or directory: u'/etc/awstats/awstats.conf'
/etc/cron.d/awstats changed:
*/10 * * * * root [ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh
10 03 * * * root [ -x /usr/share/awstats/tools/buildstatic.sh ] && /usr/share/awstats/tools/buildstatic.sh


-- no debconf information





More information about the Pkg-awstats-devel mailing list