|
TWiki Upgrade Guide
Upgrade from TWiki 01-Dec-2000 or TWiki 01-Sep-2001 to TWiki 01-Dec-2001 (previous to new full release)
|
< < |
Overview
|
|
This guide describes how to upgrade either from TWiki 01-Dec-2000 or TWiki 01-Sep-2001 to TWiki 01-Dec-2001.
- The latest version of TWiki (01-Dec-2001) is a small incremental release over the 01-Sep-2001 version.
|
|
- Update data/TWiki files: (in case you want the updated docs)
- Using your browser, merge the new TWiki.TWikiRegistration topic (or TWiki.TWikiRegistrationPub in case you used that one) into your existing TWiki.TWikiRegistration topic.
- In the temporary
twiki/data/TWiki directory where you unzipped the installation package:
|
< < |
-
-
- Remove the files you do not want to upgrade:
TWikiPreferences.* , Main.TWikiSiteDirectory.* , WebNotify.* , WebPreferences.* , WebStatistics.* and all WebTopic* files.
- In case the cgi-scripts are not running as user
nobody : The *,v RCS repository files delivered with the installation package are locked by user nobody and need to be changed the user of your cgi-scripts, i.e. www-data . A simple way to switch the locker of the RCS files is to use sed:
|
> > |
-
-
- Remove the files you do not want to upgrade:
TWikiPreferences.* , WebNotify.* , WebPreferences.* , WebStatistics.* and all WebTopic* files.
- In case the cgi-scripts are not running as user
nobody : The *,v RCS repository files delivered with the installation package are locked by user nobody and need to be changed to the user of your cgi-scripts, e.g., www-data . A simple way to switch the locker of the RCS files is to use sed:
|
|
for f in *,v; do sed 's/nobody\:/www-data\:/' $f > x; mv x $f; done
-
- Move all remaining
*.txt and *.txt,v files from the temporary data/TWiki directory to your $TWIKIROOT/data/TWiki directory.
- Update pub/TWiki files:
|
|
- Move the TWiki logo files, ex:
mv ~/tmp/pub/*.gif $TWIKIROOT/pub
- Pay attention to the file permissions of the
TWiki2 and Know2 directories and its files. The files must be writable by the cgi-scripts (usually user nobody ).
|
< < |
- In case the cgi-scripts are not running as user
nobody : The *,v RCS repository files delivered with the installation package are locked by user nobody and need to be changed the user of your cgi-scripts, i.e. www-data . A simple way to switch the locker of the RCS files is to use sed:
|
> > |
- In case the cgi-scripts are not running as user
nobody : The *,v RCS repository files delivered with the installation package are locked by user nobody and need to be changed to the user of your cgi-scripts, e.g., www-data . A simple way to switch the locker of the RCS files is to use sed:
|
|
for f in *,v; do sed 's/nobody\:/www-data\:/' $f > x; mv x $f; done
Step 5: Install new CGI scripts
|
|
-
- The original
TWiki web.
- The new
TWiki2 web, which gets renamed to TWiki when you switch over the installation.
- In case you customized
TWiki.TWikiRegistration , merge your changes back into TWiki2.TWikiRegistration .
|
< < |
- Copy
TWiki.Main.TWikiSiteDirectory to TWiki2.Main.TWikiSiteDirectory .
- Do the same for any other topics you might have created in the
TWiki web.
|
> > |
- Copy to
TWiki2 any topics that you created in the TWiki web.
|
|
- In
TWiki2.TWikiPreferences , merge the old TWiki.TWikiPreferences settings and customize it.
- Add your webs to WIKIWEBLIST
- Set the WIKIWEBMASTER
|
|
- Form Templates replace the TWikiCategoryTables:
- Create a replacement
WebForm topic based on twikicatitems.tmpl in each web that uses a Category Table. See details in TWikiForms and compare with the settings in the Know2.WebPreferences topic.
|
< < |
NOTE: Do not remove the twikicatitems.tmpl file, it is still used for topics that are of the old format.
|
> > |
Do not remove the twikicatitems.tmpl file, it is still used for topics that are of the old format.
|
|
-
- Searches need to be adjusted to deal with format change. It is possible to define a regular expression search that can deal at the same time with topics in the old format and new format.
- Example: List all topics in the Know web that have a TopicClassification? of PublicFAQ?:
%SEARCH{ "[T]opicClassification.*?(td..td|value\=).*?[P]ublicFAQ" casesensitive="on" regex="on" nosearch="on" web="Know"}% (The [T] and [P] is done so that search does not find the topic where this search string is located in!)
- Example: Create a link that lists all topics in the Know web with a TopicClassification? of PublicFAQ?:
[[%SCRIPTURL%/search%SCRIPTSUFFIX%/Know/?scope=text &search=%5BT%5DopicClassification.*%3F%28td..td%7C value%5C%3D%29.*%3F%5BP%5DublicFAQ®ex=on][All Public FAQ]] All Public FAQ
|
|
-- JohnTalintyre? - 18 Jul 2001
|
< < |
-- MikeMannix? - 12 Sep 2001
|
|
-- PeterThoeny - 03 Dec 2001
|
> > |
-- MikeMannix? - 05 May 2002
|