特殊:Badtitle/NS100:AWStats
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/AWStats }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/af | • {{#if: UbuntuHelp:AWStats|Afrikaans| [[::AWStats/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/ar | • {{#if: UbuntuHelp:AWStats|العربية| [[::AWStats/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/az | • {{#if: UbuntuHelp:AWStats|azərbaycanca| [[::AWStats/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/bcc | • {{#if: UbuntuHelp:AWStats|جهلسری بلوچی| [[::AWStats/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/bg | • {{#if: UbuntuHelp:AWStats|български| [[::AWStats/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/br | • {{#if: UbuntuHelp:AWStats|brezhoneg| [[::AWStats/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/ca | • {{#if: UbuntuHelp:AWStats|català| [[::AWStats/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/cs | • {{#if: UbuntuHelp:AWStats|čeština| [[::AWStats/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/de | • {{#if: UbuntuHelp:AWStats|Deutsch| [[::AWStats/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/el | • {{#if: UbuntuHelp:AWStats|Ελληνικά| [[::AWStats/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/es | • {{#if: UbuntuHelp:AWStats|español| [[::AWStats/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/fa | • {{#if: UbuntuHelp:AWStats|فارسی| [[::AWStats/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/fi | • {{#if: UbuntuHelp:AWStats|suomi| [[::AWStats/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/fr | • {{#if: UbuntuHelp:AWStats|français| [[::AWStats/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/gu | • {{#if: UbuntuHelp:AWStats|ગુજરાતી| [[::AWStats/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/he | • {{#if: UbuntuHelp:AWStats|עברית| [[::AWStats/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/hu | • {{#if: UbuntuHelp:AWStats|magyar| [[::AWStats/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/id | • {{#if: UbuntuHelp:AWStats|Bahasa Indonesia| [[::AWStats/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/it | • {{#if: UbuntuHelp:AWStats|italiano| [[::AWStats/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/ja | • {{#if: UbuntuHelp:AWStats|日本語| [[::AWStats/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/ko | • {{#if: UbuntuHelp:AWStats|한국어| [[::AWStats/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/ksh | • {{#if: UbuntuHelp:AWStats|Ripoarisch| [[::AWStats/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/mr | • {{#if: UbuntuHelp:AWStats|मराठी| [[::AWStats/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/ms | • {{#if: UbuntuHelp:AWStats|Bahasa Melayu| [[::AWStats/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/nl | • {{#if: UbuntuHelp:AWStats|Nederlands| [[::AWStats/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/no | • {{#if: UbuntuHelp:AWStats|norsk| [[::AWStats/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/oc | • {{#if: UbuntuHelp:AWStats|occitan| [[::AWStats/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/pl | • {{#if: UbuntuHelp:AWStats|polski| [[::AWStats/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/pt | • {{#if: UbuntuHelp:AWStats|português| [[::AWStats/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/ro | • {{#if: UbuntuHelp:AWStats|română| [[::AWStats/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/ru | • {{#if: UbuntuHelp:AWStats|русский| [[::AWStats/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/si | • {{#if: UbuntuHelp:AWStats|සිංහල| [[::AWStats/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/sq | • {{#if: UbuntuHelp:AWStats|shqip| [[::AWStats/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/sr | • {{#if: UbuntuHelp:AWStats|српски / srpski| [[::AWStats/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/sv | • {{#if: UbuntuHelp:AWStats|svenska| [[::AWStats/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/th | • {{#if: UbuntuHelp:AWStats|ไทย| [[::AWStats/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/tr | • {{#if: UbuntuHelp:AWStats|Türkçe| [[::AWStats/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/vi | • {{#if: UbuntuHelp:AWStats|Tiếng Việt| [[::AWStats/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/yue | • {{#if: UbuntuHelp:AWStats|粵語| [[::AWStats/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/zh | • {{#if: UbuntuHelp:AWStats|中文| [[::AWStats/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/zh-hans | • {{#if: UbuntuHelp:AWStats|中文(简体)| [[::AWStats/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:AWStats | UbuntuHelp:AWStats | {{#if: | :}}AWStats}}/zh-hant | • {{#if: UbuntuHelp:AWStats|中文(繁體)| [[::AWStats/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:AWStats|:AWStats|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :AWStats/zh | | {{#ifexist: AWStats/zh | | {{#ifeq: {{#titleparts:AWStats|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:AWStats|1|-1|}} | zh | | }}
AWStats for Ubuntu
Introduction
Finding AWStats documentation specific to Ubuntu is tough. It shouldn't be this way. Perhaps the most important step is to get XChat (Not XChat-GNOME but perhaps that's my prejudisms showing) and suscribe to channel "#awstats" on the "Ubuntu Server". AWstats is a Perl script (awstats.pl), which parses your server’s log files and generates reports either dynamically, when used as a CGI script through the web browser, or by creating static HTML pages, when used directly from the command line or through cron. It also comes with some other helper Perl scripts to make this task even easier. In other words it is a PERL script that pretty prints an Apache log file. Dead simple, end of the story, period. It's as complicated at 'tail -f'. This document is an attempt to make it simple once again.
REQUIREMENTS: Edgy Eft 6.10 Desktop, AWStats 6.5-2, and Apache 2.0
To determine the versions of software you are using do:
- AWStats 6.5-2
- With the mouse select: 'System/Administration/Synaptic Package Manager'
- Click the search icon and type in awstats
- Check the version you have installed or install the latest version.
- Apache 2.0
- Repeat steps for AWStats but for apache and verify you have 2.0.55-rubuntu4 installed or equivalent
- Edgy Eft desktop 6.10
- You are on your own here.
- Need PERL 5.00503 or better
- Open a terminal session Applications/Accessories/Terminal
- type perl -v and verify it's better than 5.00503 (You will probably see something like: This is perl, v5.8.8 built for i486-linux-gnu-thread-multi.)
- tail your log file you are working with to verify it's readable.
Installation Steps
- Install AWStats with Synaptic
- Make a backup of apache2.conf
- cd /etc/apache2
- mkdir RCS (This is only necessary if you don't have an RCS directory installed there already.)
- ci -l apache2.conf (check in the file before marking it up.)
- Make a directory to correspond with the AWStats documentation and set it up:
- cd /usr/local
- mkdir awstats
- cd awstats
- cp -R /usr/share/doc/awstats/examples/*.* .
- gunzip awstats.model.conf.gz
- mkdir RCS
- ci -l awstats.model.conf
- mkdir wwwroot
- mkdir wwwroot/cgi-bin
Configuration Steps
Downloads
Links
- http://awstats.sourceforge.net/ Official AWStats website
- http://www.awstats.org/ Official AWStats website
- http://www.g-loaded.eu/2005/12/04/configure-awstats/ Interesting read.
- http://www.ubuntuforums.org/showthread.php?t=8410 I'm following this to make these notes
- #awstats on "Ubuntu Server" which is really "FreeNode". There's *NOBODY* there! I hung out for over a week there and was the only person there 99% of the time!