I’ve been trying to fix an issue ive had with installing AWstats, after a forced fresh VPS & Virtualmin Install I am unable to get it running again (it was so simple the first time!)
When trying to access ‘AWstats Report’ for any give Virtual Server I get the error
“Failed to open /etc/awstats/awstats.DOMAIN.TLD.conf : No such file or directory”
I’m unsure how to create these files or force Virtualmin to make them, I’ve check the settings for the virtual servers and AWstats is checked,
Under Webmin > Server > AWstats Reporting it says “No domains have been set up for AWstats reporting yet.” I’m unsure if I have to add a logfile into it and if I do what I should put
Operating system Debian Linux 8
Webmin version 1.853
Usermin version 1.720
Virtualmin version 6.01
Did you use the --minimal installation mode when you installed Virtualmin? That skips installation of AWstats, so something might still be unconfigured.
You can try disabling AWstats for the domain and then re-enabling it. That should regenerate the configuration file.
No, you’re fine. That’s a full installation. install.sh defaults to a full installation with Apache (there are other options for a smaller set of packages, called --minimal and installations with nginx instead of Apache called --bundle LEMP, but we recommend the default for most users).
Managed a quick fix by copying AWstats.pl from a virtual server to this location… then I got an error that etc/AWstats/AWstats.model.conf was missing so I duplicated AWstats.conf and renamed it, this fixed it and it’s now working.
That’s a configuration problem. I have no idea how the configuration would point to /usr/local, unless your OS has been misdetected by Webmin. /usr/local is in the “fallback” configuration for when Webmin has no idea how to support the OS it is running on, which would be a pretty bad thing to happen…you’d end up with incorrect config files all over the place.
Have there been any other configuration mishaps like this?
You should never move files around like that, you should correct the configuration. You can copy /usr/share/virtualmin-awstats/config-debian-linux to /etc/webmin/virtualmin-awstats/config and restart Webmin.
I have discovered i don’t have the folder
“/usr/share/virtualmin-awstats/”
I was able to find the file
“/etc/webmin/virtualmin-awstats/config”
This folder also contains “awstats.pl” I assume I am to change the AWstats Logfile Analyzer confif to this location for awstats.pl and awstats.model.config to the file “config”
EDIT:
This resulted in an error…
Failed to get the version of AWStats. Command /etc/webmin/virtualmin-awstats/awstats.pl returned :
Use of uninitialized value $ARGV[0] in string eq at /usr/share/webmin/virtualmin-awstats/awstats.pl line 12.
Use of uninitialized value $ARGV[0] in string eq at /usr/share/webmin/virtualmin-awstats/awstats.pl line 17.
usage: awstats.pl [–debug] [–output dir] at /usr/share/webmin/virtualmin-awstats/awstats.pl line 23.
No, you’re mixing up how all these pieces fit together.
That original path I gave should have been /usr/share/webmin/virtualmin-awstats/config-debian-linux. That needs to replace the file in /etc/webmin/virtualmin-awstats/config. Nothing else changes!
The files I’m telling you to move around are Webmin config files. The files you’re moving around are AWstats config files, which is not necessary and can’t work. Don’t put awstats files into the Webmin configuration directory. All we’re doing here is telling Webmin where to find AWstats.