Changes for page Installation

Last modified by Thomas Mortagne on 2023/12/19

<
From version < 69.1 >
edited by Guillaume Fenollar
on 2012/01/25
To version < 70.1 >
edited by Guillaume Fenollar
on 2012/01/25
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -58,61 +58,7 @@
58 58  == [[Using .deb package (usable for production)>>AdminGuide.InstallationViaAPT]] ==
59 59  
60 60  
61 -= Upgrading an XWiki Installation =
62 62  
63 -There are different parts of XWiki that you may want to upgrade:
64 -
65 -* [[XWiki Core>>#HUpgradingXWikiCore]]
66 -* [[Documents provided with the default XWiki XAR>>#HUpgradingwikidocuments]]
67 -
68 -{{info}}
69 -If you're upgrading a pre-1.0 XWiki installation refer to [[this guide>>UpgradeXWiki09Installation]].
70 -{{/info}}
71 -
72 -== Upgrading XWiki Core ==
73 -
74 -The general strategy is to [[download the WAR distribution>>xwiki:Main.Download]] and to replace your current installed WAR. Make sure you don't copy on top since this could leave some old files around which would make XWiki fail (like if old JARs are lying around in ##WEB-INF/lib##). Before replacing your current WAR, make sure you back it up and more specifically that you copy the ##hibernate.cfg.xml##, ##xwiki.cfg## and ##xwiki.properties## files which you'll need to copy in your newly installed WAR since they contain your XWiki configuration. Make sure you also copy any plugins you may have added or any template files you may have modified.
75 -
76 -Some additional operations may be required for upgrading and you must check the [[release notes>>xwiki:ReleaseNotes.WebHome]] for all the versions from the version you're upgrading from up to the new version you're installing. It's also possible that new features are available and that your ##xwiki.cfg## file needs to be modified. If this is the case then it'll be specified in the release notes.
77 -
78 -Note that the database schema is automatically upgraded when needed. All you need to do is to ensure your ##xwiki.cfg## file is correctly configured to perform the migration. Here's a relevant excerpt from the ##xwiki.cfg## file:
79 -
80 -{{code language="none"}}
81 -#-# Whether migrations are enabled or not. Should be enabled when upgrading, but for a better startup time it is better to
82 -#-# disable them in production.
83 -xwiki.store.migration=1
84 -
85 -#-# Whether to exit after migration. Useful when a server should handle migrations for a large database, without going
86 -#-# live afterwards.
87 -# xwiki.store.migration.exitAfterEnd=0
88 -
89 -#-# Indicate the list of databases to migrate.
90 -#-# to upgrade all wikis database set xwiki.store.migration.databases=all
91 -#-# to upgrade just some wikis databases set xwiki.store.migration.databases=xwiki,wiki1,wiki2
92 -#-# Note: the main wiki is always migrated whatever the configuration.
93 -# xwiki.store.migration.databases=
94 -{{/code}}
95 -
96 -== Upgrading wiki documents ==
97 -
98 -You may want to upgrade to a newer version of the Default Wiki XAR in order to benefit from the latest changes. As mentioned above in the [["Installing the Default Wiki XAR" section>>#HInstallingtheDefaultWikiXAR]] you should be very careful and when doing the import make sure you selectively decide what pages you wish to import. More specifically the following pages should be imported with great care:
99 -
100 -* XWiki.XWikiPreferences: This page contains some configuration of your wiki (it overrides the configuration defined in xwiki.cfg). If you import a new version of this page you'll loose any customization you may have made such as the skin to use, the rights for your wiki, etc.
101 -* XWiki.RegistrationConfig: Contains Registration configuration of your wiki.
102 -* Invitation.InvitationConfig: Configuration for the [[Invitation Application>>extensions:Extension.Invitation Application]].
103 -* XWiki.WebPreferences, Main.WebPreferences, and all other spaces WebPreferences pages: Same as XWiki.XWikiPreferences but at the level of a space.
104 -* XWiki.XWikiAllGroup (list of registered users) and XWiki.AdminGroup (list of Admins): If you have existing users and import a new version of these pages, you'll find that your users do not belong to these groups anymore and thus may not be able to edit pages, log in, etc. You'll need to add them again to the right groups.
105 -* XWiki.Admin: This page contains the Admin user with the default password. If you import it you'll create a security hole. Thus it's very important not to import this page.
106 -* Any other page you have modified, such as Main.WebHome, a modified Panel, etc.
107 -
108 -=== Let's clean it up ===
109 -
110 -* Expand the XWiki WAR that you installed in your servlet container (the one that contains the JDBC drivers to access your database) into a new folder, using ##jar xvf xwiki-enterprise-web-3.1.war##, or avoid this step if you performed an export/import data migration (you already expanded it)
111 -* Merge your old ##xwiki.cfg##, ##xwiki.properties## and ##hibernate.cfg.xml## files with the new versions found in the ##WEB-INF## folder. Take care that if some changes were already made (probably because of database configuration when you installed the JDBC drivers) could be lost, so take care to add these changes
112 -* Install this new folder as the ##xwiki## application in your servlet container (may be by copying the folder to the servlet filesystem space or by packing it in a WAR file and deploying it in the container's administration interface)
113 -
114 -At this point all is set, you can experience your old wiki data over the new XWiki core!
115 -
116 116  = Troubleshooting =
117 117  
118 -You can verify some basic settings of your XWiki install (on Tomcat, MySQL) using the [[Admin Tools application>>extensions:Extension.AdminTools]].
64 +You can verify some basic settings of your XWiki install (on Tomcat, MySQL) using the [[Admin Tools application>>extensions:Extension.AdminTools]]. Keep in mind that some of these tools only work in a Linux environment.

Get Connected