Project

General

Profile

Actions

Wiki » History » Revision 3

« Previous | Revision 3/7 (diff) | Next »
Soh Keong, 05/09/2013 03:18 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://{domain}/awstats/awstats.pl

To Add User and Password

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

Updated by Soh Keong over 11 years ago · 3 revisions