BuycPanel Blog

BuycPanel Blog

Latest news and updates

Awstats in cPanel

Posted by Allura on 17 05 2018.

What is Awstats and what it does?

Awstats is an open app to access. This application is dominant and delivers us with different advanced tools, which displays us the detailed data of internet, Ftp and Mail servers in a graphic style. This application works as a CGI and displays you all the log data consisting, through graphical representation of web pages. Awstats instantly scrutinize all the logs from Web server, mail and FTP servers working as tools.

This application demonstrates the count of visits, duration of visits, last seen, id and I.P. addresses of the visitors along with their countries, Operating Systems with the Browser, their most visited pages, their search engines and the keywords that are used to find Website etc. This application also scrutinize a percentage of log types like logs combined with Apache file (XLF/ELF), IIS logs (W3C).

How to configure the application:

  1. A) Awstats tries to limit your current log format from your Apache web server configuration file httpd.conf. If you use a common log,, it will suggest to change it to NCSA combined/XLF/ELF format.
  • If you answer yes, will modify your httpd.conf, changing the following directive:
  • From-CustomLog /yourlogpath/yourlogfile common
  • To-CustomLog /yourlogpath/yourlogfile combined
  1. B) will then add, if not already present, the following directives to your Apache configuration file path might differ according to your distribution or OS:
  • # Directives to add to your Apache conf file to allow use of AWStats as a CGI.
  • # Note that path “/usr/local/awstats/” must reflect your AWStats Installation path.
  • Alias /awstatsclasses “/usr/local/awstats/wwwroot/classes/”
  • Alias /awstatscss “/usr/local/awstats/wwwroot/css/”
  • Alias /awstatsicons “/usr/local/awstats/wwwroot/icon/”
  • ScriptAlias /awstats/ “/usr/local/awstats/wwwroot/cgi-bin/”
  • This is to permit URL access to scripts/files in AWStats directory.
  • <Directory “/usr/local/awstats/wwwroot”>
  • Options None
  • AllowOverride None
  • Order allow,deny
  • Allow from all
  • </Directory>
  1. C) If changes are made according to the steps A and B, restarts Apache to apply the changes.
  2. D)pl will ask you for a name for the configuration profile file. Enter an appropriate name such as that of your web server or the virtual domain to be analyzed, i.e. mysite.
  • pl will create a new file called awstats.mysite.conf by copying the template file awstats.model.conf. The new file location is:
  • For Linux/BSD/Unix users: /etc/awstats.
  • For Mac OS X, Windows and other operating systems: the same directory as (cgi-bin).
  1. E) ends.


The Awstats application shows the traffic statistics from an updated Web data, which contains details about how users access your website and makes it easy for you to monitor.