Wiki » History » Version 5
Soh Keong, 05/09/2013 03:23 PM
1 | 1 | Soh Keong | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Wiki |
||
4 | |||
5 | h2. Setup Guides |
||
6 | |||
7 | # curl -L http://xrl.us/installperlnix | bash (Install Perl) |
||
8 | # unzip /usr/local/awstats-7.1.1.zip |
||
9 | # mv awstats-7.1.1 awstats |
||
10 | # Copy image to /usr/local/awstats/wwwroot/icon/other/ |
||
11 | # Open $APACHE_HOME/conf/httpd.conf |
||
12 | # At the end of CustomLog column change 'common' to 'combined' |
||
13 | # Add below statement at the end of httpd.conf |
||
14 | <pre> |
||
15 | # |
||
16 | # Directives to allow use of AWStats as a CGI |
||
17 | # |
||
18 | Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/" |
||
19 | Alias /awstatscss "/usr/local/awstats/wwwroot/css/" |
||
20 | Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/" |
||
21 | ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/" |
||
22 | </pre> |
||
23 | # Add below statement at the end of mod-jk.conf |
||
24 | <pre> |
||
25 | <location /awstats> |
||
26 | AuthType Basic |
||
27 | AuthName "Restricted Access" |
||
28 | AuthUserFile /usr/local/apache/passwd/awstats |
||
29 | Require valid-user |
||
30 | </location> |
||
31 | </pre> |
||
32 | 2 | Soh Keong | # Copy "awstats.conf":http://192.168.2.13:50000/redmine/attachments/download/440/awstats.conf to /usr/local/etc/awstats/ |
33 | # Copy "awstats":http://192.168.2.13:50000/redmine/attachments/download/439/awstats to /usr/local/apache/passwd |
||
34 | 1 | Soh Keong | # Restart apache. (/etc/init.d/apache restart) |
35 | 2 | Soh Keong | # http://{domain}/awstats/awstats.pl |
36 | 1 | Soh Keong | |
37 | |||
38 | h2. To Add User and Password |
||
39 | |||
40 | # cd /usr/local/awstats |
||
41 | 3 | Soh Keong | # htpasswd awstats <user_name> |
42 | 1 | Soh Keong | # enter password and confirm password |
43 | 4 | Soh Keong | |
44 | 5 | Soh Keong | h2. Reference |
45 | 4 | Soh Keong | |
46 | # "AWStats official web site":http://awstats.sourceforge.net/ retrieved 9th May 2013 |
||
47 | # "AWStats setup guide":http://www.howtoforge.com/how-to-install-secure-and-automate-awstats-centos-rhel retrieved 9th May 2013 |