Webs Book Compare GPCE06 Gmt Gpce Gpce04 Gpce05 IFIPWG211 IPA06 Main Octave PEPM07 PEPM08 PHP Sandbox Sdf Stratego Sts TWiki Tiger Tools Transform Variability default porn free porn
Upgrade from the previous TWiki 01-Feb-2003 production release to TWiki 01-Sep-2004
This guide describes how to upgrade from TWiki 01-Feb-2003 to TWiki 01-Sep-2004. This is a major new release. You can chose between an automated upgrade using a script or a manual update.
With the 01-Sep-2004 Release, for the first time, comes a helper script for upgrading from a previous version. This feature is currently at beta stage, it has only been sanity tested under Unix. It should be worth giving it a try, it won't mess up your existing TWiki installation because it leaves that untouched.
If you would prefer to do things manually than trust a beta script, skip to the manual upgrade procedure below.
The upgrade script is called "UpgradeTwiki"
, and is found in the root of the distribution.
It will:
To perform the upgrade, you need to:
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>
Assuming all goes well, 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
If you use it, and would be kind enough to add your experiences to TWiki:Codev.UpgradeTwiki, it would be much appreciated. The report of your experience will help to make UpgradeTwiki
more robust.
The following steps describe the upgrade assuming that $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
Note: These steps assume a downtime during the time of upgrade. You could install the new version in parallel to the existing one and switch over in an instant without affecting the users. As a guideline, install the new version into $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.
-- TWiki:Main.PeterThoeny - 29 Aug 2004