data/TWiki/TWikiUpgradeGuide.txt,v
changeset 0 414e01d06fd5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/data/TWiki/TWikiUpgradeGuide.txt,v	Sat Jan 26 15:50:53 2008 +0100
     1.3 @@ -0,0 +1,767 @@
     1.4 +head	1.8;
     1.5 +access;
     1.6 +symbols;
     1.7 +locks; strict;
     1.8 +comment	@# @;
     1.9 +
    1.10 +
    1.11 +1.8
    1.12 +date	2008.01.22.03.21.30;	author TWikiContributor;	state Exp;
    1.13 +branches;
    1.14 +next	1.7;
    1.15 +
    1.16 +1.7
    1.17 +date	2007.03.03.14.51.50;	author TWikiContributor;	state Exp;
    1.18 +branches;
    1.19 +next	1.6;
    1.20 +
    1.21 +1.6
    1.22 +date	2007.02.05.00.18.38;	author TWikiContributor;	state Exp;
    1.23 +branches;
    1.24 +next	1.5;
    1.25 +
    1.26 +1.5
    1.27 +date	2007.01.16.04.12.02;	author TWikiContributor;	state Exp;
    1.28 +branches;
    1.29 +next	1.4;
    1.30 +
    1.31 +1.4
    1.32 +date	2006.06.25.16.26.27;	author TWikiContributor;	state Exp;
    1.33 +branches;
    1.34 +next	1.3;
    1.35 +
    1.36 +1.3
    1.37 +date	2006.04.01.05.55.16;	author TWikiContributor;	state Exp;
    1.38 +branches;
    1.39 +next	1.2;
    1.40 +
    1.41 +1.2
    1.42 +date	2006.02.01.12.01.20;	author TWikiContributor;	state Exp;
    1.43 +branches;
    1.44 +next	1.1;
    1.45 +
    1.46 +1.1
    1.47 +date	2004.08.30.06.29.41;	author PeterThoeny;	state Exp;
    1.48 +branches;
    1.49 +next	;
    1.50 +
    1.51 +
    1.52 +desc
    1.53 +@none
    1.54 +@
    1.55 +
    1.56 +
    1.57 +1.8
    1.58 +log
    1.59 +@buildrelease
    1.60 +@
    1.61 +text
    1.62 +@%META:TOPICINFO{author="TWikiContributor" date="1200013119" format="1.1" version="8"}%
    1.63 +%STARTINCLUDE%
    1.64 +---+ TWiki Upgrade Guide
    1.65 +
    1.66 +_This guide covers upgrading from a previous version of TWiki (such as Cairo or TWiki4.0) to TWiki 4.2_
    1.67 +
    1.68 +%TOC%
    1.69 +
    1.70 +---++ Overview
    1.71 +
    1.72 +TWiki-4.0.0 was a major new release. TWiki-4.1.0 was a minor release without dramatic changes since 4.0.0. TWiki-4.2.0 is also a minor release containing a few new features that can be seen by the end user, a large number of bug fixes, and a face lift for the skin. It also contains some important updates under the hood to the way users are handled which enables new types of authentication and integration with other systems. The most important new feature is the QuerySearch feature.
    1.73 +
    1.74 +---++ Upgrade Requirements
    1.75 +
    1.76 +   * Please review the AdminSkillsAssumptions before you upgrade TWiki
    1.77 +   * Review TWiki:TWiki.TWikiUpgradeTo04x02 for latest information and experience notes.
    1.78 +   * To upgrade from a release prior to TWiki Release 01-Sep-2004, start with TWiki:TWiki.UpgradingTWiki on TWiki.org
    1.79 +   * To upgrade from a standard TWiki Release 01-Sep-2004 to the latest TWiki-4.X Production Release, follow the instructions below
    1.80 +   * Once the upgrade has been applied, an existing earlier installation will still be able to read all the topics, but should not be used to write. Make sure you take a backup!
    1.81 +   * Not all Plugins written for TWiki Release 01-Sep-2004 are fully supported with 4.X. Make sure the Plugins you use can be upgraded as well!
    1.82 +
    1.83 +---++ Major Changes Compared to TWiki Release 01-Sep-2004 and TWiki Release 4.0.0
    1.84 +
    1.85 +See TWikiReleaseNotes04x00, TWikiReleaseNotes04x01 and TWikiReleaseNotes04x02
    1.86 +
    1.87 +
    1.88 +#ManualUpgradeProcedure
    1.89 +---++ Upgrade Procedure
    1.90 +
    1.91 +The following steps are a rough guide to upgrading only. It is impossible to give detailed instructions, as what you have to do may depend on whether you can configure the webserver or not, and how much you have changed distributed files in your current TWiki release.
    1.92 +
    1.93 +The main steps are:
    1.94 +
    1.95 +   1 Install the new TWiki version, configure it, and get it to work similar to the old version
    1.96 +   1 Install additional extensions (Plugins). Make sure to use the latest versions
    1.97 +   1 Copy all the non-default webs from the old installation to the new
    1.98 +   1 Copy the users from old installation to the new incl all their topics from Main
    1.99 +   1 Apply tailorings to your Skin (logos, menu bars etc)
   1.100 +   1 Apply preferences from old installation
   1.101 +   
   1.102 +---+++ Installation
   1.103 +
   1.104 +   * Follow the installation instructions in INSTALL.html which you find in the root of the new installation. Install the new release in a new directory. Do not install on top of the old release.
   1.105 +   * Use the [[%SCRIPTURL{configure}%][configure]] script to configure TWiki.
   1.106 +      * If you are upgrading from a 4.x.x release, you can carry over the configure settings from the old release.
   1.107 +      * You need to run configure and save the configuration once when you upgrade as this will update the altered and added settings.
   1.108 +      * You can also choose to start with a fresh configuration and walk through all the settings using your old !LocalSite.cfg as a reference. This way you will not have old obsolete settings in the new !LocalSite.cfg.
   1.109 +      * If at any time during the installation you want to start over from fresh all you need to do is delete the =lib/LocalSite.cfg= file and re-run configure.
   1.110 +   * Additional resources
   1.111 +      * TWiki:TWiki.UpgradingTWiki04x00PatchReleases
   1.112 +      * TWiki:TWiki.InstallingTWiki#OtherPlatforms
   1.113 +      * TWiki:TWiki.ApacheConfigGenerator
   1.114 +      * TWiki:TWiki.SettingFileAccessRightsLinuxUnix
   1.115 +      * If you upgrade from an older TWiki your =lib/TWiki.cfg= from the old TWiki installation is a good resource for some of the settings you will need but you cannot reuse the old TWiki.cfg.
   1.116 +   * Make sure you have a working basic TWiki before you continue
   1.117 +
   1.118 +---+++ Install Extensions
   1.119 +
   1.120 +   * Note that not all extensions that worked in Cairo have been updated to work with TWiki4.X. Many Cairo plugins work fine. Some do not. Many plugins have been upgraded to work with TWiki4.0 and later.
   1.121 +   * From TWiki-4.1.0 the [[%SCRIPTURLPATH{"configure"}%][configure]] script which you ran during installation supports installation of additional plugins.
   1.122 +   * Manual installation is possible. Follow the instruction on the Plugin page at twiki.org.
   1.123 +   * Check the plugin topics from your old TWiki installation. There may be plugin settings that you want to transfer to the new TWiki installation.
   1.124 +     %BR% __%H% Hint:__ For an easier upgrade later on, set the plugin preferences settings in the [[%LOCALSITEPREFS%]] topic, not in the plugin topic. To identify the plugin, prefix the name of the setting with the capitalized name of the plugin. For example, to change the =DEFAULT_TYPE= setting of the CommentPlugin, create a =COMMENTPLUGIN_DEFAULT_TYPE= setting in <nop>%LOCALSITEPREFS%.
   1.125 +   * Typical plugin settings you may have altered.
   1.126 +      * CommentPlugin - Set DEFAULT_TYPE
   1.127 +      * EditTablePlugin - Set CHANGEROWS, Set QUIETSAVE, and Set EDITBUTTON
   1.128 +      * InterwikiPlugin - Set RULESTOPIC
   1.129 +      * InterWikis - If you added your own rules you should save this topic and not overwrite it.
   1.130 +      * SlideShowPlugin - Make sure you did not change the embedded 'Default Slide Template' If you did you should save it. It is a bad idea to do. It is better to define your own slide show templates as separate topics that do not get overwritten when you upgrade.
   1.131 +      * SmiliesPlugin - Did you add your own smileys? No real changes were made to the smilies topic October 2005 so you can just leave this topic as it is.
   1.132 +      * TablePlugin - Set TABLEATTRIBUTES   
   1.133 +   * Remember that a plugin must be activated in [[%SCRIPTURLPATH{"configure"}%][configure]].
   1.134 +   * To avoid having to re-apply plugin settings each time you upgrade a plugin or TWiki itself, define the altered plugin settings in =Main.TWikiPreferences= instead
   1.135 +
   1.136 +---+++ Copy your old webs to new TWiki
   1.137 +
   1.138 +   * When upgrading from Cairo or earlier it may be necessary to unlock the rcs files in data and pub directories from the old installation using the following shell commands:
   1.139 +      * =find data -name '*,v' -exec rcs -u -M '{}' \;=
   1.140 +      * =find pub -name '*,v' -exec rcs -u -M '{}' \;=
   1.141 +   * Copy your local webs over to the data and pub directories of the new install. Do not copy the default webs: TWiki, Main, Trash, Sandbox, _default, and _empty.
   1.142 +   * Make sure all data and pub files and directories are owned by the webserver user.
   1.143 +   * __Note:__ TWiki's WebChanges topics depend on the file timestamp. If you touch the .txt files make sure to preserve the timestamp, or to change them in the sequence of old file timestamps.
   1.144 +
   1.145 +---+++ Copy Users And Their Topics From Main Web
   1.146 +
   1.147 +   * Copy all the topics from the Main web and corresponding pub/Main directories from the old TWiki to the new TWiki but do not overwrite any of the new topics already inside the new Main directory!
   1.148 +   * Manually merge all the users from the old =Main.TWikiUsers= topic to the new TWiki. If you upgrade from Cairo you can simply use the old file and add the missing new system users to the list of users. If you upgrade from TWiki-4.0.X simply use the old topic. Starting from 4.2.0 TWiki no longer ships with a =Main.TWikiUsers= topic. When you register the first user TWiki now checks for an existing =Main.TWikiUsers= and if it does not exist it gets created.
   1.149 +   * If you use =data/.htpasswd= for authentication copy this file from the old TWiki to the new.
   1.150 +      * If you upgrade from Cairo and you are using the Htpasswd login manager, then note that email addresses for users have moved out of user topics and into the password file. There is a script that performs this extra upgrade step for you - see =tools/upgrade_emails.pl=.
   1.151 +   * The old sandbox web may have a lot of useful topic and users may use it actively for drafts. Manually select the topics (remember the corresponding pub directories) from the old Sandbox web and copy them to the new TWiki. Decide if you want to overwrite the sandbox homepage and left menu bar or keep the new.
   1.152 +   * If you added or removed fields from the user topic form you may also have tailored =TWiki.TWikiRegistration=. Make sure you either reuse the registration topic from the old installation or apply the same field changes to the new =TWiki.TWikiRegistration= topic.
   1.153 +   * Starting from 4.2.0 TWiki ships with =NewUserTemplate= and =UserForm= in the TWiki web. If you choose to tailor anything you are strongly adviced to copy =NewUserTemplate= and =UserForm= to the Main web and tailor the Main web copies. TWiki will look for the =NewUserTemplate= in the Main web first and if it does not exist it uses the default from the TWiki web. By creating a =Main.NewUserTemplate= and its =Main.UserForm= you will not loose your tailorings next time you upgrade TWiki.
   1.154 +   * Make sure all data and pub files and directories are owned by the webserver user.
   1.155 +
   1.156 +---+++ Apply Customizations To The Skin
   1.157 +
   1.158 +   * Not many of the old Cairo skins work well with TWiki4.X.
   1.159 +   * Add Logos, update top bar and left bar as required.
   1.160 +   * Apply any desired changes to style sheets and templates. The default PatternSkin has been totally rewritten since Cairo and once more in 4.0.2. Since then changes to PatternSkin have been minor and you may be able to carry over most simpler tailorings directly from 4.0.2-4.0.5.
   1.161 +   * Additional resources:
   1.162 +      * TWiki:TWiki.UpgradingTWiki04x00PatchReleases
   1.163 +      * PatternSkinCustomization
   1.164 +      * PatternSkinCssCookbook      
   1.165 +   
   1.166 +---+++ Apply Preferences From Old Installation
   1.167 +
   1.168 +   * Transfer any customized and local settings from [[%SYSTEMWEB%.TWikiPreferences]] to the topic pointed at by {LocalSitePreferences} ([[%LOCALSITEPREFS%]]). Per default this is =Main.TWikiPreferences=. This avoids having to write over files in the distribution on a later upgrade.
   1.169 +   * If you changed any of the topics in the original TWiki distribution, you will have to transfer your changes to the new install manually. There is no simple way to do this, though a suggestion is to use 'diff' to find changed files in the =data/TWiki= of the old and new TWiki installation, and transfer the changes into the new TWiki install. If you can run a GUI on your server, you may find that using a visual diff tool like !WinMerge, meld, kdiff3, xxdiff, etc. is helpful.
   1.170 +   * Compare the =WebPreferences= topics in the old TWiki Installation with the default from the new TWiki installation and add any new Preferences that may be relevant.
   1.171 +   * Compare the =WebLeftBar= topics in the old TWiki Installation with the default from the new TWiki installation and add any new feature that you desire.
   1.172 +
   1.173 +---++ Customization of Special Pages
   1.174 +
   1.175 +Some pages in the TWiki web are meant to be customized after choice of authentication. If you do not use the internal TWiki password manager the topics that contains the features for changing and resetting passwords and changing the email address should be changed to a note describing how to perform these tasks in your organization. If you have made such customizations remember to replace these topics in the TWiki web with the tailored versions from your old installation. The topics are:
   1.176 +
   1.177 +   * =TWiki.ChangePassword=
   1.178 +   * =TWiki.ResetPassword=
   1.179 +   * =TWiki.ChangeEmailAddress=
   1.180 +
   1.181 +---++ Upgrading from Cairo to TWiki4 (additional advice)
   1.182 +
   1.183 +---+++ Favicon
   1.184 +
   1.185 +TWiki4's PatternSkin introduces the use of the favicon feature which most browsers use to show a small icon in front of the URL and for bookmarks.
   1.186 +
   1.187 +In TWiki4 it is assumed that each web has a favicon.ico file attached to the !WebPreferences topic. When you upgrade from Cairo to TWiki4 you do not have this file and you will get flooded with errors the error log of your web server. There are two solutions to this.
   1.188 +
   1.189 +   * Attach a favicon.ico file to !WebPreferences in each web.
   1.190 +   * Preferred: Change the setting of the location of favicon.ico in !TWikiPreferences so all webs use the favicon.ico from the TWiki web. This is the fastest and easiest solution.
   1.191 +
   1.192 +To change the location of favicon.ico in !TWikiPreferences to the TWiki web add this line to Main.TWikiPreferences
   1.193 +
   1.194 +<verbatim>
   1.195 +   * Set FAVICON = %PUBURLPATH%/%SYSTEMWEB%/%WEBPREFSTOPIC%/favicon.ico
   1.196 +</verbatim>
   1.197 +
   1.198 +---+++ !TWikiUsers topic in Main web
   1.199 +
   1.200 +Your Cairo [[Main.TWikiUsers][Main.TWikiUsers]] topic will work in TWiki4 but you will need to ensure that these 4 users from the default TWiki4 version of !TWikiUsers are copied to the existing !TWikiUsers topic. !TWikiGuest is probably already there but the others are new
   1.201 +   * *TWikiContributor* - placeholder for a TWiki developer, and is used in TWiki documentation
   1.202 +   * *TWikiGuest* - guest user, used as a fallback if the user can't be identified
   1.203 +   * *TWikiRegistrationAgent* - special user used during the new user registration process
   1.204 +   * *UnknownUser* - used where the author of a previously stored piece of data can't be determined
   1.205 +
   1.206 +
   1.207 +You additionally need to ensure that !TWikiUsers has the =Set ALLOWTOPICCHANGE = !TWikiAdminGroup, !TWikiRegistrationAgent=. Otherwise people will not be able to register.
   1.208 +
   1.209 +---++ Important Changes since 4.0.5
   1.210 +
   1.211 +---+++ Supported Perl version
   1.212 +
   1.213 +TWiki 4.0.5 worked on Perl version 5.6.X. Reports from users has shown that unfortunately TWiki 4.1.0 does not support Perl versions older then 5.8.0. It is the goal that TWiki should work on at least Perl version 5.6.X but none of the developers have had access to Perl installations older than 5.8.0.
   1.214 +
   1.215 +Since TWiki 4.1.0 has some urgent bugs the development team decided to release TWiki 4.1.1 without resolving the issue with Perl 5.6.X. We will however address this and try and resolve it for a planned 4.1.2 release. The TWiki community is very interested in contributions from users that have fixes for the code which will enable TWiki to run on older versions of Perl.
   1.216 +
   1.217 +See the [[http://twiki.org/cgi-bin/view/Codev/WhatVersionsOfPerlAreSupported][WhatVersionsOfPerlAreSupported]] topic to keep up to date with the discussion how to get back support for earlier Perl versions.
   1.218 +
   1.219 +---+++ Template spec changed
   1.220 +
   1.221 +Until TWiki 4.0.5 TWiki.TWikiTemplates the text inside template definition blocks (anything between %<nop>TMPL:DEF{"block"}% and %<nop>TMPL:END% was stripped of leading and trailing white space incl new lines.
   1.222 +
   1.223 +This caused a lot of problems for skin developers when you wanted a newline before or after the block text.
   1.224 +
   1.225 +From TWiki 4.1.0 this has changed so that white space is no longer stripped. Skins like !PatternSkin and !NatSkin have been updated so that they work with the new behavior. But if you use an older skin or have written your own you will most likely need to make some adjustments.
   1.226 +
   1.227 +It is not difficult. The general rule is - if you get mysterious blank lines in your skin, the newline after the %<nop>TMPL:DEF{"block"}% needs to be removed. Ie. the content of the block must follow on the same line as the TMPL:DEF.
   1.228 +
   1.229 +The spec change have the same impact on CommentPlugin templates where you may have to remove the first line break after the TMPL:DEF. See the CommentPluginTemplate for examples of how comment template definitions should look like in TWiki-4.1.X
   1.230 +
   1.231 +An example: A !CommentPlugin template that adds a comment as appending a row to a table. Before the spec change this would work.
   1.232 +
   1.233 +<verbatim>
   1.234 +<verbatim>
   1.235 +%TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE%
   1.236 +|%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% |
   1.237 +%TMPL:END%
   1.238 +</verbatim>
   1.239 +</verbatim>
   1.240 +
   1.241 +From Twiki 4.1.0 the old template definition will add an empty line before the new table row. To fix it simply remove the new line before the table.
   1.242 +
   1.243 +<verbatim>
   1.244 +<verbatim>
   1.245 +%TMPL:DEF{OUTPUT:tabletest}%%POS:BEFORE%|%URLPARAM{"comment"}%| -- %WIKIUSERNAME% - %DATE% |
   1.246 +%TMPL:END%
   1.247 +</verbatim>
   1.248 +</verbatim>
   1.249 +
   1.250 +The advantage of the spec change is that now you can add leading and trailing white space including new lines. This was not possible before.
   1.251 +
   1.252 +---++ Important Changes since 4.1.0
   1.253 +
   1.254 +---+++ New location for session and other temporary files
   1.255 +
   1.256 +*An upgrader upgrading to 4.1.1 should note the following important change*
   1.257 +
   1.258 +The directory for passthrough files and session files have been replaced by a common directory for temporary files used by TWiki. Previously the two configure settings ={PassthroughDir}= and ={Sessions}{Dir}= were by default set to =/tmp=. These config settings have been replaced by ={TempfileDir}= with the default setting value =/tmp/twiki=. If the =twiki= directory does not exist twiki will create it first time it needs it.
   1.259 +
   1.260 +It is highly recommended no longer to use the tmp directory common to other web applications and the new default will work fine for most. You may want to delete all the old session files in /tmp after the upgrade to 4.1.1. They all start with cgisess_. It is additionally highly recommended to limit write access to the ={TempfileDir}= for security reasons if you have non-admin users with login access to the webserver just like you would do with the other webserver directories.
   1.261 +
   1.262 +---++ Important Changes since 4.1.2
   1.263 +
   1.264 +---+++ New WYSIWYG Editor
   1.265 +
   1.266 +TWiki now ships with a new WYSIWYG editor based on !TinyMCE replaces the Kupu based editor.%BR% !TinyMCE is not a perfect Wysiwyg editor but it is magnitudes better than the Kupu editor
   1.267 +
   1.268 +The !WysiwygPlugin that drives the engine behind both !TinyMCE has additionally been heavily improved so that less TWiki Applications are negatively affected by editing WYSIWYG
   1.269 +
   1.270 +When !TinyMCEPlugin is enabled the Edit button per default becomes WYSIWYG editing mode. A new Raw Edit link has been added to enable application developers to edit the good old way
   1.271 +
   1.272 +The WYSIWYG button has been removed.
   1.273 +
   1.274 +---+++ NEWTOPICLINKSYMBOL removed
   1.275 +
   1.276 +The NEWTOPICLINKSYMBOL preference which was deprecated in 4.1 has now been removed from the code. If you want to control the appearance of new links, you can use NEWLINKFORMAT.
   1.277 +
   1.278 +---+++ !UserForm and !NewUserTemplate Customization
   1.279 +
   1.280 +When a new user registers on TWiki his user topic is created based on the =NewUserTemplate= and =UserForm=.
   1.281 +
   1.282 +The =NewUserTemplate= was located in the TWiki web and the =UserForm= in the Main web. When upgrading TWiki these were some of the topics you had to take care not to overwrite.
   1.283 +
   1.284 +From 4.2.0 the =UserForm= and =NewUserTemplate= are distributed in the TWiki web. If you create the two in the Main web the Main web version will be used instead. So if you tailor the user topic format or the form then you should always copy the two files to the Main web and modify the ones in the Main web. When you later upgrade TWiki your tailored template and form will not be overwritten.
   1.285 +
   1.286 +---+++ !TWikiUsers no longer distributed
   1.287 +
   1.288 +The =Main.TWikiUsers= topic contains all the registered users. It is a topic you do not want to overwrite when you upgrade TWiki.
   1.289 +
   1.290 +From 4.2.0 this file is no longer included in the TWiki distribution. When you register the first time TWiki creates the =Main.TWikiUsers= topic in the Main web if it does not exist already. This means that you can now upgrade TWiki without risk of overwriting the important =TWikiUsers= topic.
   1.291 +
   1.292 +   * For new installers this makes no difference at all
   1.293 +   * For upgraders this is one less problem to worry about as your important !Main.TWikiUsers topic now no longer gets overwritten when upgrading.
   1.294 +   
   1.295 +---+++ New =working= directory
   1.296 +
   1.297 +A new directory =working= which per default is located in the twiki root, has been introduced which contains:
   1.298 +
   1.299 +   * registration_approvals - with 4.2.0 it is moved to here from the data directory)
   1.300 +   * tmp - so we now avoid having to fight with special access rights and /tmp directory that gets cleaned out when booting.
   1.301 +   * work_areas - with 4.2.0 it is moved to here from the pub directory. Configure automatically moved the directory when you upgrade.
   1.302 +
   1.303 +Note: Remember to restrict access to this new directory when you upgrade.
   1.304 +
   1.305 +The configuration setting ={WorkingDir}= defines the container directory for temporary files, extensions' work areas, and intermediate registration data.  The default is =working= under your installation root.
   1.306 +
   1.307 +Take care for that change if you run your own routine to delete obsolete session files, which will now be found under =working/tmp/cgisess*=.
   1.308 +   
   1.309 +---+++ New Internal Admin Login
   1.310 +
   1.311 +TWiki 4.2 introduces a new _Internal Admin Login_ feature which uses "admin" (configurable) as username and the password used for configure to become temporary administrator. When you do a new installation you need to use this feature as !Main.TWikiAdminGroup is now access restricted by default to avoid security attacks during the hours an installation may take. From configure there is a link to the !TWikiAdminGroup topic and on !TWikiAdminGroup the step by step instructions are written in a yellow box. Our advice is not to remove this help text in case you need it later.
   1.312 +
   1.313 +%STOPINCLUDE%
   1.314 +
   1.315 +__Related Topics:__ AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki, TWiki:TWiki.UpgradingTWiki04x00PatchReleases, TWiki:TWiki.InstallingTWiki#OtherPlatforms, TWiki:TWiki.ApacheConfigGenerator, TWiki:TWiki.SettingFileAccessRightsLinuxUnix
   1.316 +@
   1.317 +
   1.318 +
   1.319 +1.7
   1.320 +log
   1.321 +@buildrelease
   1.322 +@
   1.323 +text
   1.324 +@d1 1
   1.325 +a1 1
   1.326 +%META:TOPICINFO{author="KennethLavrsen" date="1170592351" format="1.1" reprev="1.2" version="7"}%
   1.327 +d3 1
   1.328 +a3 1
   1.329 +---+!! TWiki Upgrade Guide
   1.330 +d5 1
   1.331 +a5 1
   1.332 +_This guide covers upgrading from a previous version of TWiki (such as Cairo or TWiki4.0) to TWiki 4.1__
   1.333 +d11 1
   1.334 +a11 1
   1.335 +TWiki-4.0.0 was a major new release. TWiki-4.1.0 is a minor release without dramatic changes since 4.0.0
   1.336 +d16 1
   1.337 +a16 1
   1.338 +   * Review TWiki:TWiki.TWikiUpgradeTo04x00x00 for latest information and experience notes.
   1.339 +d24 1
   1.340 +a24 1
   1.341 +See TWikiReleaseNotes04x00 and TWikiReleaseNotes04x01
   1.342 +d45 4
   1.343 +a48 1
   1.344 +      * If you are upgrading from a 4.0.x release, carry over the configure settings from the old release.
   1.345 +d54 1
   1.346 +a54 1
   1.347 +      * Your =lib/TWiki.cfg= from the old TWiki installation is a good resource for some of the settings you will need but you cannot reuse the old TWiki.cfg.
   1.348 +d65 1
   1.349 +a65 1
   1.350 +      *  CommentPlugin - Set DEFAULT_TYPE
   1.351 +d70 1
   1.352 +a70 1
   1.353 +      * SmiliesPlugin - Did you add your own smileys? No smileys were added 4.0.0 and 4.0.2 so you can just leave this topic as it is.
   1.354 +d73 1
   1.355 +d81 3
   1.356 +a83 1
   1.357 +   
   1.358 +d87 1
   1.359 +a87 1
   1.360 +   * Manually merge all the users from the old =TWiki.TWikiUsers= topic to the new TWiki. If you upgrade from Cairo you can simply use the old file and add the missing new system users to the list of users. If you upgrade from TWiki-4.0.X simply use the old topic.
   1.361 +d89 1
   1.362 +a89 1
   1.363 +      * If you upgrade from Cairo and you are using the Htpasswd login manager, then note that email addresses for users have moved out of user topics and into the password database. There is a script that performs this extra upgrade step for you - see =tools/upgrade_emails.pl=.
   1.364 +d91 3
   1.365 +d107 2
   1.366 +a108 2
   1.367 +   * Transfer any customized and local settings from [[%TWIKIWEB%.TWikiPreferences]] to the topic pointed at by {LocalSitePreferences} ([[%LOCALSITEPREFS%]]). Per default this is =Main.TWikiPreferences=. This avoids having to write over files in the distribution on a later upgrade.
   1.368 +   * If you changed any of the topics in the original TWiki distribution, you will have to transfer your changes to the new install manually. There is no simple way to do this, though a suggestion is to use 'diff' to find changed files in the =data/TWiki= of the old and new TWiki installation, and transfer the changes into the new TWiki install.
   1.369 +d112 8
   1.370 +d134 1
   1.371 +a134 1
   1.372 +   * Set FAVICON = %PUBURLPATH%/%TWIKIWEB%/%WEBPREFSTOPIC%/favicon.ico
   1.373 +d193 1
   1.374 +a193 1
   1.375 +---+++ New location for session files
   1.376 +d195 1
   1.377 +a195 1
   1.378 +An upgrader upgrading to 4.1.1 should note the following important change
   1.379 +d201 50
   1.380 +@
   1.381 +
   1.382 +
   1.383 +1.6
   1.384 +log
   1.385 +@buildrelease
   1.386 +@
   1.387 +text
   1.388 +@d1 1
   1.389 +a1 2
   1.390 +%META:TOPICINFO{author="KennethLavrsen" date="1170592351" format="1.1" reprev="1.2" version="6"}%
   1.391 +%TOC%
   1.392 +d3 3
   1.393 +a5 1
   1.394 +---# TWiki Upgrade Guide
   1.395 +d7 1
   1.396 +a7 1
   1.397 +_Upgrade from the previous TWiki 01-Sep-2004 Production Release to TWiki-4.X_
   1.398 +@
   1.399 +
   1.400 +
   1.401 +1.5
   1.402 +log
   1.403 +@buildrelease
   1.404 +@
   1.405 +text
   1.406 +@d1 1
   1.407 +a1 1
   1.408 +%META:TOPICINFO{author="TWikiContributor" date="1168726854" format="1.1" version="5"}%
   1.409 +d130 54
   1.410 +a186 1
   1.411 +
   1.412 +@
   1.413 +
   1.414 +
   1.415 +1.4
   1.416 +log
   1.417 +@buildrelease
   1.418 +@
   1.419 +text
   1.420 +@d1 1
   1.421 +a1 1
   1.422 +%META:TOPICINFO{author="TWikiContributor" date="1147664322" format="1.1" version="4"}%
   1.423 +d6 1
   1.424 +a6 1
   1.425 +_Upgrade from the previous TWiki 01-Sep-2004 Prodcution Release to TWiki-4.0.0_
   1.426 +d10 1
   1.427 +a10 1
   1.428 +TWiki-4.0.0 is a major new release. You can chose between an automated upgrade using a script or a manual update.
   1.429 +d17 1
   1.430 +a17 1
   1.431 +   * To upgrade from a standard TWiki Release 01-Sep-2004 to the latest TWiki-4.0.0 Production Release, follow the instructions below
   1.432 +d19 1
   1.433 +a19 1
   1.434 +   * Not all Plugins written for TWiki Release 01-Sep-2004 are fully supported with Dakar. Make sure the Plugins you use can be upgraded as well!
   1.435 +d21 1
   1.436 +a21 1
   1.437 +---++ Major Changes Compared to TWiki Release 01-Sep-2004
   1.438 +d23 1
   1.439 +a23 45
   1.440 +See TWikiReleaseNotes04x00.
   1.441 +
   1.442 +---++ Automated Upgrade Procedure
   1.443 +
   1.444 +If you would prefer to do things manually, *or if you made custom modifications to distributed files* (except topics), then skip to the [[#ManualUpgradeProcedure][manual upgrade procedure]] below.
   1.445 +
   1.446 +The upgrade script is called ="UpgradeTwiki"=, and is found in the root of the distribution. It can be run by any user, though you will need to make sure you correct the permissions so that the webserver user can write all files in the new installation when you have finished. The upgrade script does *not* write to your existing installation.
   1.447 +
   1.448 +The upgrade script will upgrade the *TWiki core only*. Plugins will need to be upgraded separately.
   1.449 +
   1.450 +Note: To upgrade from a Beta, *do not* use !UpgradeTWiki. Instead follow the steps outlined in [[#Upgrading_a_Beta][Upgrading a Beta]], below.
   1.451 +
   1.452 +It will:
   1.453 +
   1.454 +   * Create a new TWiki installation, placing the files from the distribution there as appropriate
   1.455 +   * Where possible, merge the changes you've made in your existing topics and attachments into the new twiki
   1.456 +   * Where not possible, it will tell you, and you can inspect those differences manually
   1.457 +   * Create new configuration files for the new TWiki based on your existing configuation information
   1.458 +   * Set the permissions in the new TWiki so that it should work straight away
   1.459 +   * Attempt to setup authentication for your new TWiki, if you are using .htaccess in the old one
   1.460 +   * Tell you what else you need to do
   1.461 +
   1.462 +To perform the upgrade, you need to:
   1.463 +
   1.464 +   * Check first if there is a newer =UpgradeTwiki= script available, see TWiki:Codev.UpgradeTWiki
   1.465 +   * Create a new directory for your new installation: Let's call this =distro/=
   1.466 +   * Put the distribution zip file in =distro/=
   1.467 +   * Unzip it
   1.468 +   * Choose a directory for the new installation.  I will call this =new_twiki=.  This directory must not already exist.
   1.469 +   * Change directory to =distro/= and run: %BR%
   1.470 +     =./UpgradeTwiki &lt;full path to existing_twiki's setlib.cfg&gt; &lt;full path to new_twiki&gt;=
   1.471 +   * confirm your system settings by pointing your browser to the =configure= script
   1.472 +
   1.473 +Assuming all goes well, =UpgradeTwiki= will give you the final instructions.
   1.474 +
   1.475 +Visit TWiki:Codev.KnownIssuesOfTWiki04x00x00 and fix known issues that apply to you.
   1.476 +
   1.477 +There are a few points worth noting:
   1.478 +
   1.479 +   * =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
   1.480 +   * =UpgradeTwiki= creates the new installation in a new directory tree. It makes a complete copy of all your existing data, so:
   1.481 +      * Clearly you need to point it to a location where there is enough space
   1.482 +      * If you have symlinks under your =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
   1.483 +   * =UpgradeTwiki= doesn't deal with custom templates or Plugins, you will have to reinstall these in the new installation.
   1.484 +   * If you are using the Htpasswd login manager, then note that email addresses for users have moved out of user topics and into the password database. There is a script that performs this extra upgrade step for you - see =tools/upgrade_emails.pl=.
   1.485 +d27 1
   1.486 +a27 1
   1.487 +---++ Manual Upgrade Procedure
   1.488 +d31 70
   1.489 +a100 28
   1.490 +   1 Follow the installation instructions, and install the new release in a new directory.
   1.491 +   1 Copy your local webs over to the data and pub directories of the new install
   1.492 +      * You could also use softlinks to link the web directories in data and pub to the old installation area
   1.493 +   1 Unlock the rcs files in data and pub directories from the old installation using the following shell commands:
   1.494 +      * =find data -name '*,v' -exec rcs -r -u -M '{}' \;=
   1.495 +      * =find pub -name '*,v' -exec rcs -r -u -M '{}' \;=
   1.496 +   1 Examine your old TWiki.cfg, and for each local setting, set the corresponding value in the =configure= interface for the new install.
   1.497 +      *  If you can't use =configure=, then copy the *new* =TWiki.cfg= to =LocalSite.cfg=, and edit =LocalSite.cfg=. Remove all the settings that you didn't change in your previous install, and change the remaining settings to the values from your *old* TWiki.cfg.
   1.498 +   1 Transfer any customized and local settings from [[%TWIKIWEB%.TWikiPreferences]] to the topic pointed at by {LocalSitePreferences} ([[%LOCALSITEPREFS%]]). This avoids having to write over files in the distribution.
   1.499 +   1 If you changed any of the topics in the original TWiki distribution, you will have to transfer your changes to the new install manually. There is no simple way to do this, though the following procedure may help:
   1.500 +      1 Install a copy of the original TWiki release you were using in a temporary directory
   1.501 +      1 Use 'diff' to find changed files, and transfer the changes into the new Dakar install.
   1.502 +      1 Install updated plugins into your new area.
   1.503 +   1 Point your webserver at the new install.
   1.504 +   1 Visit TWiki:Codev.KnownIssuesOfTWiki04x00x00 and fix known issues that apply to you.
   1.505 +   1 If you are using the Htpasswd login manager, then note that email addresses for users have moved out of user topics and into the password database. There is a script that performs this extra upgrade step for you - see =tools/upgrade_emails.pl=.
   1.506 +
   1.507 +You are *highly* recommended *not* to change any distributed files if you can avoid it, to simplify future upgrades!
   1.508 +
   1.509 +---++ Upgrading a Beta
   1.510 +*If* you followed the recommendations and avoided modifying any distributed files, then this is quite straightforward:
   1.511 +   1 Follow the installation instructions, and install the new release in a new directory.
   1.512 +   1 Copy your local webs over to the data and pub directories of the new install
   1.513 +      * Be careful to copy over the user topics and TWikiUsers.txt in the Main web
   1.514 +   1 Copy over your =bin/LocalLib.cfg= and =lib/LocalSite.cfg= files
   1.515 +   1 Copy over any local files you created (such as .htpasswd and .htaccess files)
   1.516 +   1 Point your webserver at the new install.
   1.517 +*If* you changed any of the distributed files, you will have to continue from Step 5 above.
   1.518 +d111 1
   1.519 +a111 1
   1.520 +   * Change the setting of the location of favicon.ico in !TWikiPreferences so all webs use the favicon.ico from the TWiki web. This is the fastest and easiest solution.
   1.521 +d119 11
   1.522 +d132 1
   1.523 +a132 1
   1.524 +__Related Topics:__ AdminDocumentationCategory, TWiki:TWiki.UpgradingTWiki
   1.525 +@
   1.526 +
   1.527 +
   1.528 +1.3
   1.529 +log
   1.530 +@buildrelease
   1.531 +@
   1.532 +text
   1.533 +@d1 1
   1.534 +a1 1
   1.535 +%META:TOPICINFO{author="TWikiContributor" date="1127433585" format="1.1" version="3"}%
   1.536 +d23 1
   1.537 +a23 1
   1.538 +See TWikiReleaseNotes04x00x00.
   1.539 +d104 17
   1.540 +@
   1.541 +
   1.542 +
   1.543 +1.2
   1.544 +log
   1.545 +@buildrelease
   1.546 +@
   1.547 +text
   1.548 +@d1 1
   1.549 +a1 1
   1.550 +%META:TOPICINFO{author="TWikiContributor" date="1127433585" format="1.1" version="2"}%
   1.551 +d14 6
   1.552 +a19 6
   1.553 +	* Please review the AdminSkillsAssumptions before you upgrade TWiki
   1.554 +	* Review TWiki:TWiki.TWikiUpgradeTo04x00x00 for latest information and experience notes.
   1.555 +	* To upgrade from a release prior to TWiki Release 01-Sep-2004, start with TWiki:TWiki.UpgradingTWiki on TWiki.org
   1.556 +	* To upgrade from a standard TWiki Release 01-Sep-2004 to the latest TWiki-4.0.0 Production Release, follow the instructions below
   1.557 +	* Once the upgrade has been applied, an existing earlier installation will still be able to read all the topics, but should not be used to write. Make sure you take a backup!
   1.558 +	* Not all Plugins written for TWiki Release 01-Sep-2004 are fully supported with Dakar. Make sure the Plugins you use can be upgraded as well!
   1.559 +d37 7
   1.560 +a43 7
   1.561 +	* Create a new TWiki installation, placing the files from the distribution there as appropriate
   1.562 +	* Where possible, merge the changes you've made in your existing topics and attachments into the new twiki
   1.563 +	* Where not possible, it will tell you, and you can inspect those differences manually
   1.564 +	* Create new configuration files for the new TWiki based on your existing configuation information
   1.565 +	* Set the permissions in the new TWiki so that it should work straight away
   1.566 +	* Attempt to setup authentication for your new TWiki, if you are using .htaccess in the old one
   1.567 +	* Tell you what else you need to do
   1.568 +d47 8
   1.569 +a54 8
   1.570 +	* Check first if there is a newer =UpgradeTwiki= script available, see TWiki:Codev.UpgradeTWiki
   1.571 +	* Create a new directory for your new installation: Let's call this =distro/=
   1.572 +	* Put the distribution zip file in =distro/=
   1.573 +	* Unzip it
   1.574 +	* Choose a directory for the new installation.  I will call this =new_twiki=.  This directory must not already exist.
   1.575 +	* Change directory to =distro/= and run: %BR%
   1.576 +	  =./UpgradeTwiki &lt;full path to existing_twiki's setlib.cfg&gt; &lt;full path to new_twiki&gt;=
   1.577 +	* confirm your system settings by pointing your browser to =cgi-bin/configure=
   1.578 +d62 6
   1.579 +a67 5
   1.580 +	* =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
   1.581 +	* =UpgradeTwiki= creates the new installation in a new directory tree. It makes a complete copy of all your existing data, so:
   1.582 +		* Clearly you need to point it to a location where there is enough space
   1.583 +		* If you have symlinks under your =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
   1.584 +	* =UpgradeTwiki= doesn't deal with custom templates or Plugins, you will have to reinstall these in the new installation.
   1.585 +a68 1
   1.586 +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.
   1.587 +d75 16
   1.588 +a90 15
   1.589 +	1 Follow the installation instructions, and install the new release in a new directory.
   1.590 +	1 Copy your local webs over to the data and pub directories of the new install
   1.591 +		* You could also use softlinks to link the web directories in data and pub to the old installation area
   1.592 +	1 Unlock the rcs files in data and pub directories from the old installation using the following shell commands:
   1.593 +		* =find data -name '*,v' -exec rcs -r -u -M '{}' \;=
   1.594 +		* =find pub -name '*,v' -exec rcs -r -u -M '{}' \;=
   1.595 +	1 Examine your old TWiki.cfg, and for each local setting, set the corresponding value in the =configure= interface for the new install.
   1.596 +		*  If you can't use =configure=, then copy the *new* =TWiki.cfg= to =LocalSite.cfg=, and edit =LocalSite.cfg=. Remove all the settings that you didn't change in your previous install, and change the remaining settings to the values from your *old* TWiki.cfg.
   1.597 +	1 Transfer any customized and local settings from [[%TWIKIWEB%.TWikiPreferences]] to the topic pointed at by {LocalSitePreferences} ([[%LOCALSITEPREFS%]]). This avoids having to write over files in the distribution.
   1.598 +	1 If you changed any of the topics in the original TWiki distribution, you will have to transfer your changes to the new install manually. There is no simple way to do this, though the following procedure may help:
   1.599 +		1 Install a copy of the original TWiki release you were using in a temporary directory
   1.600 +		1 Use 'diff' to find changed files, and transfer the changes into the new Dakar install.
   1.601 +		1 Install updated plugins into your new area.
   1.602 +	1 Point your webserver at the new install.
   1.603 +	1 Visit TWiki:Codev.KnownIssuesOfTWiki04x00x00 and fix known issues that apply to you.
   1.604 +d96 6
   1.605 +a101 4
   1.606 +	1 Follow the installation instructions, and install the new release in a new directory.
   1.607 +	1 Copy your local webs over to the data and pub directories of the new install
   1.608 +	1 Copy over your =bin/setlib.cfg= and =lib/LocalLib.cfg= files
   1.609 +	1 Point your webserver at the new install.
   1.610 +@
   1.611 +
   1.612 +
   1.613 +1.1
   1.614 +log
   1.615 +@none
   1.616 +@
   1.617 +text
   1.618 +@d1 1
   1.619 +a1 1
   1.620 +%META:TOPICINFO{author="PeterThoeny" date="1093847381" format="1.0" version="1.1"}%
   1.621 +d6 1
   1.622 +a6 1
   1.623 +_Upgrade from the previous TWiki 01-Feb-2003 production release to TWiki 01-Sep-2004_
   1.624 +d10 1
   1.625 +a10 1
   1.626 +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.
   1.627 +d15 5
   1.628 +a19 3
   1.629 +	* To upgrade from a 01-Feb-2003 standard installation to the latest 01-Sep-2004 TWiki Production Release, follow the instructions below
   1.630 +	* __NOTE:__ To upgrade from a *pre-01-Feb-2003* TWiki, start with %TWIKIWEB%.TWikiUpgradeTo01Feb2003
   1.631 +	* To upgrade from a Beta of the new release, or if you made custom modifications to the application, read through all new reference documentation, then use the procedure below as a guideline
   1.632 +d21 1
   1.633 +a21 1
   1.634 +---++ Major Changes Compared to TWiki 01-Feb-2003
   1.635 +d23 1
   1.636 +a23 11
   1.637 +	* Automatic upgrade script, and easier first-time installation
   1.638 +	* Attractive new skins, using a standard set of CSS classes, and a TWikiSkinBrowser to help you choose
   1.639 +	* New easier-to-use save options
   1.640 +	* Many improvements to SEARCH
   1.641 +	* Improved support for internationalisation
   1.642 +	* Better topic management screens
   1.643 +	* More pre-installed Plugins: CommentPlugin, EditTablePlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, SpreadSheetPlugin, TablePlugin
   1.644 +	* Improved Plugins API and more Plugin callbacks
   1.645 +	* Better support for different authentication methods
   1.646 +	* Many user interface and usability improvements
   1.647 +	* And many more enhancements, see the complete change log at TWikiHistory
   1.648 +d25 1
   1.649 +d27 1
   1.650 +a27 1
   1.651 +---++ Automated Upgrade Procedure from 01-Feb-2003 to 01-Sep-2004 Release
   1.652 +d29 1
   1.653 +a29 2
   1.654 +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
   1.655 +TWiki installation because it leaves that untouched.
   1.656 +d31 1
   1.657 +a31 1
   1.658 +If you would prefer to do things manually than trust a beta script, skip to the [[#ManualUpgradeProcedure][manual upgrade procedure]] below.
   1.659 +d33 1
   1.660 +a33 1
   1.661 +The upgrade script is called ="UpgradeTwiki"=, and is found in the root of the distribution.
   1.662 +d38 1
   1.663 +a38 1
   1.664 +	* Where possible, merge the changes you've made in your existing topics into the new twiki
   1.665 +d47 1
   1.666 +a47 1
   1.667 +	* Check first if there is a newer =UpgradeTwiki= script available, see TWiki:Codev.UpgradeTwiki
   1.668 +d53 2
   1.669 +a54 1
   1.670 +	  =./UpgradeTwiki &lt;full path to new_twiki&gt;=
   1.671 +d58 2
   1.672 +d66 1
   1.673 +a66 2
   1.674 +	* =UpgradeTwiki= doesn't deal with custom templates or Plugins, you will have to reinstall these in the new installation
   1.675 +	* If you have done tricky stuff with $OS in your existing =TWiki.cfg= file, then you will need to manually examine the new =TWiki.cfg= file and possibly put your tricky changes in there manually
   1.676 +d68 1
   1.677 +a68 1
   1.678 +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.
   1.679 +d71 1
   1.680 +a71 1
   1.681 +---++ Manual Upgrade Procedure from 01-Feb-2003 to 01-Sep-2004 Release
   1.682 +d73 1
   1.683 +a73 1
   1.684 +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.
   1.685 +d75 25
   1.686 +a99 71
   1.687 +	1. *Back up and prepare*:
   1.688 +		* Back up all existing TWiki directories =$TWIKIROOT/bin=, =$TWIKIROOT/pub=, =$TWIKIROOT/data=, =$TWIKIROOT/templates=, =$TWIKIROOT/lib=
   1.689 +		* Create a temporary directory and unpack the ZIP file there
   1.690 +	1. *Update files in TWiki root*:
   1.691 +		* Overwrite all =*.html= and =*.txt= files in =$TWIKIROOT= with the new ones
   1.692 +	1. *Update template files*:
   1.693 +		* Overwrite all template files in =$TWIKIROOT/templates= with the new ones
   1.694 +			* If you have customized your templates, make sure to merge those changes back to the new files
   1.695 +		* If you have customized skins or loaded new skins, make sure to merge or apply those changes to the new files
   1.696 +		* Change to *view* templates and skins:
   1.697 +			* Add =%<nop>BROADCASTMESSAGE%= somewhere on the top of the rendered HTML page (see the new =view.tmpl= for reference)
   1.698 +		* Changes to *edit* templates and skins:
   1.699 +			* Change the form action from =preview= to =save=: %BR%
   1.700 +			  =&lt;form name="main" action="%<nop>SCRIPTURLPATH%/<b>save</b>%<nop>SCRIPTSUFFIX%/%<nop>WEB%/%<nop>TOPIC%" method="post"&gt;=
   1.701 +			* Change the topic action to the following: %BR%
   1.702 +			  =%<nop>TMPL:DEF{"topicaction"}%= %BR%
   1.703 +		=&lt;input type="submit" class="twikiSubmit" name="action" value="Cancel" id="cancel" /&gt;= %BR%
   1.704 +		=&lt;input type="submit" class="twikiSubmit" name="action" value="Preview" id="preview" /&gt;= %BR%
   1.705 +		=&lt;input type="submit" class="twikiSubmit" name="action" value="Checkpoint" id="checkpoint" /&gt;= %BR%
   1.706 +		=&lt;input type="submit" class="twikiSubmit" name="action" value="QuietSave" id="quietsave" /&gt;= %BR%
   1.707 +			  =&lt;input type="submit" class="twikiSubmit" name="action" value="Save" id="save" /&gt;%<nop>TMPL:END%=
   1.708 +	1. *Update script files*:
   1.709 +		* Overwrite all script files in =$TWIKIROOT/bin= with the new ones.
   1.710 +			* If necessary, rename the scrips to include the required extension, e.g. =.cgi=
   1.711 +		* Edit =$TWIKIROOT/bin/setlib.cfg= and point =$twikiLibPath= to the __absolute__ file path of =$TWIKIROOT/lib= 
   1.712 +		* Edit your existing =$TWIKIROOT/bin/.htaccess= file to include a directive for the new =rdiffauth= script:%BR%
   1.713 +		  =&lt;Files "rdiffauth"&gt;= %BR%
   1.714 +		  =&nbsp; &nbsp; require valid-user= %BR%
   1.715 +		  =&lt;/Files&gt;=
   1.716 +		* Pay attention to the file and directory permissions, the scripts need to be executable, e.g. =chmod 775 $TWIKIROOT/bin/*=
   1.717 +			* Certain hosted environments require a =755= (do so if you get a "Premature end of script headers" messages in the Apache error log)
   1.718 +		* For Windows hosts, make sure the correct path to the perl interpreter is changed in the first line of every script file. See also [[WindowsInstallCookbook#Editing_the_CGI_scripts][WindowsInstallCookbook]]
   1.719 +	1. *Update library files*:
   1.720 +		* Overwrite the =TWiki.cfg= configuration file in =$TWIKIROOT/lib= with the new one
   1.721 +		* Restore the configuration values from the backup. You typically need to configure just the ones in the section "variables that need to be changed when installing on a new server"
   1.722 +		* Overwrite the =TWiki.pm= library in =$TWIKIROOT/lib= with the new one
   1.723 +		* Copy and overwrite all subdirectories below =$TWIKIROOT/lib= with the new ones. Make sure to preserve any extra Plugins you might have in =$TWIKIROOT/lib/TWiki/Plugins= 
   1.724 +		* Pay attention to the file and directory permissions, the library files should not be executable but the directory files should be, e.g. =chmod 664 `find -type f $TWIKIROOT/lib`= (for files) and =chmod 775 `find -type d $TWIKIROOT/lib`= (for directories)
   1.725 +	1. *Update data files*:
   1.726 +		* Run the =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:
   1.727 +			* 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, for example =www-data=
   1.728 +			* Run the =testenv= script from your browser; in the %BROWN% *Fix* %ENDCOLOR% line you can <u>relock</u> all the rcs files *(recommended)*
   1.729 +			* Alternatively, execute the shell script commands described in [[TWikiInstallationGuide#StepTwo]]
   1.730 +		* In the temporary =twiki/data/TWiki= directory where you unzipped the installation package:
   1.731 +			* Remove the files you do *not* want to upgrade: =InterWikis.*=, =TWikiRegistration.*=, =TWikiRegistrationPub.*=, =WebPreferences.*=, =WebStatistics.*= and all =WebTopic*= files
   1.732 +		* Rename in the temporary directory the file =$TWIKIROOT/data/TWiki/TWikiPreferences.*= to =TWikiPreferencesSave.*=.
   1.733 +		* Move all remaining =*.txt= and =*.txt,v= files from the temporary =data/TWiki= directory to your =$TWIKIROOT/data/TWiki= directory, overwriting the existing ones
   1.734 +		* Merge your original =TWikiPreferencesSave.txt= settings into =$TWIKIROOT/data/TWiki/TWikiPreferences.txt=. Notable changes are:
   1.735 +			* New WIKIWEBMASTERNAME setting to avoid notifications being trapped by spam filters
   1.736 +			* New ATTACHFILESIZELIMIT setting for maximum size of FileAttachments in KB, 0 for no limit
   1.737 +			* New READTOPICPREFS and TOPICOVERRIDESUSER settings to allow override Preference settings in topics
   1.738 +			* Changed FINALPREFERENCES:
   1.739 +				* <nop>Set FINALPREFERENCES = PREVIEWBGIMAGE, WIKITOOLNAME, WIKIWEBMASTER, SMTPMAILHOST, SMTPSENDERHOST, ALLOWWEBMANAGE, READTOPICPREFS, TOPICOVERRIDESUSER
   1.740 +		* Move the =data/_default= directory from the temporary location to your =$TWIKIROOT/data= directory
   1.741 +		* Make sure that the directories and files below =$TWIKIROOT/data= are writable by your cgi-script user
   1.742 +	1. *Adapt the other webs (all other than =TWiki= and =_default=)*:
   1.743 +		* Add WebLeftBar topic. See WebLeftBarExample for a clean example, and TWiki.WebLeftBarCookbook for more information. (WebLeftBar is used by the TWiki.PatternSkin skin)
   1.744 +		* Add WebSearchAdvanced topic, which has this one line: %BR%
   1.745 +		  =%<nop>INCLUDE{"%<nop>TWIKIWEB%.WebSearchAdvanced"}%=
   1.746 +		* Consider changing WebPreferences settings:
   1.747 +			* New NOAUTOLINK setting to prevent automatic linking of WikiWords and acronyms
   1.748 +			* Changed FINALPREFERENCES:
   1.749 +				* <nop>Set FINALPREFERENCES = NOSEARCHALL, ATTACHFILESIZELIMIT, WIKIWEBMASTER, WEBCOPYRIGHT, WEBTOPICLIST, DENYWEBVIEW, ALLOWWEBVIEW, DENYWEBCHANGE, ALLOWWEBCHANGE, DENYWEBRENAME, ALLOWWEBRENAME
   1.750 +	1. *Update pub files*:
   1.751 +		* Move all subdirectories below =pub/TWiki= from your temporary directory into your =$TWIKIROOT/pub/TWiki= directory
   1.752 +		* Make sure that the directories and files below =$TWIKIROOT/pub/TWiki= are writable by your cgi-script user
   1.753 +		* Move all files in =pub/icn= directory from the temporary location to your =$TWIKIROOT/pub/icn= directory
   1.754 +	1. *Verify installation*:
   1.755 +		* Execute the =$TWIKIROOT/bin/testenv= script from your browser (e.g. =http://localhost/bin/testenv=) to see if it reports any issues; address any potential problems
   1.756 +		* Test your updated TWiki installation to see if you can view, create, edit and rename topics; upload and move attachments; register users
   1.757 +		* Test if the installed Plugins work as expected. You should see the list of installed Plugins in [[%TWIKIWEB%.WebHome]]
   1.758 +d101 1
   1.759 +a101 3
   1.760 +*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.
   1.761 +
   1.762 +---++ Known Issues
   1.763 +d103 1
   1.764 +a103 5
   1.765 +	* Check TWiki:Codev/KnownIssuesOfTWiki01Sep2004 for known issues of TWiki 01-Sep-2004 production release
   1.766 +
   1.767 +-- TWiki:Main.PeterThoeny - 29 Aug 2004 %BR%
   1.768 +
   1.769 +%STOPINCLUDE%
   1.770 +@