~ubuntu-branches/ubuntu/maverick/awstats/maverick

« back to all changes in this revision

Viewing changes to docs/awstats_setup.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2004-05-05 05:12:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040505051207-wfi8hydpa89pvuoi
Tags: upstream-6.0
ImportĀ upstreamĀ versionĀ 6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
2
<html>
 
3
<head>
 
4
<meta name="description" content="AWStats Documentation - Setup page">
 
5
<meta name="keywords" content="awstats, awstat, setup, config, install">
 
6
<meta name="robots" content="index,follow">
 
7
<meta name="title" content="AWStats Documentation - Setup page">
 
8
<title>AWStats Documentation - Setup page</title>
 
9
<link rel="stylesheet" href="styles.css" type="text/css">
 
10
<!-- $Revision: 1.61 $ - $Author: eldy $ - $Date: 2004/01/13 13:32:33 $ -->
 
11
</head>
 
12
 
 
13
<body topmargin=10 leftmargin=5>
 
14
 
 
15
 
 
16
<table style="font: 10pt arial,helvetica,verdana" cellpadding=0 cellspacing=0 border=0 bgcolor=#FFFFFF width=100%>
 
17
 
 
18
<!-- Large -->
 
19
<tr style="font: 10pt arial,helvetica,verdana">
 
20
<td bgcolor=#9999cc align=center><a href="/"><img src="images/awstats_logo4.png" border=0></a></td>
 
21
<td bgcolor=#9999cc align=center>
 
22
<br>
 
23
<font style="font: 16pt arial,helvetica,sanserif" color=#EEEEFF><b>AWStats logfile analyzer 6.0 Documentation</b></font><br>
 
24
<br>
 
25
</td>
 
26
<td bgcolor=#9999cc align=center>
 
27
&nbsp;
 
28
</td>
 
29
</tr>
 
30
 
 
31
</table>
 
32
 
 
33
 
 
34
<br><br><H1 style="font: 26px arial,helvetica,sanserif">Install, Setup and Use AWStats</H1>
 
35
 
 
36
AWStats common use is made in 3 steps:<br>
 
37
<ul>
 
38
<li>Step 1 : <a href="#INSTALL">The install and setup</a><br>
 
39
<li>Step 2 : <a href="#BUILD_UPDATE">The build/update of statistics</a><br>
 
40
<li>Step 3 : <a href="#READ">The reading of results</a><br>
 
41
</ul>
 
42
<br>
 
43
 
 
44
<!--
 
45
<br>
 
46
Before starting, check that your Perl version is at least 5.005_03 (or higher) by running the <i>perl -v</i> command.
 
47
If not, you can install a recent Perl interpreter from <a href="http://www.activestate.com/ActivePerl/">ActivePerl</a> (<font color=#221188>Win32</font>) or <a href="http://www.perl.com/pub/language/info/software.html">Perl.com</a> (<font color=#221188>Unix/Linux/Other</font>).<br>
 
48
-->
 
49
<br><a name="INSTALL"><H2 style="font: 22px arial,helvetica,sanserif color: #606060"><u>Step 1 : Install and Setup with configure.pl</u></H2></a>
 
50
<br>
 
51
<a name="INSTALLAPACHE"><b>A) With Apache or compatible server (on Unix/Linux, Windows, MacOS...)</b></a><br>
 
52
<br>
 
53
<font style="color: #111155"><b>* Step 1-1</b>:</font><br>
 
54
(if you use a package provided with a Linux distribution or Windows installer, this might be
 
55
already done, however it is recommanded to do it)<br>
 
56
<br>
 
57
After downloading and running the AWStats package, you must run the configure.pl script.
 
58
You will find it in the <b>tools</b> directory (If using the windows installer, the script is
 
59
automatically launched):<br>
 
60
<b><i>perl configure.pl</i></b><br>
 
61
<br>
 
62
<u>This is what the script do for you (you can do all of this manually if you prefer):</u><br>
 
63
<br>
 
64
 
 
65
A) configure.pl check your apache web server log format configuration.
 
66
If you use a <b>common</b> log, configure will
 
67
suggest to change it to have <b>NCSA combined/XLF/ELF</b> log format (you can use your own log
 
68
format but this predefined logformat is often the best choice and make setup easier).<br>
 
69
If you answer yes, configure will modify your <b>httpd.conf</b> to change all the
 
70
following directives (See your apache manual for more information):<br>
 
71
<i>CustomLog /yourlogpath/yourlogfile common</i><br>
 
72
into<br>
 
73
<i>CustomLog /yourlogpath/yourlogfile combined</i><br>
 
74
<br>
 
75
To be sure the log format change is effective, later you can stop Apache, remove all old
 
76
log files, restart Apache and go to your homepage. This is an example of records you
 
77
should get then in your new log file:<br>
 
78
<i>62.161.78.75 - - [dd/mmm/yyyy:hh:mm:ss +0000] "GET / HTTP/1.1" 200 1234 "http://www.from.com/from.html" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"</i><br>
 
79
<br>
 
80
 
 
81
B) configure.pl will add, if not already done, the following directives to your Apache config file
 
82
(note that the "/usr/local/awstats/wwwroot" path might differ according to your distribution or OS:<br>
 
83
<i>
 
84
<br>#
 
85
<br># Directives to add to your Apache conf file to allow use of AWStats as a CGI.
 
86
<br># Note that path "/usr/local/awstats/" must reflect your AWStats install path.
 
87
<br>#
 
88
<br>Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
 
89
<br>Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
 
90
<br>Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
 
91
<br>ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
 
92
<br>#
 
93
<br># This is to permit URL access to scripts/files in AWStats directory.
 
94
<br>#
 
95
<br>&lt;Directory "/usr/local/awstats/wwwroot"&gt;
 
96
<br>    Options None
 
97
<br>    AllowOverride None
 
98
<br>    Order allow,deny
 
99
<br>    Allow from all
 
100
<br>&lt;/Directory&gt;
 
101
</i>
 
102
<br>
 
103
 
 
104
<br>
 
105
C) configure.pl restart Apache to apply the changes made in A and B.<br>
 
106
<br>
 
107
 
 
108
D) configure.pl will ask you a name for a config profile. Enter here the name of your
 
109
web server or any analysis profile name, for example <b>myvirtualhostname</b>.<br>
 
110
So configure.pl will copy the file <b>awstats.model.conf</b> file into a new file
 
111
named <b>awstats.myvirtualhostname.conf</b>.
 
112
You can use the value of your choice instead of "myvirtualhostname". This new file must
 
113
be stored in<br>
 
114
- For Unix/Linux users: /etc/awstats.<br>
 
115
- For Windows and other OS: Same directory than awstats.pl (so cgi-bin).<br>
 
116
<br>
 
117
 
 
118
E) configure.pl ends.<br>
 
119
<br>
 
120
 
 
121
 
 
122
<font style="color: #111155"><b>* Step 1-2</b>:</font><br>
 
123
Once a config file has been automatically created (by configure.pl or you package
 
124
installer), it's important to edit it manually and change the "MAIN PARAMETERS"
 
125
to match all your needs:<br>
 
126
<br>
 
127
This is for example the parameters you should check seriously :<br>
 
128
- Check/Change <a href="awstats_config.html#LogFile">LogFile</a> value with full path of your web server log file (You
 
129
can also use a relative path from your awstats.pl directory).<br>
 
130
- Check/Change <a href="awstats_config.html#LogType">LogType</a> value with "W" for analyzing
 
131
web server log files, "S" for a streaming server log file, "M" for mail log files, "F" for ftp log files.<br>
 
132
- Check if <a href="awstats_config.html#LogFormat">LogFormat</a> has the value "1" (it means "NCSA apache combined/ELF/XLF log format")
 
133
or use a personalized log format if you don't use combined log format.<br>
 
134
- Check/Change <a href="awstats_config.html#DirIcons">DirIcons</a> parameter to reflect relative URL of awstats icon directory.<br>
 
135
- Edit <a href="awstats_config.html#SiteDomain">SiteDomain</a> parameter with the main domain name or the intranet 
 
136
web server name used to reach the web site to analyze (Example: www.mydomain.com). If you have several
 
137
possible name for same site, add list in <a href="awstats_config.html#HostAlias">HostAlias</a> parameter.<br>
 
138
- You can change other parameters if you want.<br>
 
139
<br>
 
140
 
 
141
<font style="color: #111155"><b>* Step 1-3</b>:</font><br>
 
142
(if Perl interpreter is correctly setup, this step is not required)<br><br>
 
143
If necessary, edit the first (top-most) line of awstats.pl file that is<br>
 
144
<i>#!/usr/bin/perl</i><br>
 
145
to reflect the path were your Perl interpreter is installed. Default value works for most of Unix OS, but it also might be<br>
 
146
<i>#!/usr/local/bin/perl</i><br>
 
147
With Apache for Windows and ActivePerl interpreter, it might be<br>
 
148
<i>#!c:/program files/activeperl/bin/perl</i><br>
 
149
<br>
 
150
 
 
151
Step 1 (Install and Setup) is finished. You can jump to the <a href="#BUILD_UPDATE">Build/Update Statistics</a> section.<br>
 
152
 
 
153
<br>
 
154
<br>
 
155
<br>
 
156
<a name="INSTALLIIS"><b>B) With IIS server</b></a><br>
 
157
<br>
 
158
<font style="color: #111155"><b>* Step 1-1</b>:</font><br>
 
159
<br>
 
160
Configure IIS to log in <b>"Extended W3C log format"</b> (You can still use
 
161
your own log format but setup is easier if made like suggested). So, for
 
162
this, start the IIS Snap-in, select the web site and look at its
 
163
Properties. Choose W3C Extended Log Format, then Properties, then the
 
164
Tab Extended Properties and uncheck everything under Extended Properties.
 
165
Once they are all unchecked, check all following fields:<br>
 
166
<i>
 
167
date<br>
 
168
time<br>
 
169
c-ip<br>
 
170
cs-username<br>
 
171
cs-method<br>
 
172
cs-uri-stem<br>
 
173
cs-uri-query<br>
 
174
sc-status<br>
 
175
sc-bytes<br>
 
176
cs-version<br>
 
177
cs(User-Agent)<br>
 
178
cs(Referer)<br>
 
179
</i>
 
180
To be sure the log format change is effective, you must stop IIS, remove all old log files, restart IIS and go to
 
181
your homepage. This is an example of records you should get then in the new log file:<br>
 
182
<i>2000-07-19 14:14:14 62.161.78.73 - GET / 200 1234 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) http://www.from.com/from.htm</i><br>
 
183
<br>
 
184
 
 
185
<font style="color: #111155"><b>* Step 1-2</b>:</font><br>
 
186
<br>
 
187
Copy the contents of the provided cgi-bin folder from your hard drive to your server's cgi-bin
 
188
directory (this includes <b>awstats.pl</b>, <b>awstats.model.conf</b>, and the <b>lang</b>, <b>lib</b> and <b>plugins</b> sub-directories).<br>
 
189
<br>    
 
190
 
 
191
<font style="color: #111155"><b>* Step 1-3</b>:</font><br>
 
192
<br>
 
193
Move AWStats <b>icon sub-directories</b> and its content into a directory readable by your
 
194
web server, for example C:\yourwwwroot\icon.<br>
 
195
<br>
 
196
 
 
197
<font style="color: #111155"><b>* Step 1-4</b>:</font><br>
 
198
<br>
 
199
Create a config file by copying <b>awstats.model.conf</b> file into a new file named <b>awstats.myvirtualhostname.conf</b>.
 
200
You can use the value of your choice instead of "myvirtualhostname". This new file must be stored in<br>
 
201
- Same directory than awstats.pl (so cgi-bin)<br>
 
202
<br>
 
203
 
 
204
<font style="color: #111155"><b>* Step 1-5</b>:</font><br>
 
205
<br>
 
206
Edit this new config file with your own setup :<br>
 
207
- Change <a href="awstats_config.html#LogFile">LogFile</a> value with full path of your web server log file (You
 
208
can also use a relative path from your awstats.pl directory).<br>
 
209
- Change <a href="awstats_config.html#LogType">LogType</a> value with "W" for analyzing
 
210
web server log files, "S" for a streaming server log file, "M" for mail log files, "F" for ftp log files, "O" otherwise.<br>
 
211
- Change <a href="awstats_config.html#LogFormat">LogFormat</a> to a value with same field's name defined in step 1-1:<br><i>
 
212
LogFormat="date time c-ip cs-username cs-method cs-uri-stem cs-uri-query sc-status sc-bytes cs-version cs(User-Agent) cs(Referer)"</i><br>
 
213
- Change <a href="awstats_config.html#DirIcons">DirIcons</a> parameter to reflect relative path of icon directory.<br>
 
214
- Edit <a href="awstats_config.html#SiteDomain">SiteDomain</a> parameter with the main domain name or the intranet
 
215
web server name used to reach the web site to analyze (Example: www.mydomain.com).<br>
 
216
- Set <a href="awstats_config.html#AllowToUpdateStatsFromBrowser">AllowToUpdateStatsFromBrowser</a> parameter to 1 if you don't have command line access and have only cgi access.<br>
 
217
- You can change other parameters if you want.<br>
 
218
<br>
 
219
Step 1 (Install and Setup) is finished. You can jump to the <a href="#BUILD_UPDATE">Build/Update Statistics</a> section.<br>
 
220
 
 
221
<br>
 
222
<br>
 
223
<br>
 
224
<b>C) With other web servers</b><br>
 
225
<br>
 
226
Setup process is similar to setup for Apache or IIS.<br>
 
227
Use <a href="awstats_config.html#LogFormat">LogFormat</a> to value "3" if you have WebStar native log format, use
 
228
a personalized <a href="awstats_config.html#LogFormat">LogFormat</a> if your log format is other.<br>
 
229
<br>
 
230
 
 
231
 
 
232
<br>
 
233
<br>
 
234
<a name="BUILD_UPDATE"><H2 style="font: 22px arial,helvetica,sanserif color: #606060"><u>Step 2 : Build/Update Statistics</u></H2></a>
 
235
 
 
236
<br>
 
237
<font style="color: #111155"><b>* Step 2-1</b>:</font><br>
 
238
<br>
 
239
The first analyze/update of statistics should be made the first time manually from the command line since first time,
 
240
process may be long and it's easier to solve problems (if you don't have Command Line access, just go to Step 2-2). The
 
241
AWStats update command line is:<br>
 
242
<b><i>awstats.pl -config=myvirtualhostname -update</i></b><br>
 
243
<br>
 
244
AWStats will read the config file awstats.myvirtualhostname.conf (or if not found, awstats.conf)
 
245
and create/update its database with all summary information issued from analyzed log file.<br>
 
246
AWStats database files are saved in directory defined by <a href="awstats_config.html#DirData">DirData</a> parameter in config file.<br>
 
247
When update is finished, you should get on screen a result like this:<br>
 
248
<br><i>
 
249
Update for config "/etc/awstats/awstats.myvirtualhostname.conf"<br>
 
250
With data in log file "/pathtoyourlog/yourlog.log"...<br>
 
251
Phase 1 : First bypass old records, searching new record...<br>
 
252
Searching new records from beginning of log file...<br>
 
253
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...<br>
 
254
Jumped lines in file: 0<br>
 
255
Parsed lines in file: 225730<br>
 
256
&nbsp;Found 122 dropped records,<br>
 
257
&nbsp;Found 87 corrupted records,<br>
 
258
&nbsp;Found 0 old records,<br>
 
259
&nbsp;Found 225521 new qualifed records.<br>
 
260
</i><br>
 
261
<b>Dropped records</b> are records discarded because they were not user HTTP request or requests were not qualified
 
262
by AWStats filters (See <a href="awstats_config.html#SkipHosts">SkipHosts</a>, <a href="awstats_config.html#SkipUserAgents">SkipUserAgents</a>,
 
263
<a href="awstats_config.html#SkipFiles">SkipFiles</a>, <a href="awstats_config.html#OnlyHosts">OnlyHosts</a>,
 
264
<a href="awstats_config.html#OnlyUserAgents">OnlyUserAgents</a> and <a href="awstats_config.html#OnlyFiles">OnlyFiles</a> parameters).
 
265
If you want to see which lines were dropped, you can add the <b>-showdropped</b> option on command line.<br>
 
266
<b>Corrupted records</b> are records that does not match log format defined by "LogFormat" parameter in AWStats config/domain file.
 
267
With all webservers you can experience a little bit corrupted records (<5%) even when everythings work correctly.
 
268
This can be the result of several reasons: Web server internal bugs, bad requests made by buggy browsers, web server brutal stop...<br>
 
269
If all your lines are corrupted and <a href="awstats_config.html#LogFormat">LogFormat</a> parameter in AWStats config/domain file is
 
270
correct, it may be the log format setup in your web server that is wrong. Don't forget that
 
271
your <a href="awstats_config.html#OnlyFiles">LogFormat</a> parameter in AWStats config/domain file MUST match
 
272
the log file format you analyze.<br>
 
273
If you want to see which lines are corrupted, you can add the <b>-showcorrupted</b> option on command line.<br>
 
274
<b>Old records</b> are simply records that were already processed by a previous update process.
 
275
You understood that it's not necessary to purge your log file after each update process even
 
276
if it's highly recommended to do it as often as possible.<br>
 
277
<b>New records</b> are records in your log file that were successfully used to build/update statistics.<br>
 
278
<br>
 
279
Note : A log analysis process is slow (one second for each 4500 lines of your
 
280
logfile with Athlon 1Ghz, plus DNS resolution time for each different IP
 
281
address in your logfile if <a href="awstats_config.html#DNSLookup">DNSLookup</a> is set to 1 and not already done in your log file).<br>
 
282
See <a href="awstats_benchmark.html">Benchmark page</a> for more accurate information.<br>
 
283
<br>
 
284
 
 
285
<font style="color: #111155"><b>* Step 2-2</b>:</font><br>
 
286
<br>
 
287
AWStats statistics can be updated from a browser, to provide real-time statistics, by clicking
 
288
the "Update now" link that appears when AWStats is used as a CGI (Next section '<a href="#READ">Read Statistics</a>
 
289
dynamically' gives you URL to use for that).<br>
 
290
Warning !!<br>
 
291
To enable this link, your parameter <a href="awstats_config.html#AllowToUpdateStatsFromBrowser">AllowToUpdateStatsFromBrowser</a>
 
292
must be set to 1 in your config file (Link is not enabled by default).<br>
 
293
<br>
 
294
Then, using on-line update does not prevent you from running the update process from a scheduler
 
295
frequently (command is same than update of first process).<br>
 
296
For this, you have two choices:<br>
 
297
- Include the update command in your <b>logrotate</b> process. See <a href="awstats_faq.html#ROTATE">FAQ-COM120</a> for this.<br>
 
298
- Or add instructions in your <b>crontab</b> (Unix/Linux) or your <b>task scheduler</b> (for
 
299
Windows), to launch frequently the Awstats update process. See <a href="awstats_faq.html#CRONTAB">FAQ-COM130</a> for this.<br><br>
 
300
See AWStats <a href="awstats_benchmark.html">Benchmark page</a> for recommanded update/logrotate frequency.<br>
 
301
<br>
 
302
 
 
303
<br>
 
304
<br><a name="READ"><H2 style="font: 22px arial,helvetica,sanserif color: #606060"><u>Step 3 : Read Statistics</u></H2></a>
 
305
 
 
306
<br>
 
307
To see results of analyze, you have several solutions depending on your <a href="awstats_security.html">security policy</a>.<br>
 
308
<br>
 
309
 
 
310
* First solution is to build the main reports, in a static HTML page, from the command line,
 
311
like this (jump to second solution if you have ONLY CGI access):<br>
 
312
<b><i>perl awstats.pl -config=myvirtualhostname -output -staticlinks > awstats.myvirtualhostname.html</i></b><br>
 
313
<br>
 
314
You can use all other output options (each of them give you another report).
 
315
This is how to use all other possible output options(1) :<br>
 
316
<i><b>perl awstats.pl -config=myvirtualhostname -output=alldomains -staticlinks > awstats.myvirtualhostname.allhosts.html</b></i><br>
 
317
<i><b>perl awstats.pl -config=myvirtualhostname -output=allhosts -staticlinks > awstats.myvirtualhostname.allhosts.html</b></i><br>
 
318
<i><b>perl awstats.pl -config=myvirtualhostname -output=lasthosts -staticlinks > awstats.myvirtualhostname.lasthosts.html</b></i><br>
 
319
<i><b>perl awstats.pl -config=myvirtualhostname -output=unknownip -staticlinks > awstats.myvirtualhostname.unknownip.html</b></i><br>
 
320
<i><b>perl awstats.pl -config=myvirtualhostname -output=alllogins -staticlinks > awstats.myvirtualhostname.alllogins.html</b></i><br>
 
321
<i><b>perl awstats.pl -config=myvirtualhostname -output=lastlogins -staticlinks > awstats.myvirtualhostname.lastlogins.html</b></i><br>
 
322
<i><b>perl awstats.pl -config=myvirtualhostname -output=allrobots -staticlinks > awstats.myvirtualhostname.allrobots.html</b></i><br>
 
323
<i><b>perl awstats.pl -config=myvirtualhostname -output=lastrobots -staticlinks > awstats.myvirtualhostname.lastrobots.html</b></i><br>
 
324
<i><b>perl awstats.pl -config=myvirtualhostname -output=urldetail -staticlinks > awstats.myvirtualhostname.urldetail.html</b></i><br>
 
325
<i><b>perl awstats.pl -config=myvirtualhostname -output=urlentry -staticlinks > awstats.myvirtualhostname.urlentry.html</b></i><br>
 
326
<i><b>perl awstats.pl -config=myvirtualhostname -output=urlexit -staticlinks > awstats.myvirtualhostname.urlexit.html</b></i><br>
 
327
<i><b>perl awstats.pl -config=myvirtualhostname -output=browserdetail -staticlinks > awstats.myvirtualhostname.browserdetail.html</b></i><br>
 
328
<i><b>perl awstats.pl -config=myvirtualhostname -output=osdetail -staticlinks > awstats.myvirtualhostname.osdetail.html</b></i><br>
 
329
<i><b>perl awstats.pl -config=myvirtualhostname -output=unknownbrowsers -staticlinks > awstats.myvirtualhostname.unknownbrowsers.html</b></i><br>
 
330
<i><b>perl awstats.pl -config=myvirtualhostname -output=unknownos -staticlinks > awstats.myvirtualhostname.unknownos.html</b></i><br>
 
331
<i><b>perl awstats.pl -config=myvirtualhostname -output=refererse -staticlinks > awstats.myvirtualhostname.refererse.html</b></i><br>
 
332
<i><b>perl awstats.pl -config=myvirtualhostname -output=refererpages -staticlinks > awstats.myvirtualhostname.refererpages.html</b></i><br>
 
333
<i><b>perl awstats.pl -config=myvirtualhostname -output=keyphrases -staticlinks > awstats.myvirtualhostname.keyphrases.html</b></i><br>
 
334
<i><b>perl awstats.pl -config=myvirtualhostname -output=keywords -staticlinks > awstats.myvirtualhostname.keywords.html</b></i><br>
 
335
<i><b>perl awstats.pl -config=myvirtualhostname -output=errors404 -staticlinks > awstats.myvirtualhostname.errors404.html</b></i><br>
 
336
<br>
 
337
Note (1): If you prefer, you can use <a href="awstats_tools.html#awstats_buildstaticpages">awstats_buildstaticpages</a> tool to
 
338
build all those pages in one command or to generate PDF files.<br>
 
339
<br>
 
340
Note (2): You can also add a <i>filter</i> on the following output reports:<b>urldetail, urlentry, urlexit, allhosts, refererpages</b>.<br>
 
341
<i>filter</i> can be a regexp on the full key you want awstats to present information about and you must use it after the output
 
342
parameter separated by a ":".<br>
 
343
For example, to output the urldetail report, with a filter on all pages that contains /news, you
 
344
can use the following command line:<br>
 
345
<i><b>perl awstats.pl -config=myvirtualhostname -output=urldetail:</b>/news<b> -staticlinks > awstats.myvirtualhostname.urldetailwithfilter.html</b></i><br>
 
346
<br>
 
347
Note (3): If you want to build a report for a particular month, add options <i><b>-month=MM -year=YYYY</b></i>.<br>
 
348
To build a report for full year (warning: This may use a lot of memory and CPU), add options <i><b>-month=all -year=YYYY</b></i>.<br>
 
349
 
 
350
<br><br>
 
351
* Second solution is to view dynamically your statistics from a browser. For this, use URL:<br>
 
352
<b><i>http://www.myserver.mydomain/cgi-bin/awstats.pl?config=myvirtualhostname</i></b><br>
 
353
where <i>myvirtualhostname</i> is used to know which config file to use (AWStats will use awstats.<i>myvirtualhostname</i>.conf file).<br>
 
354
<br>
 
355
Note (1): All output command line options (except -staticlinks) are still available when using AWStats as a browser.<br>
 
356
Just use them as URL parameters like this example <b><i>http://www.myserver.mydomain/cgi-bin/awstats.pl?month=MM&year=YYYY&output=unknownos</i></b><br>
 
357
<br>
 
358
Note (2): If <a href="awstats_config.html#AllowToUpdateStatsFromBrowser">AllowToUpdateStatsFromBrowser</a> parameter is set to 1 in AWStats config/domain file,
 
359
you will also be able to run the update process from your browser. Just click on link "Update now".<br>
 
360
<br><br>
 
361
 
 
362
<hr>
 
363
 
 
364
<script language=javascript>
 
365
        var date='$Date: 2004/01/13 13:32:33 $';
 
366
        document.writeln("Last revision: "+date);
 
367
</script>
 
368
 
 
369
</body>
 
370
</html>