Wiki source code of Upgrade 5.0.d to 5.1

Version 3.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.d
8
9
10 {{code}}
11 root@afserver:~# /etc/init.d/alfresco50d stop
12 {{/code}}
13
14
15
16 Install 5.0.d:
17
18
19 {{code}}
20 root@afserver:~# ./alfresco-community-installer-201602-linux-x64.bin
21 Language Selection
22 Please select the installation language
23 [1] English - English
24 [2] French - Français
25 [3] Spanish - Español
26 [4] Italian - Italiano
27 [5] German - Deutsch
28 [6] Japanese - ???
29 [7] Dutch - Nederlands
30 [8] Russian - ???????
31 [9] Simplified Chinese - ????
32 [10] Norwegian - Norsk bokmål
33 [11] Brazilian Portuguese - Português Brasileiro
34 Please choose an option [1] :
35 ----------------------------------------------------------------------------
36 Welcome to the Alfresco Community Setup Wizard.
37 ----------------------------------------------------------------------------
38 Installation Type
39 [1] Easy - Install using the default configuration.
40 [2] Advanced - Configure server ports and service properties.: Choose optional components to install.
41 Please choose an option [1] : 2
42 ----------------------------------------------------------------------------
43 Select the components you want to install; clear the components you do not want
44 to install. Click Next when you are ready to continue.
45 Java [Y/n] :
46 PostgreSQL [Y/n] :n
47 LibreOffice [Y/n] :Y
48 Alfresco Community : Y (Cannot be edited)
49 Solr1 [y/N] :
50 Solr4 [Y/n] :
51 Alfresco Office Services [Y/n] :Y
52 Web Quick Start [y/N] :
53 Google Docs Integration [Y/n] :Y
54 Is the selection above correct? [Y/n]: Y
55 ----------------------------------------------------------------------------
56 Installation Folder
57 Choose a folder to install Alfresco Community.
58 Select a folder: [/data/opt/alfresco-community]: /opt/alfresco-5.1
59 ----------------------------------------------------------------------------
60 Database Configuration
61 JDBC URL: [jdbc:postgresql://localhost/alfresco]: jdbc:mysql://localhost/alfresco
62 JDBC Driver: [org.postgresql.Driver]: com.mysql.jdbc.Driver
63 Database name: [alfresco]:
64 Username: []: alfresco
65 Password: :
66 Verify: :
67 ----------------------------------------------------------------------------
68 Tomcat Port Configuration
69 Enter your Tomcat configuration parameters.
70 Web Server Domain: [127.0.0.1]:
71 Tomcat Server Port: [8080]:
72 Tomcat Shutdown Port: [8005]:
73 Tomcat SSL Port: [8443]:
74 Tomcat AJP Port: [8009]:
75 ----------------------------------------------------------------------------
76 LibreOffice Server Port
77 Enter the port that the LibreOffice Server will listen to.
78 LibreOffice Server Port: [8100]:
79 ----------------------------------------------------------------------------
80 Alfresco FTP Port
81 Choose a port number for the integrated Alfresco FTP server.
82 Port: [21]:
83 Warning: Couldn’t to bind to the given port number. Select another FTP Port.
84 Press [Enter] to continue:
85 ----------------------------------------------------------------------------
86 Alfresco FTP Port
87 Choose a port number for the integrated Alfresco FTP server.
88 Port: [21]: 22
89 Warning: Couldn’t to bind to the given port number. Select another FTP Port.
90 Press [Enter] to continue:999
91 ----------------------------------------------------------------------------
92 Alfresco FTP Port
93 Choose a port number for the integrated Alfresco FTP server.
94 Port: [22]: 999
95 ----------------------------------------------------------------------------
96 Admin Password
97 Specify a password for the Alfresco administrator account.
98 Admin Password: :
99 Repeat Password: :
100 ----------------------------------------------------------------------------
101 Install as a service
102 If you register Alfresco Community as a service it will automatically start
103 Alfresco Community on machine startup.
104 Install Alfresco Community as a service? [Y/n]: Y
105
106 ----------------------------------------------------------------------------
107 Setup is now ready to begin installing Alfresco Community on your computer.
108 Do you want to continue? [Y/n]:
109 ----------------------------------------------------------------------------
110 Please wait while Setup installs Alfresco Community on your computer.
111 Installing
112 0% ______________ 50% ______________ 100%
113 #########################################
114 ----------------------------------------------------------------------------
115 Setup has finished installing Alfresco Community on your computer.
116 View Readme File [Y/n]: n
117 Launch Alfresco Community [Y/n]: n
118 {{/code}}
119
120
121 {{code}}
122  root@afserver:~# cp /opt/alfresco-5.0.d/tomcat/shared/classes/alfresco-global.properties /opt/alfresco-5.1/tomcat/shared/classes/alfresco-global.properties
123 {{/code}}
124
125 {{info}}Replace paths in alfresco-global.properties from the old (5.0.d) to the new (5.1)
126
127 Link /opt/alfresco-5.1/alf_data to /data/alf_data{{/info}}
128
129 Copy MySQL Driver
130
131
132 {{code}}
133  root@afserver:~# cp /opt/alfresco-5.0.d/tomcat/lib/mysql-connector-java-*.jar /opt/alfresco-5.1/tomcat/lib/
134 {{/code}}
135
136 {{error}}Be sure to remove the startup of the old version (like /etc/init.d/alfresco50d) to avoid 2 versions being started{{/error}}
137
138 Start Alfresco (now the startup is just "alfresco")
139
140
141 {{code}}
142 root@afserver:~# /etc/init.d/alfresco start
143 {{/code}}
144
145
146
147 After start, it still show version 5.0.0 in the GUI, - although its running from the 5.0.d folder:
148
149
150 {{code}}
151 bnp@afserver:/opt/alfresco-5.0.d/tomcat$ ps -ef | grep java
152 root 17835 1 99 14:57 pts/4 00:03:00 /data/opt/alfresco-5.1/java/bin/java -Djava.util.logging.config.file=/data/opt/alfresco-5.1/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms512M -Xmx2480M -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Djava.awt.headless=true -Dalfresco.home=/data/opt/alfresco-5.1 -XX:ReservedCodeCacheSize=128m -Djava.endorsed.dirs=/data/opt/alfresco-5.1/tomcat/endorsed -classpath /data/opt/alfresco-5.1/tomcat/bin/bootstrap.jar:/data/opt/alfresco-5.1/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/data/opt/alfresco-5.1/tomcat -Dcatalina.home=/data/opt/alfresco-5.1/tomcat -Djava.io.tmpdir=/data/opt/alfresco-5.1/tomcat/temp org.apache.catalina.startup.Bootstrap start
153 bnp 18110 16643 0 14:58 pts/4 00:00:00 grep --color=auto java
154 {{/code}}
155
156
157
158 Seems the old issue regarding the version not showing is gone:
159
160 [[image:Screen Shot 2016-03-21 at 15.01.05.jpg||width="451"||height="250"||alt="Screen Shot 2016-03-21 at 15.01.05.jpg"]]