热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

当前位置 :| 主页>Linux教程>软件应用>

Awstats for Linux简易安装、配置及测试

来源: 作者: 时间:2007-07-05 Tag: 点击:

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

上一篇:没有了
下一篇:关于Tar包压缩时相对路径的问题
最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册