Project

General

Profile

Wiki » History » Version 1

Soh Keong, 05/09/2013 03:02 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
# Copy awstats.conf to /usr/local/etc/awstats/
33
# Copy awstats to /usr/local/apache/passwd
34
# Restart apache. (/etc/init.d/apache restart)
35
# http://www.domain.com/awstats/awstats.pl
36
37
38
h2. To Add User and Password
39
40
# cd /usr/local/awstats
41
# htpasswd .htpasswd <user_name>
42
# enter password and confirm password