Wiki source code of Upgrade 5.0.0 to 5.0.d

Version 1.1 by Normann P. Nielsen on 2026/11/15 15:40

Hide last authors
Normann P. Nielsen 1.1 1 Official Upgrade documentation: [[http://docs.alfresco.com/5.0/tasks/upgrade-process.html]]
2
3 Release Notes: [[https://wiki.alfresco.com/wiki/Alfresco_Community_5.0.d_Release_Notes]]
4
5 [[Snapshot server>>http://docs.alfresco.com/5.0/tasks/upgrade-process.html]]
6
7 Close version 5.0.0
8
9
10 {{code}}
11 root@afserver:~# /etc/init.d/alfresco stop
12 {{/code}}
13
14
15
16 Install 5.0.d:
17
18
19 {{code}}
20 root@afserver:~# chmod +x alfresco-community-5.0.d-installer-linux-x64.bin
21 root@afserver:~# ./alfresco-community-5.0.d-installer-linux-x64.bin
22 Language Selection
23 Please select the installation language
24 [1] English - English
25 [2] French - Français
26 [3] Spanish - Español
27 [4] Italian - Italiano
28 [5] German - Deutsch
29 [6] Japanese - ???
30 [7] Dutch - Nederlands
31 [8] Russian - ???????
32 [9] Simplified Chinese - ????
33 [10] Norwegian - Norsk bokmål
34 [11] Brazilian Portuguese - Português Brasileiro
35 Please choose an option [1] : 1
36 ----------------------------------------------------------------------------
37 Welcome to the Alfresco Community Setup Wizard.
38 ----------------------------------------------------------------------------
39 Installation Type
40 [1] Easy - Installs servers with the default configuration
41 [2] Advanced - Configures server ports and service properties.: Also choose optional components to install.
42 Please choose an option [1] : 2
43 ----------------------------------------------------------------------------
44 Select the components you want to install; clear the components you do not want
45 to install. Click Next when you are ready to continue.
46 Java [Y/n] :
47 PostgreSQL [Y/n] :n
48 Alfresco : Y (Cannot be edited)
49 Solr1 [y/N] :
50 Solr4 [Y/n] :
51 SharePoint [Y/n] :
52 Web Quick Start [y/N] :
53 Google Docs Integration [Y/n] :
54 LibreOffice [Y/n] :
55 Is the selection above correct? [Y/n]:
56 ----------------------------------------------------------------------------
57 Installation Folder
58 Please choose a folder to install Alfresco Community
59 Select a folder [/data/opt/alfresco-5.0.d]: /opt/alfresco
60 Warning: The selected folder is not empty. Please select a different folder
61 Press [Enter] to continue:
62 ----------------------------------------------------------------------------
63 Installation Folder
64 Please choose a folder to install Alfresco Community
65 Select a folder [/data/opt/alfresco]: /opt/alfresco-5.0.d
66 ----------------------------------------------------------------------------
67 Database Configuration
68 JDBC URL: [jdbc:postgresql://localhost/alfresco]: jdbc:mysql://localhost/alfresco
69 JDBC Driver: [org.postgresql.Driver]: com.mysql.jdbc.Driver
70 Database name: [alfresco]:
71 Username: []: alfresco
72 Password: :
73 Verify: :
74 ----------------------------------------------------------------------------
75 Tomcat Port Configuration
76 Please enter the Tomcat configuration parameters you wish to use.
77 Web Server domain: [127.0.0.1]:
78 Tomcat Server Port: [8080]:
79 Tomcat Shutdown Port: [8005]:
80 Tomcat SSL Port [8443]:
81 Tomcat AJP Port: [8009]:
82 ----------------------------------------------------------------------------
83 Alfresco FTP Port
84 Please choose a port number to use for the integrated Alfresco FTP server.
85 Port: [21]:
86 ----------------------------------------------------------------------------
87 Admin Password
88 Please give a password to use for the Alfresco administrator account.
89 Admin Password: :
90 Repeat Password: :
91 Warning: The length of the password must be greater than 3 characters
92 Press [Enter] to continue:
93 ----------------------------------------------------------------------------
94 Admin Password
95 Please give a password to use for the Alfresco administrator account.
96 Admin Password: :
97 Repeat Password: :
98 ----------------------------------------------------------------------------
99 Alfresco SharePoint Port
100 Please choose a port number for the SharePoint protocol.
101 Port: [7070]:
102 ----------------------------------------------------------------------------
103 Install as a service
104 You can optionally register Alfresco Community as a service. This way it will
105 automatically be started every time the machine is started.
106 Install Alfresco Community as a service? [Y/n]:
107
108 ----------------------------------------------------------------------------
109 Service script name
110 The alfresco service script file exists. Please insert a different name for the
111 service script.
112 Service script name [alfresco]:
113 Warning: The service script file exists. Please insert a different name for the
114 service script.
115 Press [Enter] to continue:
116 ----------------------------------------------------------------------------
117 Service script name
118 The alfresco service script file exists. Please insert a different name for the
119 service script.
120 Service script name [alfresco]: alfresco50d
121 ----------------------------------------------------------------------------
122 LibreOffice Server Port
123 Please enter the port that the Libreoffice Server will listen to by default.
124 LibreOffice Server Port [8100]:
125 ----------------------------------------------------------------------------
126 Warning!
127 This environment is not configured optimally for Alfresco - please carefully
128 review this list before continuing.
129 While these issues will not prevent Alfresco from functioning, some product
130 features may be unavailable, or the system may not perform optimally.
131 Insufficient system RAM (4.0GB+): 3.86GB
132 Press [Enter] to continue:
133 ----------------------------------------------------------------------------
134 Setup is now ready to begin installing Alfresco Community on your computer.
135 Do you want to continue? [Y/n]:
136 ----------------------------------------------------------------------------
137 Please wait while Setup installs Alfresco Community on your computer.
138 Installing
139 0% ______________ 50% ______________ 100%
140 #########################################
141 ----------------------------------------------------------------------------
142 Setup has finished installing Alfresco Community on your computer.
143 View Readme File [Y/n]: n
144 Launch Alfresco Community Share [Y/n]: n
145 root@afserver:~#
146 {{/code}}
147
148 Copy needed files from 5.0.0 to 5.0.d
149
150
151 {{code}}
152  root@afserver:~# cp /opt/alfresco/tomcat/shared/classes/alfresco-global.properties /opt/alfresco-5.0.d/tomcat/shared/classes/alfresco-global.properties
153 {{/code}}
154
155 {{info}}Replace paths in alfresco-global.properties from the old (5.0.0) to the new (5.0.d){{/info}}
156
157 Copy MySQL Driver
158
159
160 {{code}}
161  root@afserver:~# cp /opt/alfresco/tomcat/lib/mysql-connector-java-*.jar /opt/alfresco-5.0.d/tomcat/lib/
162 {{/code}}
163
164 {{error}}Be sure to remove the startup of the old version (like /etc/init.d/alfresco) to avoid 2 versions being started{{/error}}
165
166 Start Alfresco
167
168
169 {{code}}
170 root@afserver:~# /etc/init.d/alfresco50d start
171 {{/code}}
172
173
174
175 After start, it still show version 5.0.0 in the GUI, - although its running from the 5.0.d folder:
176
177
178 {{code}}
179 root@afserver:/opt/alfresco-5.0.d/tomcat/shared/classes# ps -ef | grep java
180 root 18932 1 99 15:20 pts/1 00:03:29 /data/opt/alfresco-5.0.d/java/bin/java -Djava.util.logging.config.file=/data/opt/alfresco-5.0.d/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms512M -Xmx2048M -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Djava.awt.headless=true -Dalfresco.home=/data/opt/alfresco-5.0.d -Dcom.sun.management.jmxremote -XX:ReservedCodeCacheSize=128m -Djava.endorsed.dirs=/data/opt/alfresco-5.0.d/tomcat/endorsed -classpath /data/opt/alfresco-5.0.d/tomcat/bin/bootstrap.jar:/data/opt/alfresco-5.0.d/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/data/opt/alfresco-5.0.d/tomcat -Dcatalina.home=/data/opt/alfresco-5.0.d/tomcat -Djava.io.tmpdir=/data/opt/alfresco-5.0.d/tomcat/temp org.apache.catalina.startup.Bootstrap start
181 {{/code}}
182
183 {{success}}Reported at: [[https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/installation-upgrades/version-50d-showing-500#comment-160428]]
184
185 Qoute:
186
187 "
188
189 Hello,
190
191 all Alfresco Community versions always show just as major.minor.0 - so the 5.0 always shows as 5.0.0. Maybe this changes with the slightly altered versioning scheme in 5.1, but has been this way for years. The schema version can change in every version due to changes to the DB schema.
192 So far, I can see nothing unexpected / problematic here...
193
194 Regards
195 Axel"
196
197
198
199 The 5.0.d should be visible in the alfresco.log when the server starts up. It also can be retrieved via the server descriptor on the Repository tier and is also visible on the Repository start page. It simply is just not displayed in the Share UI.{{/success}}