Project

General

Profile

Actions

Wiki

Setup Guides

  1. curl -L http://xrl.us/installperlnix | bash (Install Perl)
  2. unzip /usr/local/awstats-7.1.1.zip
  3. mv awstats-7.1.1 awstats
  4. Copy ecosway logo to /usr/local/awstats/wwwroot/icon/other/
  5. Open $APACHE_HOME/conf/httpd.conf
  6. At the end of CustomLog column change 'common' to 'combined'
  7. Add below statement at the end of httpd.conf
        #
        # Directives to allow use of AWStats as a CGI
        #
        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/" 
    
  8. Add below statement at the end of mod-jk.conf
        <location /awstats>
            AuthType Basic
            AuthName "Restricted Access" 
            AuthUserFile /usr/local/apache/passwd/awstats
            Require valid-user
        </location>
    
  9. Copy awstats.conf to /usr/local/etc/awstats/
  10. Copy awstats to /usr/local/apache/passwd
  11. Restart apache. (/etc/init.d/apache restart)
  12. http://192.168.2.66/awstats/awstats.pl

To Add User and Password

  1. cd /usr/local/apache/passwd
  2. htpasswd awstats <user_name>
  3. enter password and confirm password

Reference

  1. AWStats official web site retrieved 9th May 2013
  2. AWStats setup guide retrieved 9th May 2013

Updated by Soh Keong over 11 years ago ยท 7 revisions