awstats broken

Package wbm-virtualmin-awstats.noarch 2:3.7-1 appears to have broken awstats.

When I try to generate report I get;

Error: Couldn’t open server log file “gunzip -c /home/{domainname}/logs/access_log.5.gz |2” : No such file or directory

The " |2" " looks interesting…


i can confirm this since the latest update…

it also adds: No such file or directory
Setup (’/etc/awstats/’ file, web server or permissions) may be wrong.

same here.


We’re rolling out an update ASAP. Apologies for the inconvenience, guys.

Just found the solution in the bug list. Since it’s quite easy to fix (simply add a space) why not post it here?


Since editing my last message results in an error, I’ve to add another post:

I hope the fix will also include a fix for the access problems with awstats. As you know, accessing awstats via “www.mydomain.tld/awstats/” results in an access error. Modifying the ScriptAlias directive solved this, but the link to images remains broken. Everything is fine when accessing awstats via virtualmin. But some customers simply don’t want to do this.

you can fix it manually by editing the file :


and changing line 245 to :

   $fullcmd .= " 2>&1";

That is, just insert a space before the number 2.

Yesterday a new version of the VM-awstats plugin appeared. I installed it, but with no change. Calling www.mydomain.tld/awstats still results in a error 403. Does this work for anyone else?


i get the forbidden page too and no popup to log in.