Project

General

Profile

Wiki » History » Revision 3

Revision 2 (Soh Keong, 05/09/2013 03:16 PM) → Revision 3/7 (Soh Keong, 05/09/2013 03:18 PM)

{{toc}} 

 h1. Wiki 

 h2. 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 
 <pre> 
	 # 
	 # 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/" 
 </pre> 
 # Add below statement at the end of mod-jk.conf 
 <pre> 
	 <location /awstats> 
		 AuthType Basic 
		 AuthName "Restricted Access" 
		 AuthUserFile /usr/local/apache/passwd/awstats 
		 Require valid-user 
	 </location> 
 </pre> 			
 # Copy "awstats.conf":http://192.168.2.13:50000/redmine/attachments/download/440/awstats.conf to /usr/local/etc/awstats/ 
 # Copy "awstats":http://192.168.2.13:50000/redmine/attachments/download/439/awstats to /usr/local/apache/passwd 
 # Restart apache. (/etc/init.d/apache restart) 
 # http://{domain}/awstats/awstats.pl 


 h2. To Add User and Password 

 # cd /usr/local/awstats 
 # htpasswd awstats .htpasswd <user_name> 
 # enter password and confirm password