1
-
1
+
2
2
Instructions for updating OpenCms 8.x, 9.x and 10.0.x to @OPENCMS_VERSION@
3
3
4
4
5
5
WARNING:
6
6
7
7
UPDATE AT YOUR OWN RISK
8
8
9
- The OpenCms update wizard and these instructions are distributed in the hope
9
+ The OpenCms update wizard and these instructions are distributed in the hope
10
10
that they will be useful, but WITHOUT ANY WARRANTY; without even the implied
11
11
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
12
13
- Alkacon Software does not guarantee that there will be no damage to your
13
+ Alkacon Software does not guarantee that there will be no damage to your
14
14
existing OpenCms installation when using this upgrade wizard.
15
15
16
- IMPORTANT: Before using this upgrade wizard, make sure you have a full backup
16
+ IMPORTANT: Before using this upgrade wizard, make sure you have a full backup
17
17
of your OpenCms installation and database.
18
18
19
- IMPORTANT: Alkacon OCEE versions less than 5 will not work with OpenCms 10.
19
+ IMPORTANT: Alkacon OCEE versions less than 5 will not work with OpenCms 10.
20
20
21
- IMPORTANT: The updater is only compatible with the database engines MySQL,
21
+ IMPORTANT: The updater is only compatible with the database engines MySQL,
22
22
Oracle and PostgreSQL.
23
-
23
+
24
24
IMPORTANT: This version of OpenCms requires at least Java 8.
25
25
26
26
IMPORTANT: The upgrade wizard will replace all VFS resources of the updated modules.
27
27
If you made modifications to these modules, their changes will be lost.
28
28
In this case export the changed module resources before starting the update.
29
- Hint: You can use the "Resource changed since" feature in the Database
30
- Administration to export all the changes you have done after installing
29
+ Hint: You can use the "Resource changed since" feature in the Database
30
+ Administration to export all the changes you have done after installing
31
31
OpenCms.
32
32
33
33
Follow the following steps to update from OpenCms 10.x to @OPENCMS_VERSION@:
34
34
35
35
36
36
1. Shutdown your OpenCms servlet container
37
37
38
- The OpenCms upgrade requires that you shut down OpenCms first. You can use the
39
- Broadcast message tool in the 'Administration' view to inform users before the
38
+ The OpenCms upgrade requires that you shut down OpenCms first. You can use the
39
+ Broadcast message tool in the 'Administration' view to inform users before the
40
40
server is shut down.
41
41
42
42
43
- 2. Extract the OpenCms upgrade file 'opencms-upgrade-to-@
[email protected] ' to
43
+ 2. Extract the OpenCms upgrade file 'opencms-upgrade-to-@
[email protected] ' to
44
44
your web application directory
45
45
46
- If you extracted the file to an external directory, copy the folders 'update'
47
- and 'WEB-INF' to the OpenCms webapp directory. Be sure that the files 'opencms.tld'
48
- and 'lib/opencms.jar' are replaced with the new version from the archive before you
49
- continue. Be also sure that after unpacking the tomcat user has write permissions on
46
+ If you extracted the file to an external directory, copy the folder 'WEB-INF' to the OpenCms webapp directory. Be sure that the files 'opencms.tld'
47
+ and 'lib/opencms.jar' are replaced with the new version from the archive before you
48
+ continue. Be also sure that after unpacking the tomcat user has write permissions on
50
49
the whole web application directory.
51
50
Be also aware that the 'web.xml' might be overwritten.
52
- The OpenCmsUrlServletFilter available since version 10.5.0 will be disabled by default.
51
+ The OpenCmsUrlServletFilter available since version 10.5.0 will be disabled by default.
53
52
Edit the 'web.xml' to enable it.
54
53
55
54
56
55
3. Enable the upgrade wizard
57
56
58
- To do so, set the property
57
+ To do so, set the property
59
58
wizard.enabled=true
60
59
in the config file WEB-INF/config/opencms.properties.
61
60
62
61
4. Restart your OpenCms servlet container
63
62
64
- OpenCms will not start because the wizard in enabled.
63
+ OpenCms will not start because the wizard in enabled.
65
64
66
65
67
66
5. Execute the OpenCms update wizard
@@ -71,24 +70,24 @@ Open the URL $SERVER_NAME/$CONTEXT_NAME/update/ in your Browser, e.g.
71
70
http://yourserver:8080/opencms/update/
72
71
73
72
The update wizard should appear, which looks very similar to the OpenCms setup
74
- wizard. Make sure to read the instructions and the disclaimer on the start
73
+ wizard. Make sure to read the instructions and the disclaimer on the start
75
74
page. Then execute the wizard which guides you through the update process.
76
75
77
76
You will need the Admin password to continue with the upgrade.
78
77
79
78
When asked to select the modules to update you should definitely select all
80
- org.opencms.ade.*, org.opencms.editors.*, org.opencms.gwt and org.opencms.workplace.*
79
+ org.opencms.ade.*, org.opencms.editors.*, org.opencms.gwt and org.opencms.workplace.*
81
80
modules.
82
-
83
81
84
82
85
- After you confirmed the module selection, you should see the status report of the
86
- module import. This report is also written to WEB-INF/logs/update.log. Check this
83
+
84
+ After you confirmed the module selection, you should see the status report of the
85
+ module import. This report is also written to WEB-INF/logs/update.log. Check this
87
86
file for errors and exceptions after installation. There should be no exceptions
88
- caused by the upgrade if everything went as expected. Some exceptions may occur
87
+ caused by the upgrade if everything went as expected. Some exceptions may occur
89
88
in case you have an advanced OpenCms installation with many customized classes.
90
89
91
- The update wizard will also do a full rebuild of all your search indices, and
90
+ The update wizard will also do a full rebuild of all your search indices, and
92
91
purge the JSP repository.
93
92
94
93
The wizard will finish similar to the setup wizard. After the final confirmation,
@@ -100,16 +99,16 @@ the wizard will be locked again (in the opencms.properties file).
100
99
101
100
During the update Solr will be disabled in the WEB-INF/config/opencms-search.xml.
102
101
To update Solr you must update the 'schema.xml and' the 'solrconfig.xml' manually.
103
- The new default configuration files are located in the solr-update/ directory in
102
+ The new default configuration files are located in the solr-update/ directory in
104
103
the WEB-INF folder of your application. If you are using the default configuration
105
104
from the distribution, it is sufficient to replace the folder WEB-INF/solr/ with
106
105
the solr-update/ folder. Else if you have customized the Solr configuration you might
107
106
want to merge the 'schema.xml' and the 'solrconfig.xml' first. Note that these two files
108
107
are now located under solr/configsets/default/conf/ - up to OpenCms 10 it was solr/conf/.
109
108
Even if you only keep your old config files, move them to solr/configsets/default/conf/.
110
109
111
- If you are updating from an earlier version than 8.5.0, always copy the whole solr-update/
112
- folder to the solr/ folder instead.
110
+ If you are updating from an earlier version than 8.5.0, always copy the whole solr-update/
111
+ folder to the solr/ folder instead.
113
112
114
113
When you are done, enable Solr in the opencms-search.xml again (and restart the servlet
115
114
container).
@@ -119,7 +118,7 @@ container).
119
118
7. Shutdown and restart your OpenCms servlet container
120
119
121
120
Note: to be sure all jsp files work correctly please delete the servlet containers
122
- work directory (ie. ${TOMCAT_HOME}/work/Catalina/localhost/opencms/) and the
121
+ work directory (ie. ${TOMCAT_HOME}/work/Catalina/localhost/opencms/) and the
123
122
OpenCms' jsp repository (ie. ${OPENCMS_HOME}/WEB-INF/jsp/)
124
123
125
124
You should now be able to log into the OpenCms workplace as before.
@@ -130,18 +129,18 @@ You should now be able to log into the OpenCms workplace as before.
130
129
131
130
As the search libraries and configuration may have changed, it is necessary to rebuild all search indexes.
132
131
Log into OpenCms and navigate to Launchpad > Search Management and rebuild all indexes.
133
-
132
+
134
133
135
134
136
135
9. Convert model groups [only relevant when updating from 10.0.x]
137
136
138
- The way model groups are stored has changed between OpenCms 10.0.x and 10.5.x. So if you are using model
137
+ The way model groups are stored has changed between OpenCms 10.0.x and 10.5.x. So if you are using model
139
138
groups and are updating your system from version 10.0.x, you will need to convert them to the new format.
140
139
141
140
This requires the following steps:
142
141
143
142
- Open the explorer, switch to the root site / "system folder" and navigate to the folder /system/modules/org.opencms.base/pages.
144
143
- Execute the JSP "updateModelGroups.jsp" in this folder
145
- - In the form displayed by the JSP, fill out the "base path" and "base container name" fields (they are
146
- described in the form itself) and hit the submit button.
144
+ - In the form displayed by the JSP, fill out the "base path" and "base container name" fields (they are
145
+ described in the form itself) and hit the submit button.
147
146
0 commit comments