Changeset 709


Ignore:
Timestamp:
11/15/08 15:11:37 (5 years ago)
Author:
CrawfordCurrie
Message:

Item109: moved TWikiSiteTools

Location:
trunk/core/data/TWiki
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/core/data/TWiki/CompleteDocumentation.txt

    r683 r709  
    103103 
    104104------ 
    105 %INCLUDE{"TWikiSiteTools"}% 
     105%INCLUDE{"SiteTools"}% 
    106106 
    107107[[#PageTop][Back to top]] 
  • trunk/core/data/TWiki/SiteTools.txt

    r703 r709  
    11%META:TOPICINFO{author="ProjectContributor" date="1177803014" format="1.1" version="$Rev: 13239 $"}% 
    22%STARTINCLUDE% 
    3 ---+ TWiki Site Tools 
     3---+ Site Tools 
    44 
    55_Utilities for searching, navigation, and monitoring site activity_ 
    66 
    7 TWiki Site Tools include utilities for navigating, searching and keeping up with site activity. Preferences can be configured by web or site-wide. You are currently in the *%SYSTEMWEB%* web. In particular, TWiki provides two highly configurable, automated site monitoring tools, *<nop>WebNotify*, to e-mail alerts when topics are edited, and *<nop>WebStatistics*, to generate detailed activity reports. 
     7Site Tools include utilities for navigating, searching and keeping up with site activity. 
     8 
     9In particular, you have two highly configurable, automated site monitoring tools, *<nop>WebNotify*, to e-mail alerts when topics are edited, and *<nop>WebStatistics*, to generate detailed activity reports. 
    810 
    911%TOC% 
     
    2022   * topic title or full-text search 
    2123   * regular expressions 
     24   * query search over form data 
    2225   * search within web or site-wide 
    2326   * index-style A-Z alphabetical listing sorted topic title 
     
    4245---++ <nop>WebRss and <nop>WebAtom - news feeds on recent changes 
    4346 
    44 You can point your news reader at WebRss and WebAtom to find out what is new in a TWiki web. WebRssBase and WebAtomBase have the details. Like WebChanges, this is based on a =%<nop>SEARCH{}%=. 
     47You can point your news reader at WebRss and WebAtom to find out what is new in a web. WebRssBase and WebAtomBase have the details. Like WebChanges, this is based on a =%<nop>SEARCH{}%=. 
    4548 
    4649#WebIndex 
     
    6669      * Make sure configure settings *{Log}{view}*, *{Log}{save}* and *{Log}{upload} in are set in [[%SCRIPTURLPATH{"configure"}%][configure]]. This will generate log file entries (see below). 
    6770      * The WebStatistics topic must be present in all webs where you want to have statistics. You can use the topic in the Main web as a template. 
    68       * Call the =twiki/bin/statistics= script from a cron job, once a day is recommended. This will update the WebStatistics topics in all webs. 
    69       * __Attention:__ The script must run as the same user as the CGI scripts are running, which is user =nobody= on many systems. Example crontab entry: %BR% =0 0 * * * (cd /path/to/twiki/bin; ./statistics &gt;/dev/null 2&gt;&amp;1)= 
    70       * There is a workaround in case you can't run the script as user =nobody= : Run the utility =twiki/tools/geturl.pl= in your cron job and specify the URL of the =twiki/bin/statistics= script as a parameter. Example: %BR% =0 0 * * * (cd /path/to/twiki/tools; ./geturl.pl mydomain.com /urlpath/to/twiki/bin/statistics &gt;/dev/null 2&gt;&amp;1)=  
    71       * __NOTE:__ =geturl.pl= will do a TWiki CGI request as the <nop>WikiGuest user, so if you use this workaround, the !WebStatistics topics you are updating will have to be writable by <nop>WikiGuest. 
     71      * Call the =bin/statistics= script from a cron job, once a day is recommended. This will update the WebStatistics topics in all webs. 
     72      * __Attention:__ The script must run as the same user as the CGI scripts are running, which is user =nobody= on many systems. Example crontab entry: %BR% =0 0 * * * (cd /path/to/bin; ./statistics &gt;/dev/null 2&gt;&amp;1)= 
     73      * There is a workaround in case you can't run the script as user =nobody= : Run the utility =tools/geturl.pl= in your cron job and specify the URL of the =bin/statistics= script as a parameter. Example: %BR% =0 0 * * * (cd /path/to/tools; ./geturl.pl mydomain.com /urlpath/to/bin/statistics &gt;/dev/null 2&gt;&amp;1)=  
     74      * __NOTE:__ =geturl.pl= will do a CGI request as the <nop>WikiGuest user, so if you use this workaround, the !WebStatistics topics you are updating will have to be writable by <nop>WikiGuest. 
    7275 
    7376When running from the command line or a cron job, you can pass parameters to the script like this: 
    7477<verbatim> 
    75 ./statistics -logdate 200605 -webs TWiki,Sandbox 
     78./statistics -logdate 200605 -webs Userweb,Sandbox 
    7679</verbatim> 
    7780 
    7881---+++ Generating statistics manually by URL 
    7982 
    80    * The =twiki/bin/statistics= script can also be executed as a CGI script, just enter the URL in your browser. Examples: 
     83   * The =bin/statistics= script can also be executed as a CGI script, just enter the URL in your browser. Examples: 
    8184      * Update current month for all webs you have access to: %BR% =%SCRIPTURLPATH{statistics}%= 
    8285      * Update current month for %USERSWEB% web only: %BR% =%SCRIPTURLPATH{statistics}%/%USERSWEB%= 
     
    9093   * The log file is defined by the *{LogFileName}* setting in [[%SCRIPTURLPATH{"configure"}%][configure]] 
    9194   * The file name is =log&lt;year&gt;&lt;month&gt;.txt= 
    92    * Example path name: =twiki/logs/log%SERVERTIME{$year$mo}%.txt= 
     95   * Example path name: =logs/log%SERVERTIME{$year$mo}%.txt= 
    9396   * Each access gets logged as: %BR% 
    9497     =| &lt;time&gt; | &lt;wikiusername&gt; | &lt;action&gt; | &lt;web&gt;.&lt;topic&gt; | &lt;extra info&gt; | &lt;IP address&gt; |= 
     
    124127The notify e-mail uses the default =changes.tmpl= template, or a skin if activated by a [[%SYSTEMWEB%.PreferenceSettings][preference setting]]. 
    125128 
    126 mailnotify also relies on two hidden files in each =twiki/data/Web= directory: =.changes= and =.mailnotify.= Make sure both are writable by your web server process. =.changes= contains a list of changes; go ahead and make this empty. =.mailnotify= contains a timestamp of the last time notification was done. 
     129mailnotify also relies on two hidden files in each =data/Web= directory: =.changes= and =.mailnotify.= Make sure both are writable by your web server process. =.changes= contains a list of changes; go ahead and make this empty. =.mailnotify= contains a timestamp of the last time notification was done. 
    127130 
    128131You can use an external mail program, such as ==sendmail==, if the =Net::SMTP= module is not installed. Set the program path in =={MailProgram}== in [[%SCRIPTURLPATH{"configure"}%][configure]]. 
     
    137140<pre> 
    138141% crontab -e 
    139 0 1 * * * (cd /path/to/twiki/bin; ./mailnotify -q) 
     1420 1 * * * (cd /path/to/bin; ./mailnotify -q) 
    140143</pre> 
    141144The above line will run mailnotify nightly at 01:00. The =-q= switch suppresses all normal output. 
Note: See TracChangeset for help on using the changeset viewer.