It supports most major web server log file formats including Apache, Web Star, IIS and many other common web server log formats.
AWStats requires Perl to run, your Perl version must be at least 5.00503 (or higher) to use AWStats 6.x or higher.
AWStats is a free powerful graphical tool which generates advanced web, streaming, ftp or mail server statistics.
To check the current version of Perl installed on your system use the following command: If you get the message: You can proceed with the installation otherwise you will get a message to also reload apache configuration like this: Now move the content of the cgi-bin folder to the cgi-bin folder of your Apache installation, by default this is in /usr/lib/cgi-bin: For each domain or website you wish to view statistics you need to create a configuration file.
To do this go in the cgi-bin directory and copy the model config file in a file with the name of your domain or website like this: Site Domain=" Change to the website domain name Allow To Update Stats From Browser=1 When this parameter is set to 1, AWStats adds a button on report page to allow to "update" statistics from a web browser The configure file contains detail explanation for every directive, you might one to check them out if you think you need more info or advanced settings.
And, it is better to schedule a cron job to regularly update the AWSats databse using newly created log entries.
AWStats updates every 24 hours and also instantly when you click the Update now link.
In syslog I found out that there was probably server reboot I don't remember (power outage? Anyway from that time statistics were not updated (for just only one site).
I modified Virtualmin's awstats lib script to see $fullcmd command there and type it in the console myself.There was access denied error for server's access log file.I took a look and the file (in fact all server related files) had root/root ownership, don't know why.So the solution was to change it to server's owner/www-data.I'm writing this just to ask if anybody knows why this happen?or The regexp is set so that the hostname is expecting the URL to be and you are visiting likely based on the fact that your sudo -u www-data method worked) It will tell you clearly, if any permission issue exists on any of these files: server logfile, awstats conf files, awstats directory for writing data.