校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > linux Apache 環(huán)境下安裝AWStatsWEB日志分析工具

linux Apache 環(huán)境下安裝AWStatsWEB日志分析工具

熱門標簽:佛山外呼系統(tǒng)平臺 南寧智能外呼系統(tǒng)線路商 成都移動外呼系統(tǒng) 長沙智能外呼系統(tǒng)中心 南昌語音外呼系統(tǒng)代理 聯(lián)客智能語音外呼系統(tǒng)賬號格式 長春外呼系統(tǒng)價格 美圖手機 電銷機器人的效果
今天安裝了awstats(AWStats是在Sourceforge上發(fā)展很快的一個基于Perl的WEB日志分析工具。),好好折騰了一把,終于搞完了,參考了不少資料,將主要步驟和遇到的問題分享一下。
1.在home下建一個目錄awstats,cd /home/awstats
2.wget http://awstats.sourceforge.net/files/awstats-7.0.tar.gz,下載awstats最新版本7.0
3.安裝

復(fù)制代碼
代碼如下:

[root@JMAppSer tools]# perl awstats_configure.pl
----- AWStats awstats_configure 1.0 (build 1.9) (c) Laurent Destailleur -----
This tool will help you to configure AWStats to analyze statistics for
one web server. You can try to use it to let it do all that is possible
in AWStats setup, however following the step by step manual setup
documentation (docs/index.html) is often a better idea. Above all if:
- You are not an administrator user,
- You want to analyze downloaded log files without web server,
- You want to analyze mail or ftp log files instead of web log files,
- You need to analyze load balanced servers log files,
- You want to 'understand' all possible ways to use AWStats...
Read the AWStats documentation (docs/index.html).
-----> Running OS detected: Linux, BSD or Unix
-----> Check for web server install
Found Web server Apache config file '/usr/local/apache/conf/httpd.conf'
-----> Check and complete web server config file '/usr/local/apache/conf/httpd.conf'
Add 'Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"'
Add 'Alias /awstatscss "/usr/local/awstats/wwwroot/css/"'
Add 'Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"'
Add 'ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"'
Add 'Directory>' directive
AWStats directives added to Apache config file.
-----> Update model config file '/usr/local/awstats/wwwroot/cgi-bin/awstats.model.conf'
File awstats.model.conf updated.
-----> Need to create a new config file ?
Do you want me to build a new AWStats config/profile
file (required if first install) [y/N] ? y
-----> Define config file name to create
What is the name of your web site or profile analysis ?
Example: www.mysite.com
Example: demo
Your web site, virtual server or profile name:
> www.b2bweb.co
-----> Define config file path
In which directory do you plan to store your config file(s) ?
Default: /etc/awstats
Directory path to store config file(s) (Enter for default):
> /usr/local/awstats/config
-----> Create config file '/usr/local/awstats/config/awstats.www.b2bweb.co.conf'
Config file /usr/local/awstats/config/awstats.www.b2bweb.co.conf created.
-----> Restart Web server with '/sbin/service httpd restart'
Usage: /etc/init.d/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
-D name : define a name for use in IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
-S : a synonym for -t -D DUMP_VHOSTS
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t : run syntax check for config files
-----> Add update process inside a scheduler
Sorry, configure.pl does not support automatic add to cron yet.
You can do it manually by adding the following command to your cron:
/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.b2bweb.co
Or if you have several config files and prefer having only one command:
/usr/local/awstats/tools/awstats_updateall.pl now
Press ENTER to continue...
A SIMPLE config file has been created: /usr/local/awstats/config/awstats.www.b2bweb.co.conf
You should have a look inside to check and change manually main parameters.
You can then manually update your statistics for 'www.b2bweb.co' with command:
> perl awstats.pl -update -config=www.b2bweb.co
You can also read your statistics for 'www.b2bweb.co' with URL:
> http://localhost/awstats/awstats.pl?config=www.b2bweb.co
Press ENTER to finish...
[root@JMAppSer tools]# cp /usr/loca/awstats/wwwroot/icon /usr/local/apache/htdocs/awstatsicons -rf
cp: 無法 stat “/usr/loca/awstats/wwwroot/icon”: 沒有那個文件或目錄
[root@JMAppSer tools]#
[root@JMAppSer tools]#
[root@JMAppSer tools]# ls
awstats_buildstaticpages.pl awstats_exportlib.pl geoip_generator.pl logresolvemerge.pl nginx webmin
awstats_configure.pl awstats_updateall.pl httpd_conf maillogconvert.pl urlaliasbuilder.pl xslt
[root@JMAppSer tools]# cd ..
[root@JMAppSer awstats]# ls
awstats-7.0 awstats-7.1 awstats-7.1.zip config docs README.TXT tools wwwroot
[root@JMAppSer awstats]# ll
總計 1508
drwxr-xr-x 5 1000 1000 4096 2010-12-06 awstats-7.0
drwxr-xr-x 5 root root 4096 11-22 17:52 awstats-7.1
-rw-r--r-- 1 root root 1505352 11-22 18:02 awstats-7.1.zip
drwxr-xr-x 2 root root 4096 11-25 10:21 config
drwxr-xr-x 4 root root 4096 11-22 18:04 docs
-rw-r--r-- 1 root root 6787 11-22 18:04 README.TXT
drwxr-xr-x 5 root root 4096 11-22 18:04 tools
drwxr-xr-x 7 root root 4096 11-22 18:04 wwwroot
[root@JMAppSer awstats]# cd wwwroot/
[root@JMAppSer wwwroot]# ls
cgi-bin classes css icon js
[root@JMAppSer wwwroot]# cp icon/ /usr/local/jiemai/apache-blogs/htdocs/awstatsicons -rf
[root@JMAppSer wwwroot]#
[root@JMAppSer wwwroot]#
[root@JMAppSer wwwroot]# pwd
/usr/local/awstats/wwwroot
[root@JMAppSer wwwroot]# cd ..
[root@JMAppSer awstats]# ls
awstats-7.0 awstats-7.1 awstats-7.1.zip config docs README.TXT tools wwwroot
[root@JMAppSer awstats]# ls
awstats-7.0 awstats-7.1 awstats-7.1.zip config docs README.TXT tools wwwroot
[root@JMAppSer awstats]# ll
總計 1508
drwxr-xr-x 5 1000 1000 4096 2010-12-06 awstats-7.0
drwxr-xr-x 5 root root 4096 11-22 17:52 awstats-7.1
-rw-r--r-- 1 root root 1505352 11-22 18:02 awstats-7.1.zip
drwxr-xr-x 2 root root 4096 11-25 10:21 config
drwxr-xr-x 4 root root 4096 11-22 18:04 docs
-rw-r--r-- 1 root root 6787 11-22 18:04 README.TXT
drwxr-xr-x 5 root root 4096 11-22 18:04 tools
drwxr-xr-x 7 root root 4096 11-22 18:04 wwwroot
[root@JMAppSer awstats]# cd config/
[root@JMAppSer config]# ls
awstats.www.b2bweb.co.conf
[root@JMAppSer config]# vi awstats.www.b2bweb.co.conf
# AWSTATS CONFIGURE FILE 7.0
#-----------------------------------------------------------------------------
# Copy this file into awstats.www.mydomain.conf and edit this new config file
# to setup AWStats (See documentation in docs/ directory).
# The config file must be in /etc/awstats, /usr/local/etc/awstats or /etc (for
# Unix/Linux) or same directory than awstats.pl (Windows, Mac, Unix/Linux...)
# To include an environment variable in any parameter (AWStats will replace
# it with its value when reading it), follow the example:
# Parameter="__ENVNAME__"
# Note that environment variable AWSTATS_CURRENT_CONFIG is always defined with
# the config value in an AWStats running session and can be used like others.
#-----------------------------------------------------------------------------
# $Revision: 1.353 $ - $Author: eldy $ - $Date: 2012/02/15 14:19:22 $
#-----------------------------------------------------------------------------
# MAIN SETUP SECTION (Required to make AWStats work)
#-----------------------------------------------------------------------------
# "LogFile" contains the web, ftp or mail server log file to analyze.
# Possible values: A full path, or a relative path from awstats.pl directory.
# Example: "/var/log/apache/access.log"
# Example: "../logs/mycombinedlog.log"
# You can also use tags in this filename if you need a dynamic file name
# depending on date or time (Replacement is made by AWStats at the beginning
# of its execution). This is available tags :
# %YYYY-n is replaced with 4 digits year we were n hours ago
# %YY-n is replaced with 2 digits year we were n hours ago
# %MM-n is replaced with 2 digits month we were n hours ago
# %MO-n is replaced with 3 letters month we were n hours ago
# %DD-n is replaced with day we were n hours ago
# %HH-n is replaced with hour we were n hours ago
# %NS-n is replaced with number of seconds at 00:00 since 1970
# %WM-n is replaced with the week number in month (1-5)
# %Wm-n is replaced with the week number in month (0-4)
# %WY-n is replaced with the week number in year (01-52)
# %Wy-n is replaced with the week number in year (00-51)
# %DW-n is replaced with the day number in week (1-7, 1=sunday)
# use n=24 if you need (1-7, 1=monday)
# %Dw-n is replaced with the day number in week (0-6, 0=sunday)
# use n=24 if you need (0-6, 0=monday)
# Use 0 for n if you need current year, month, day, hour...
# Example: "/var/log/access_log.%YYYY-0%MM-0%DD-0.log"
# Example: "C:/WINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%DD-24.log"
# You can also use a pipe if log file come from a pipe :
# Example: "gzip -d /var/log/apache/access.log.gz |"
# If there are several log files from load balancing servers :
# Example: "/pathtotools/logresolvemerge.pl *.log |"
#
#LogFile="/var/log/httpd/mylog.log"
LogFile="/usr/local/jiemai/apache-blogs/logs/access_logs"
/DirData
# Note: Result of DNS Lookup can be used to build the Country report. However
# it is highly recommanded to enable the plugin 'geoip' or 'geoipfree' to
# have an accurate Country report with no need of DNS Lookup.
# Possible values:
# 0 - No DNS Lookup
# 1 - DNS Lookup is fully enabled
# 2 - DNS Lookup is made only from static DNS cache file (if it exists)
# Default: 2
DNSLookup=2
# When AWStats updates its statistics, it stores results of its analysis in
# files (AWStats database). All those files are written in the directory
# defined by the "DirData" parameter. Set this value to the directory where
# you want AWStats to save its database and working files into.
# Warning: If you want to be able to use the "AllowToUpdateStatsFromBrowser"
# feature (see later), you need "Write" permissions by web server user on this
# directory (and "Modify" for Windows NTFS file systems).
# Example: "/var/lib/awstats"
# Example: "../data"
# Example: "C:/awstats_data_dir"
# Default: "." (means same directory as awstats.pl)
DirData="/usr/local/awstats/data"
# Relative or absolute web URL of your awstats cgi-bin directory.
# This parameter is used only when AWStats is run from command line
# with -output option (to generate links in HTML reported page).
# Example: "/awstats"
# Default: "/cgi-bin" (means awstats.pl is in "/yourwwwroot/cgi-bin")
#
DirCgi="/usr/local/awstats/wwwroot/cgi-bin"
/AllowToUpdateStatsFromBrowser
# When this parameter is set to 1, AWStats adds a button on report page to
# allow to "update" statistics from a web browser. Warning, when "update" is
# made from a browser, AWStats is run as a CGI by the web server user defined
# in your web server (user "nobody" by default with Apache, "IUSR_XXX" with
# IIS), so the "DirData" directory and all already existing history files
# awstatsMMYYYY[.xxx].txt must be writable by this user. Change permissions if
# necessary to "Read/Write" (and "Modify" for Windows NTFS file systems).
# Warning: Update process can be long so you might experience "time out"
# browser errors if you don't launch AWStats frequently enough.
# When set to 0, update is only made when AWStats is run from the command
# line interface (or a task scheduler).
# Possible values: 0 or 1
# Default: 0
#
AllowToUpdateStatsFromBrowser=1
# AWStats saves and sorts its database on a month basis (except if using
# databasebreak option from command line).
# However, if you choose the -month=all from command line or
# value '-Year-' from CGI combo form to have a report for all year, AWStats
# needs to reload all data for full year (each month), and sort them,
# requiring a large amount of time, memory and CPU. This might be a problem
# for web hosting providers that offer AWStats for large sites, on shared
# servers, to non CPU cautious customers.
# For this reason, the 'full year' is only enabled on Command Line by default.
# You can change this by setting this parameter to 0, 1, 2 or 3.
# Possible values:
# 0 - Never allowed
# 1 - Allowed on CLI only, -Year- value in combo is not visible
"awstats.www.b2bweb.co.conf" 1557L, 62015C written
[root@JMAppSer config]# chown -R root:root /usr/local/awstats
[root@JMAppSer config]# chmod -R 755 /usr/local/awstats
[root@JMAppSer config]# mkdir /usr/local/awstats/data
[root@JMAppSer config]# chown nobody.nobody /usr/local/awstats/data
[root@JMAppSer config]# chmod 777 data
chmod: 無法訪問 “data”: 沒有那個文件或目錄
[root@JMAppSer config]# cd ..
[root@JMAppSer awstats]# ls
awstats-7.0 awstats-7.1 awstats-7.1.zip config data docs README.TXT tools wwwroot
[root@JMAppSer awstats]# chmod 777 data
[root@JMAppSer awstats]# chmod 755 /usr/local/awstats/wwwroot/cgi-bin/*.pl

tar zxf awstats-7.0.tar.gz
mv awstats-7.0 /usr/local/awstats
cd /usr/local/awstats/tools
perl awstats_configure.pl
在[y/N]提示時,輸入y
Your web site, virtual server or profile name: 這時輸入要被分析的域名
其他按Enter>
Press ENTER to finish。。。完成安裝
4.修改文件目錄
cp /usr/loca/awstats/wwwroot/icon /usr/local/apache/htdocs/awstatsicons -rf
5.配置
vi /etc/awstats/awstats.上面輸入的域名.conf
LogFile="/usr/local/apache/logs/access_logs"
DirData="/usr/local/awstats/data"
DirCgi="/usr/local/awstats/wwwroot/cgi-bin"
AllowToUpdateStatsFromBrowser=1
6.設(shè)置權(quán)限
chown -R root:root /usr/local/awstats
chmod -R 755 /usr/local/awstats
mkdir /usr/local/awstats/data
chown nobody.nobody /usr/local/awstats/data
chmod 777 data
chmod 755 /usr/local/awstats/wwwroot/cgi-bin/*.pl
7.生成分析日志與靜態(tài)查看界面
cd /usr/local/awstats/wwwroot/cgi-bin
perl awstats.pl -config=上面域名 -update -lang=cn
perl awstats.pl -config=上面域名 -output -staticlinks -lang=cn>awstats.上面域名.html
8.測試 http://上面的域名/awstats/awstats.pl?config=上面的域名
遇到的問題
1.perl awstats.pl -config=上面域名 -update -lang=cn提示出錯,或在測試時提示出錯。LogFormat不正確:
原因:access_logs格式不正確,刪除access_logs,重啟APACHE。搞定
2.測試時看圖片顯示不了。
原因:/etc/awstats/awstats.上面輸入的域名.conf中的DirIcons配置不正確,這個目錄一定要從/usr/local/apache/htdocs目錄開始算,相對目錄,要確保配置的目錄可能過http訪問到
3.點擊測試頁面的“立即更新”時,提示"xxxx.tmp"無法存儲

原因:/usr/local/awstats/data的權(quán)限不正確,需要使用nobody權(quán)限,賦777.

標簽:陽泉 武漢 綿陽 莆田 南京 黔南 南陽 開封

巨人網(wǎng)絡(luò)通訊聲明:本文標題《linux Apache 環(huán)境下安裝AWStatsWEB日志分析工具》,本文關(guān)鍵詞  linux,Apache,環(huán)境,下,安裝,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《linux Apache 環(huán)境下安裝AWStatsWEB日志分析工具》相關(guān)的同類信息!
  • 本頁收集關(guān)于linux Apache 環(huán)境下安裝AWStatsWEB日志分析工具的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃
    紧缚奴在线一区二区三区| 日韩欧美国产一二三区| 久久综合中文字幕| 青青国产91久久久久久| 欧美日韩免费一区二区三区视频| 亚洲欧美自拍偷拍色图| 国产福利一区二区三区| 久久久久国产精品麻豆| 日本欧美一区二区| 精品美女在线播放| 国产乱码精品一品二品| 亚洲精品在线观看视频| 狠狠久久亚洲欧美| 国产亚洲欧美日韩俺去了| 91色porny| 天堂蜜桃91精品| 欧美精品一区二区在线播放| 久久成人免费电影| 久久精品视频一区| 在线观看视频欧美| 日韩在线一二三区| 久久亚洲捆绑美女| 99视频一区二区三区| 麻豆国产欧美日韩综合精品二区| 国产午夜精品一区二区三区四区| 不卡av电影在线播放| 亚洲丶国产丶欧美一区二区三区| 欧美日韩高清影院| jizzjizzjizz欧美| 美腿丝袜在线亚洲一区| 亚洲精品国久久99热| 久久美女艺术照精彩视频福利播放| 成人涩涩免费视频| 久久av老司机精品网站导航| 亚洲欧美日韩系列| 国产精品色一区二区三区| 日韩一区二区在线播放| 成人精品一区二区三区四区| 夜夜夜精品看看| 亚洲国产精华液网站w| 国产日韩精品一区二区三区 | 加勒比av一区二区| 图片区小说区区亚洲影院| 亚洲人成网站色在线观看| 久久久久亚洲综合| 91精品一区二区三区在线观看| 欧美日韩一区三区| 在线免费观看成人短视频| 国产.欧美.日韩| 成人网男人的天堂| 色综合久久天天| 色视频一区二区| 欧美色图片你懂的| 欧美日韩一级大片网址| 91搞黄在线观看| 色综合天天综合狠狠| 欧美性大战久久久| 欧美日韩国产综合一区二区 | 国产一区二区三区四| 男男视频亚洲欧美| 99re这里只有精品首页| 欧洲一区二区三区免费视频| 91视频观看免费| 制服丝袜日韩国产| 日本一区二区三区dvd视频在线| 亚洲国产精品精华液2区45| 亚洲欧美视频在线观看| 一区2区3区在线看| 激情丁香综合五月| 成人激情视频网站| 日韩欧美高清一区| 亚洲图片另类小说| 日本三级韩国三级欧美三级| 成人动漫一区二区三区| 在线观看91精品国产麻豆| 精品久久久久久久久久久久久久久| 亚洲国产高清不卡| 美女在线一区二区| 91在线码无精品| 中文字幕av一区二区三区免费看| 亚洲国产中文字幕| 大胆亚洲人体视频| 欧美一区二区啪啪| 亚洲一级不卡视频| 丰满少妇在线播放bd日韩电影| 欧洲国产伦久久久久久久| 国产精品无遮挡| 国产乱子轮精品视频| 一本到高清视频免费精品| 国产精品久久久久影院老司| 国产精品一色哟哟哟| 欧美一级在线视频| 日本三级韩国三级欧美三级| 欧美午夜电影在线播放| 日韩码欧中文字| 成人av午夜电影| 国产精品成人网| 色美美综合视频| 亚洲免费观看视频| 欧美色图在线观看| 日本不卡在线视频| 91精品蜜臀在线一区尤物| 麻豆久久久久久| 精品欧美一区二区在线观看| 久久精品国产亚洲高清剧情介绍| 91精品国产综合久久久久久久 | 中文字幕精品—区二区四季| 老司机精品视频导航| 欧美成va人片在线观看| 国产精品亚洲午夜一区二区三区| 精品卡一卡二卡三卡四在线| 高清视频一区二区| 亚洲午夜在线电影| 91精品国产91久久久久久一区二区 | 午夜影院久久久| 欧美mv日韩mv亚洲| 99麻豆久久久国产精品免费优播| 成人欧美一区二区三区白人 | 国产激情偷乱视频一区二区三区| 亚洲精品一区二区在线观看| 日韩av一区二区三区| 精品成人一区二区| 高清久久久久久| 亚洲成人激情社区| 精品电影一区二区三区| 成人午夜在线播放| 亚洲成人一二三| 国产精品丝袜一区| 日本韩国一区二区| 亚洲一区国产视频| 久久久噜噜噜久久中文字幕色伊伊| 成人ar影院免费观看视频| 欧美激情一区二区三区四区| 欧洲一区二区三区在线| 精品无人区卡一卡二卡三乱码免费卡| 国产欧美精品一区二区色综合朱莉 | 久久天天做天天爱综合色| 国产精品自拍av| 精品一区二区三区免费播放| 亚洲国产精品自拍| 国产伦精一区二区三区| 日日夜夜精品视频天天综合网| 中文字幕中文字幕中文字幕亚洲无线| 一本一本大道香蕉久在线精品 | 亚洲丝袜精品丝袜在线| 欧美一区二区免费| 91丨九色丨蝌蚪丨老版| 国内外成人在线| 日韩中文字幕区一区有砖一区| 亚洲日本欧美天堂| 亚洲成av人在线观看| 伊人婷婷欧美激情| 一区二区在线看| 香港成人在线视频| 亚洲一区在线观看视频| 一区二区三区中文字幕在线观看| 国产精品美日韩| 亚洲色图一区二区| 亚洲免费在线观看视频| 亚洲美女精品一区| 亚洲福利电影网| 国产自产v一区二区三区c| 国产乱子轮精品视频| 国产大陆亚洲精品国产| 成人小视频在线观看| 欧美日韩欧美一区二区| 日韩欧美三级在线| 国产精品欧美一级免费| 亚洲视频网在线直播| 精品一区二区在线视频| 国产不卡高清在线观看视频| 久久99蜜桃精品| www.亚洲国产| 91麻豆精品国产91久久久资源速度 | 日本高清不卡视频| 精品国产伦一区二区三区观看方式| 2021久久国产精品不只是精品| 久久综合中文字幕| 亚洲激情图片一区| 国产不卡在线一区| 91精品综合久久久久久| 国产精品欧美一级免费| 男女激情视频一区| 色综合天天做天天爱| 久久综合狠狠综合久久激情 | 日韩一二三区不卡| 国产精品国产成人国产三级| 免费人成精品欧美精品| 91美女片黄在线| 中文字幕不卡的av| 精彩视频一区二区| 在线一区二区三区四区| 精品成人一区二区三区| 艳妇臀荡乳欲伦亚洲一区| 国产传媒一区在线| 欧美高清hd18日本| 亚洲国产色一区| 欧美午夜精品久久久久久孕妇| 国产免费久久精品| 国产91精品免费|