Public bug reported: What I did: # su - www-data $ /usr/lib/cgi-bin/awstats.pl -config=equius.mozai.com -update
What I expected: Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.0 (build dfsg-5) >From data in log file ... (etc etc etc) What I see instead: Error: LogFile parameter is not defined in config/domain file Setup ('equius.mozai.com' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory). Other information: $ pwd /var/www $ ls -l /etc/awstats/awstats.equius.mozai.com.conf -rw-r--r-- 1 root root 617 May 11 2012 /etc/awstats/awstats.equius.mozai.com.conf $ strace /usr/lib/cgi-bin/awstats.pl -config=equius.mozai.com -update 2>&1 |grep open open("/usr/lib/cgi-bin/awstats.equius.mozai.com.conf", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/cgi-bin/awstats.conf", O_RDONLY) = -1 ENOENT (No such file or directory) I expected the software to look in /etc/awstats/ for the config files, or maybe the current working directory, not /usr/lib/cgi-bin/. The documentation at https://help.ubuntu.com/community/AWStats also describes putting the config files in /etc/awstats/, not in /usr/lib /cgi-bin/. ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: awstats 7.0~dfsg-5 Uname: Linux 2.6.32-042stab076.8 x86_64 ApportVersion: 2.0.1-0ubuntu17.2 Architecture: amd64 Date: Sun May 19 11:51:16 2013 MarkForUpload: True PackageArchitecture: all ProcEnviron: TERM=screen-256color PATH=(custom, no user) LANG=en_CA.UTF-8 SHELL=/bin/bash SourcePackage: awstats UpgradeStatus: Upgraded to precise on 2012-12-06 (163 days ago) modified.conffile..etc.awstats.awstats.conf: [modified] modified.conffile..etc.awstats.awstats.conf.local: [modified] modified.conffile..etc.cron.d.awstats: [modified] mtime.conffile..etc.awstats.awstats.conf: 2013-05-06T23:51:36.204526 mtime.conffile..etc.awstats.awstats.conf.local: 2012-01-10T22:06:09 mtime.conffile..etc.cron.d.awstats: 2012-12-06T16:31:53 ** Affects: awstats (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug precise -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to awstats in Ubuntu. https://bugs.launchpad.net/bugs/1181790 Title: looking in /usr/lib/cgi-bin instead of /etc/awstats To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1181790/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs