扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
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
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。