Subject: Configure httpd to support AWStats
Author: AwsEC2
In response to: Install AWStats on AWS EC2 instance
Posted on: 09/03/2012 11:52:52 PM
AWStats is now installed under /usr/local/awstats, but you may need to make some minor modifications to the Apache configuration file in order to use it via a web browser.
Step 1. Set global permisstion for the AWStats directory
<Directory "/usr/local/awstats/wwwroot/cgi-bin">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Step 2. Local within each virtual host
<VirtualHost *:80>
ServerName example1.com
ServerAlias www.example1.com
DocumentRoot /home/ec2-user/example1.com/html
# http://example1.com/cgi-bin/awstats/awstats.pl
ScriptAlias /cgi-bin/awstats /usr/local/awstats/wwwroot/cgi-bin
Alias /awstats /usr/local/awstats/wwwroot
CustomLog "/home/ec2-user/example1.com/access_log" "combined"
</VirtualHost>
>
> On 09/03/2012 11:50:27 PM
AwsEC2 wrote:
Download and install AWStats
# /etc/init.d/httpd stop
# mkdir /usr/local
# cd /usr/local
# wget http://prdownloads.sourceforge.net/awstats/awstats-7.0.tar.gz
# tar -zvxf awstats-7.0.tar.gz
# mv awstats-7.0 awstats
# chown -R root:root awstats
References: