awstats简易安装文档
step 1 安装
1、 安装apache2.2.0
tar jxvf httpd-2.2.0 tar.bz2
cd httpd-2.2.0
vi config.sh
#!/bin/bash
HTTPD_ROOT="/usr/local/apps/apache2"
./configure --prefix=$HTTPD_ROOT \
--enable-so \
--enable-rewrite \
--enable-info \
--enable-cgid \
--enable-mime-magic \
--enable-vhost-alias \
--enable-deflate \
--enable-expires \
--with-mpm=prefork
sh config.sh
make
make install
2 、安装awstats6.5
tar zxvf awstats-6.5.tar.gz
mv awstats-6.5 /usr/apps/local/awstats
step 2 配置
1、apache配置
vi /usr/local/apps/apache2/conf/httpd.conf
DocumentRoot /usr/local/apps/awstats/wwwroot/
ServerName irunnet.com
ErrorLog "/usr/local/apps/apache2/logs/irunnet-error_log"
CustomLog "/usr/local/apps/apache2/logs/irunnet-access_log" combined
[root@mail bin]# ./apachectl stop
[root@mail bin]# ./apachectl start
2、awstats配置
A、运行配置脚本生成awstats的配置文件
cd /usr/local/apps/awstats/tools
perl awstats_configure.pl
>> 默认生成的配置文件会放在/etc/awstats/下面,名称为awstats.www.irunnet.com.conf
>>默认安装后重启apache
[root@mail bin]# ./apachectl stop
[root@mail bin]# ./apachectl start
