个人工具

“UbuntuHelp:AWStats”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的7个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/AWStats}}
 
{{From|https://help.ubuntu.com/community/AWStats}}
 
{{Languages|UbuntuHelp:AWStats}}
 
{{Languages|UbuntuHelp:AWStats}}
 
+
<<Include(Tag/NeedsExpansion)>>
<pre><nowiki>
+
== Introduction ==
</nowiki></pre>
+
== AWStats for Ubuntu ==
+
=== Introduction ===
+
 
Finding AWStats documentation specific to Ubuntu is tough.
 
Finding AWStats documentation specific to Ubuntu is tough.
 
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 and subscribe 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.  
第14行: 第11行:
 
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: 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
+
<ol><li>AWStats 6.5-2
## With the mouse select: 'System/Administration/Synaptic Package Manager'
+
<ol><li>With the mouse select: 'System/Administration/Synaptic Package Manager'
## Click the search icon and type in awstats
+
</li><li>Click the search icon and type in awstats
## Check the version you have installed or install the latest version.
+
</li><li>Check the version you have installed or install the latest version.
# Apache 2.0
+
</li></ol></li><li>Apache 2.0
## Repeat steps for AWStats but for apache and verify you have 2.0.55-rubuntu4 installed or equivalent
+
<ol><li>Repeat steps for AWStats but for apache and verify you have 2.0.55-rubuntu4 installed or equivalent
# Edgy Eft desktop 6.10
+
</li></ol></li><li>Need PERL 5.00503 or better
## You are on your own here.
+
<ol><li>Open a terminal session Applications/Accessories/Terminal
# Need PERL 5.00503 or better
+
</li><li>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.)
## Open a terminal session Applications/Accessories/Terminal
+
</li></ol></li><li>tail your log file you are working with to verify it's readable.</li></ol>
## 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 ==
==== Installation Steps ====
+
<ol><li>Install AWStats with Synaptic or</li></ol>
# Install AWStats with Synaptic
+
 
# Make a backup of apache2.conf
+
<pre><nowiki>
## cd /etc/apache2
+
sudo apt-get install awstats
## mkdir RCS (This is only necessary if you don't have an RCS directory installed there already.)
+
</nowiki></pre>
## ci -l apache2.conf (check in the file before marking it up.)
+
== Configuration ==
# Make a directory to correspond with the AWStats documentation and set it up:
+
<ol><li>Make a backup of apache2.conf
## cd /usr/local
+
<ol><li>cd /etc/apache2
## mkdir awstats
+
</li><li>mkdir RCS (This is only necessary if you don't have an RCS directory installed there already.)
## cd awstats
+
</li><li>ci -l apache2.conf (check in the file before marking it up.) (ci is listed as rcs in the repositories.  Run sudo apt-get install rcs to install)
## cp -R /usr/share/doc/awstats/examples/*.* .
+
</li></ol></li><li>Make a directory to correspond with the AWStats documentation and set it up:
## gunzip awstats.model.conf.gz
+
<ol><li>cd /usr/local
## mkdir RCS
+
</li><li>mkdir awstats
## ci -l awstats.model.conf
+
</li><li>cd awstats
## mkdir wwwroot
+
</li><li>cp -R /usr/share/doc/awstats/examples/*.* .
## mkdir wwwroot/cgi-bin
+
</li><li>gunzip awstats.model.conf.gz
==== Configuration Steps ====
+
</li><li>mkdir RCS
==== Downloads ====
+
</li><li>ci -l awstats.model.conf
==== Links ====
+
</li><li>mkdir wwwroot
 +
</li><li>mkdir wwwroot/cgi-bin</li></ol>
 +
 
 +
== Links ==
 
* http://awstats.sourceforge.net/ Official AWStats website  
 
* http://awstats.sourceforge.net/ Official AWStats website  
** http://awstats.sourceforge.net/docs/index.html Documentation
+
* http://awstats.sourceforge.net/docs/index.html Documentation
*** http://awstats.sourceforge.net/docs/awstats_setup.html
+
* http://awstats.sourceforge.net/docs/awstats_setup.html
 
* http://www.awstats.org/ Official AWStats website
 
* http://www.awstats.org/ Official AWStats website
 
* http://www.g-loaded.eu/2005/12/04/configure-awstats/ Interesting read.
 
* 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
 
* 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!
 
 
----
 
----
[[category:CategoryDocumentation]]
 
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 21:39的最新版本


<<Include(Tag/NeedsExpansion)>>

Introduction

Finding AWStats documentation specific to Ubuntu is tough. It shouldn't be this way. Perhaps the most important step is to get XChat and subscribe 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: AWStats 6.5-2, and Apache 2.0

To determine the versions of software you are using do:

  1. AWStats 6.5-2
    1. With the mouse select: 'System/Administration/Synaptic Package Manager'
    2. Click the search icon and type in awstats
    3. Check the version you have installed or install the latest version.
  2. Apache 2.0
    1. Repeat steps for AWStats but for apache and verify you have 2.0.55-rubuntu4 installed or equivalent
  3. Need PERL 5.00503 or better
    1. Open a terminal session Applications/Accessories/Terminal
    2. 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.)
  4. tail your log file you are working with to verify it's readable.

Installation

  1. Install AWStats with Synaptic or
sudo apt-get install awstats

Configuration

  1. Make a backup of apache2.conf
    1. cd /etc/apache2
    2. mkdir RCS (This is only necessary if you don't have an RCS directory installed there already.)
    3. ci -l apache2.conf (check in the file before marking it up.) (ci is listed as rcs in the repositories. Run sudo apt-get install rcs to install)
  2. Make a directory to correspond with the AWStats documentation and set it up:
    1. cd /usr/local
    2. mkdir awstats
    3. cd awstats
    4. cp -R /usr/share/doc/awstats/examples/*.* .
    5. gunzip awstats.model.conf.gz
    6. mkdir RCS
    7. ci -l awstats.model.conf
    8. mkdir wwwroot
    9. mkdir wwwroot/cgi-bin

    Links