Project

General

Profile

Actions

Wiki » History » Revision 6

« Previous | Revision 6/7 (diff) | Next »
Soh Keong, 05/09/2013 03:31 PM


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 image 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/awstats
  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 · 6 revisions