Actions
- Table of contents
- Wiki
Wiki¶
Setup Guides¶
- curl -L http://xrl.us/installperlnix | bash (Install Perl)
- unzip /usr/local/awstats-7.1.1.zip
- mv awstats-7.1.1 awstats
- Copy ecosway logo to /usr/local/awstats/wwwroot/icon/other/
- Open $APACHE_HOME/conf/httpd.conf
- At the end of CustomLog column change 'common' to 'combined'
- 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/"
- 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>
- Copy awstats.conf to /usr/local/etc/awstats/
- Copy awstats to /usr/local/apache/passwd
- Restart apache. (/etc/init.d/apache restart)
- http://192.168.2.66/awstats/awstats.pl
To Add User and Password¶
- cd /usr/local/apache/passwd
- htpasswd awstats <user_name>
- enter password and confirm password
Reference¶
- AWStats official web site retrieved 9th May 2013
- AWStats setup guide retrieved 9th May 2013
Updated by Soh Keong over 11 years ago ยท 7 revisions