"UpgradeTwiki", and is found in the root of the distribution.
It will:
UpgradeTwiki script available, see TWiki:Codev.UpgradeTwiki
distro/
distro/
new_twiki. This directory must not already exist.
distro/ and run: ./UpgradeTwiki <full path to new_twiki>
UpgradeTwiki will give you the final instructions.
There are a few points worth noting:
UpgradeTwiki may not be able to merge all the changes you made in your existing TWiki into the new installation, but it will tell you which ones it couldn't deal with
UpgradeTwiki creates the new installation in a new directory tree. It makes a complete copy of all your existing data, so:
data/ directory in your existing installation, these are reproduced as actual directories in the new structure. It is up to you to pull these sub-directories out again and re-symlink as needed
UpgradeTwiki doesn't deal with custom templates or Plugins, you will have to reinstall these in the new installation
TWiki.cfg file, then you will need to manually examine the new TWiki.cfg file and possibly put your tricky changes in there manually
UpgradeTwiki more robust.
$TWIKIROOT is the root of your current 01-Feb-2003 release. As written this will require some downtime. A process for switching over without downtime is described at the end of this section.
$TWIKIROOT/bin, $TWIKIROOT/pub, $TWIKIROOT/data, $TWIKIROOT/templates, $TWIKIROOT/lib
*.html and *.txt files in $TWIKIROOT with the new ones
$TWIKIROOT/templates with the new ones
%BROADCASTMESSAGE% somewhere on the top of the rendered HTML page (see the new view.tmpl for reference)
preview to save: <form name="main" action="%SCRIPTURLPATH%/save%SCRIPTSUFFIX%/%WEB%/%TOPIC%" method="post">
%TMPL:DEF{"topicaction"}% <input type="submit" class="twikiSubmit" name="action" value="Cancel" id="cancel" /> <input type="submit" class="twikiSubmit" name="action" value="Preview" id="preview" /> <input type="submit" class="twikiSubmit" name="action" value="Checkpoint" id="checkpoint" /> <input type="submit" class="twikiSubmit" name="action" value="QuietSave" id="quietsave" /> <input type="submit" class="twikiSubmit" name="action" value="Save" id="save" />%TMPL:END%
$TWIKIROOT/bin with the new ones.
.cgi
$TWIKIROOT/bin/setlib.cfg and point $twikiLibPath to the absolute file path of $TWIKIROOT/lib
$TWIKIROOT/bin/.htaccess file to include a directive for the new rdiffauth script:<Files "rdiffauth"> require valid-user </Files>
chmod 775 $TWIKIROOT/bin/*
755 (do so if you get a "Premature end of script headers" messages in the Apache error log)
TWiki.cfg configuration file in $TWIKIROOT/lib with the new one
TWiki.pm library in $TWIKIROOT/lib with the new one
$TWIKIROOT/lib with the new ones. Make sure to preserve any extra Plugins you might have in $TWIKIROOT/lib/TWiki/Plugins
chmod 664 `find -type f $TWIKIROOT/lib` (for files) and chmod 775 `find -type d $TWIKIROOT/lib` (for directories)
bin/testenv script from the browser (e.g. http://localhost/bin/testenv) to verify if the cgi-scripts are running as user nobody. In case not:
*,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, for example www-data
testenv script from your browser; in the Fix line you can relock all the rcs files (recommended)
twiki/data/TWiki directory where you unzipped the installation package:
InterWikis.*, TWikiRegistration.*, TWikiRegistrationPub.*, WebPreferences.*, WebStatistics.* and all WebTopic* files
$TWIKIROOT/data/TWiki/TWikiPreferences.* to TWikiPreferencesSave.*.
*.txt and *.txt,v files from the temporary data/TWiki directory to your $TWIKIROOT/data/TWiki directory, overwriting the existing ones
TWikiPreferencesSave.txt settings into $TWIKIROOT/data/TWiki/TWikiPreferences.txt. Notable changes are:
data/_default directory from the temporary location to your $TWIKIROOT/data directory
$TWIKIROOT/data are writable by your cgi-script user
TWiki and _default):
%INCLUDE{"%TWIKIWEB%.WebSearchAdvanced"}%
pub/TWiki from your temporary directory into your $TWIKIROOT/pub/TWiki directory
$TWIKIROOT/pub/TWiki are writable by your cgi-script user
pub/icn directory from the temporary location to your $TWIKIROOT/pub/icn directory
$TWIKIROOT/bin/testenv script from your browser (e.g. http://localhost/bin/testenv) to see if it reports any issues; address any potential problems
$TWIKIROOT/bin1, $TWIKIROOT/lib1, $TWIKIROOT/templates1, $TWIKIROOT/data/TWiki1 (from data/TWiki), $TWIKIROOT/pub/TWiki1 (from pub/TWiki), and configure TWiki.cfg to point to the same data and pub directory like the existing installation. Once tested and ready to go, reconfigure $TWIKIROOT/bin1/setlib.cfg and $TWIKIROOT/lib1/TWiki.cfg, then rename $TWIKIROOT/bin to $TWIKIROOT/bin2, $TWIKIROOT/bin1 to $TWIKIROOT/bin. Do the same with the lib, templates and data/TWiki directories.
| Topic TWikiUpgradeGuide . { Edit | Attach | Ref-By | Printable | Diffs | r1.1 | More | Refresh } |
|
Copyright © 1999-2012 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback |