Actions
Wiki » History » Revision 4
« Previous |
Revision 4/7
(diff)
| Next »
Soh Keong, 05/09/2013 03:22 PM
- 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 image 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://{domain}/awstats/awstats.pl
To Add User and Password¶
- cd /usr/local/awstats
- 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 · 4 revisions