在DreamHost上部署了awstats

| No Comments | No TrackBacks

静态页面统计访问地址:

http://www.guduo.net/statistics/  (awstats静态统计)

 

动态页面访问地址:

http://www.guduo.net/awstats/cgi-bin/awstats.pl?config=guduo.net

(awstats实时更新)

 

顺便也修改了DH给的默认的ssh账户中的crontab的编辑器:

$ cat ~/.bash_profile

export EDITOR=vi

 

之前修改的set -o vi 即 vi 命令行模式:


$ cat ~/.inputrc
set editing-mode vi

 

htaccess测试:

$ cat .htaccess
AuthName "user/pw:awstats/awstats"
AuthType Basic
AuthUserFile /home/xxx/.htpasswd
Require valid-user

 

htpasswd -c /home/xxx/.htpasswd awstats

 

$ cat awstats.guduo.net.conf | grep ^LogFile
LogFile="/home/www/guduo.net/awstats/tools/logresolvemerge.pl 

/home/www/logs/guduo.net/http/access.log*|"

 

$ crontab -l
0 3 * * * /usr/local/bin/perl /home/xxx/awstats/tools/awstats_buildstaticpages.pl -config=guduo.net -update -awstatsprog=/home/xxx/awstats/cgi-bin/awstats.pl -dir=/home/xxx/guduo.net/statistics/ >/dev/null 2>&1

18 * * * * /home/xxx/guduo.net/awstats/cgi-bin/awstats.pl -config=guduo.net -update >/dev/null

 

 

--EOF--

No TrackBacks

TrackBack URL: http://www.guduo.net/cgi-bin/mt/mt-tb.cgi/16

Leave a comment

Pages

May 2016

Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

About this Entry

This page contains a single entry by 谷多 published on February 20, 2008 10:49 PM.

出轨 劈腿 连续的十大之首,沦落,沦陷,彻底沦陷 was the previous entry in this blog.

DreamHost 上几个不错的类目:htaccess awstats unix-based is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.