Is this Nethserver module helpful to you?
Please consider donating to the author

Thank you kindly!

2019/03/04 11:32 · HF

Available NS7

AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. This log analyzer works as a CGI or from command line and shows you all possible information your log contains, in few graphical web pages.

This module installs nethserver-virtualhosts as a dependency. It will monitor who are looking your websites, located in your virtualhosts (/var/lib/nethserver/vhosts).

This module displays statistics of

* Your virtualhosts (automatic) * Your mail server (automatic) * Your awstats configuration (manual)

PDF report could be made and if needed, emailed to root.

Stephane de Labrusse at

First you need to install my repository, see how to do it then install the rpm

yum install nethserver-awstats --enablerepo=stephdl

You have a panel 'Awstats Statistic' in the Management category, with two available tabs, one for the settings, the second to consult the statistic pages.

This module analyses the web access of the nethserver-virtualhosts module to find web statistic, the access log becomes specific for each domain name used (one vhost can have several domain names). You can find your custom logs in /var/log/httpd (for example /var/log/httpd/access.DomainName.log)

Only the user 'admin' is first able to browse the statistic pages, you must install nethserver-directory or nethserver-dc (think to set a password to admin). You can allow more users in the tab setting later

You can make your own awstats configuration, they will be displayed in the statistics tab if you respect a specific name:

you have a template to copy and adapt to your need.

cp /etc/awstats/awstats.model.conf /etc/awstats/
vim /etc/awstats/

the cron job takes care to update statistics, but you can launch it manually


You can enable the geoip plugin in the panel. If you think that more plugins are valuable, then please ask.

Please raise Issues on github