“UbuntuHelp:AWStats”的版本间的差异
来自Ubuntu中文
小 (新页面: {{From|https://help.ubuntu.com/community/AWStats}} {{Languages|UbuntuHelp:AWStats}} <pre><nowiki> </nowiki></pre> == AWStats for Ubuntu == === Introduction === Finding AWStats document...) |
小 |
||
第3行: | 第3行: | ||
<pre><nowiki> | <pre><nowiki> | ||
− | |||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
== AWStats for Ubuntu == | == AWStats for Ubuntu == | ||
=== Introduction === | === Introduction === | ||
第11行: | 第9行: | ||
It shouldn't be this way. | 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". | 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. | 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. | In other words it is a PERL script that pretty prints an Apache log file. | ||
Dead simple, end of the story, period. | Dead simple, end of the story, period. | ||
It's as complicated at 'tail -f'. | It's as complicated at 'tail -f'. | ||
This document is an attempt to make it simple once again. | 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 === | === REQUIREMENTS: Edgy Eft 6.10 Desktop, AWStats 6.5-2, and Apache 2.0 === | ||
To determine the versions of software you are using do: | 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 ==== | ==== 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 ==== | ==== Configuration Steps ==== | ||
− | |||
==== Downloads ==== | ==== Downloads ==== | ||
− | |||
==== Links ==== | ==== Links ==== | ||
* http://awstats.sourceforge.net/ Official AWStats website | * http://awstats.sourceforge.net/ Official AWStats website |
2007年11月30日 (五) 16:11的版本
目录
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!