Changeset 709
- Timestamp:
- 11/15/08 15:11:37 (5 years ago)
- Location:
- trunk/core/data/TWiki
- Files:
-
- 1 edited
- 1 moved
-
CompleteDocumentation.txt (modified) (1 diff)
-
SiteTools.txt (moved) (moved from trunk/core/data/TWiki/TWikiSiteTools.txt) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/data/TWiki/CompleteDocumentation.txt
r683 r709 103 103 104 104 ------ 105 %INCLUDE{" TWikiSiteTools"}%105 %INCLUDE{"SiteTools"}% 106 106 107 107 [[#PageTop][Back to top]] -
trunk/core/data/TWiki/SiteTools.txt
r703 r709 1 1 %META:TOPICINFO{author="ProjectContributor" date="1177803014" format="1.1" version="$Rev: 13239 $"}% 2 2 %STARTINCLUDE% 3 ---+ TWikiSite Tools3 ---+ Site Tools 4 4 5 5 _Utilities for searching, navigation, and monitoring site activity_ 6 6 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. 7 Site Tools include utilities for navigating, searching and keeping up with site activity. 8 9 In 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. 8 10 9 11 %TOC% … … 20 22 * topic title or full-text search 21 23 * regular expressions 24 * query search over form data 22 25 * search within web or site-wide 23 26 * index-style A-Z alphabetical listing sorted topic title … … 42 45 ---++ <nop>WebRss and <nop>WebAtom - news feeds on recent changes 43 46 44 You can point your news reader at WebRss and WebAtom to find out what is new in a TWikiweb. WebRssBase and WebAtomBase have the details. Like WebChanges, this is based on a =%<nop>SEARCH{}%=.47 You 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{}%=. 45 48 46 49 #WebIndex … … 66 69 * 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). 67 70 * 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 >/dev/null 2>&1)=70 * There is a workaround in case you can't run the script as user =nobody= : Run the utility =t wiki/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 >/dev/null 2>&1)=71 * __NOTE:__ =geturl.pl= will do a TWikiCGI 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 >/dev/null 2>&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 >/dev/null 2>&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. 72 75 73 76 When running from the command line or a cron job, you can pass parameters to the script like this: 74 77 <verbatim> 75 ./statistics -logdate 200605 -webs TWiki,Sandbox78 ./statistics -logdate 200605 -webs Userweb,Sandbox 76 79 </verbatim> 77 80 78 81 ---+++ Generating statistics manually by URL 79 82 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: 81 84 * Update current month for all webs you have access to: %BR% =%SCRIPTURLPATH{statistics}%= 82 85 * Update current month for %USERSWEB% web only: %BR% =%SCRIPTURLPATH{statistics}%/%USERSWEB%= … … 90 93 * The log file is defined by the *{LogFileName}* setting in [[%SCRIPTURLPATH{"configure"}%][configure]] 91 94 * The file name is =log<year><month>.txt= 92 * Example path name: = twiki/logs/log%SERVERTIME{$year$mo}%.txt=95 * Example path name: =logs/log%SERVERTIME{$year$mo}%.txt= 93 96 * Each access gets logged as: %BR% 94 97 =| <time> | <wikiusername> | <action> | <web>.<topic> | <extra info> | <IP address> |= … … 124 127 The notify e-mail uses the default =changes.tmpl= template, or a skin if activated by a [[%SYSTEMWEB%.PreferenceSettings][preference setting]]. 125 128 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.129 mailnotify 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. 127 130 128 131 You 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]]. … … 137 140 <pre> 138 141 % crontab -e 139 0 1 * * * (cd /path/to/ twiki/bin; ./mailnotify -q)142 0 1 * * * (cd /path/to/bin; ./mailnotify -q) 140 143 </pre> 141 144 The 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.
