Alfresco 5.2 Step-By-Step Installation Guide
Alfresco 5.2 Step-By-Step Installation Guide
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
Table of contents
1 Installation Topologies...................................................................................5
1.1 Trial............................................................................................................. 5
1.2 Departmental...............................................................................................6
1.3 Standard cluster..........................................................................................6
1.4 Enterprise cluster........................................................................................7
3 Prerequisites................................................................................................. 10
3.1 Validate architecture.................................................................................10
3.2 Separate JDK............................................................................................10
3.3 Setup environment variables.....................................................................11
3.4 Fix missing libraries...................................................................................11
3.4.1 LibreOffice libraries...........................................................................11
3.4.2 Solr6 libraries....................................................................................11
3.4.3 Other libraries...................................................................................11
3.5 Fix rights for mounted drives.....................................................................12
1.0
Enterprise Content Management Confidential
2018-03-02
9 Clustering...................................................................................................... 34
9.1 Alfresco clustering.....................................................................................34
9.2 Share clustering........................................................................................34
13 Know issues................................................................................................38
13.1 AOS - Issue with protected view (Office 2016 for Windows)...................38
14 Additional Information................................................................................39
14.1 Installers..................................................................................................39
14.2 Environment HOME................................................................................39
14.3 Alfresco service code..............................................................................39
14.4 Solr service code.....................................................................................40
15 Change History............................................................................................42
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
Copyright notice
You may not reproduce the content of this document or any portion thereof
outside your organization without prior written consent from Tieto. All rights
related to this service description and service shall belong to Tieto or a third
party. This document and the content thereof as well as the characteristics of
the service are under continuous development. Tieto may, in its sole discretion,
make changes and/or amendments to them. Any material changes shall be
subject to discussions with the Customer in accordance with an applicable
agreement.
This installation guide describes major steps on setting up
Konecranes archiving system which is based on Alfresco Digital
Business Platform version 5.2. The guide covers all environments
including DEV, QA and PRO.
1 Installation Topologies
1.1 Trial
1.0
Enterprise Content Management Confidential
2018-03-02
1.2 Departmental
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
2.1 Flowchart
1.0
Enterprise Content Management Confidential
2018-03-02
You can pass an option file called “install_opts” to the installer using
a command, for example:
For Unix:
sudo ./alfresco-content-services-installer-5.2.2-
linux-x64.bin --optionfile install_opts
1.0
Enterprise Content Management Confidential
2018-03-02
3 Prerequisites
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
Yum not working due to missing DNS server. I had to update following
file with correct DNS server.
/etc/resolv.conf
mkdir /opt/alfresco
mkdir /opt/solr
mkdir /opt/java
If you install Alfresco to default RHEL 7.4, you will receive an error
“Some or all of the libraries needed to support
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
Before executing the comment, please check if there are any folders
under /data which should be skipped. If not, you can continue using
below commands:
# cd /data/
# chmod -R 770 ./*
# chown -R <User>:<User> ./*
# cd /solr/
# chmod -R 770 ./*
# chown -R <User>:<User> ./*
1.0
Enterprise Content Management Confidential
2018-03-02
Download alfresco-content-services-installer-5.2.2-linux-x64.bin
from Alfresco portal or from installable described in chapter 12. Run
following installation steps as alfresco user.
b) Language selection:
c) License terms:
1.0
Enterprise Content Management Confidential
2018-03-02
d) Installation type:
Advanced [2]
e) Select components:
Java [Y/n] :y
PostgreSQL [Y/n] :n (we use separate DB)
LibreOffice [Y/n] :y
Alfresco One : Y (Cannot be edited)
Solr1 [y/N] : n
Solr4 [Y/n] :n (we install Solr6 separately)
Alfresco Office Services [Y/n] :y
Web Quick Start [y/N] : n
Google Docs Integration [Y/n] :n
Is the selection above correct? [Y/n]: y
f) Installation folder:
1.0
Enterprise Content Management Confidential
2018-03-02
g) Database Configuration
1.0
Enterprise Content Management Confidential
2018-03-02
m) Admin Password:
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
Start Solr6 for the first time in order to create alfresco and archive
cores.
After that, you can start Solr without specifying core creation
parameter.
Start Solr:
$ ./solr/bin/solr start
Stop Solr:
$ ./solr/bin/solr stop
<SOLR_HOME>/solrhome/alfresco/conf/solrcore.properties
1.0
Enterprise Content Management Confidential
2018-03-02
alfresco.host=10.102.7x.xx
alfresco.port=8080
alfresco.secureComms=none
<SOLR_HOME>/solrhome/archive/conf/solrcore.properties
alfresco.host=10.102.7x.xx
alfresco.port=8080
alfresco.secureComms=none
Create symlinks for Alfresco and archive Solr cores (Solr should be
stopped):
$ cd /opt/solr/alfresco-search-services/solrhome
$ mv alfresco/ /solr/index/
$ ln -s /solr/index/alfresco alfresco
$ mv archive/ /solr/index/
$ ln -s /solr/index/archive archive
Solr6 part:
index.subsystem.name=solr6
solr.host=10.102.7x.xx # Same as localhost
solr.port=8983
solr.secureComms=none # Let’s use non-SSL connection
solr.base.url=/solr
Solr6 backup:
solr.backup.alfresco.cronExpression=0 0 2 * * ?
1.0
Enterprise Content Management Confidential
2018-03-02
solr.backup.alfresco.remoteBackupLocation=/solr/backup/
alfresco
solr.backup.alfresco.numberToKeep=3
solr.backup.archive.cronExpression=0 0 4 * * ?
solr.backup.archive.remoteBackupLocation=/solr/backup/archive
solr.backup.archive.numberToKeep=3
Contentstore part:
dir.contentstore=/data/contentstore
dir.contentstore.deleted=/data/contentstore-deleted
Other part:
smart.folders.enabled=true
$ cd /opt/alfresco
$ ln -s alfresco-5_2_2/ current
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
Once httpd is installed, you can create a new virtual host for
alfresco.
<VirtualHost *:80>
ServerName <ServerName>.konecranes.com
RedirectMatch permanent ^/$
http://<ServerName>.konecranes.com/share/
ProxyPreserveHost On
RewriteEngine On
The code snippet above is used for Dev environment, adjust values
based on your environment.
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
QA alfecmqa fikc-alfindq01
fikc-alfindq02
PRO alfecmprod fikc-alfind01
fikc-alfind02
In order to display correct AOS link, you need to add following lines
to alfresco-global.properties:
<referer>https://<LB_URL>/.*</referer>
<origin>https://<LB_URL></origin>
1.0
Enterprise Content Management Confidential
2018-03-02
<referer>https://<LB_URL>/.*</referer>
<origin>https://<LB_URL></origin>
1.0
Enterprise Content Management Confidential
2018-03-02
Artefacts:
javascript-console-repo-0.7-SNAPSHOT.amp
javascript-console-share-0.7-SNAPSHOT.amp
Artefacts:
mdbc-1.0.amp
share-mdbc-component-0.1.jar
7.3 Connexas
1.0
Enterprise Content Management Confidential
2018-03-02
Artefacts:
connexas-3.1.3.amp
connexas-share-3.1.3.amp
Artefacts:
alfresco-documenttransformationserver-repo-2.1.0.amp
alfresco-documenttransformationserver-share-2.1.0.amp
alfresco-documenttransformationserver-server.msi
o Installation file for transformation server
1.0
Enterprise Content Management Confidential
2018-03-02
You can follow the previous point only the script is different. Script is
available in 14.4
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
9 Clustering
# Alfresco cluster
alfresco.cluster.enabled=true
9.3
1.0
Enterprise Content Management Confidential
2018-03-02
10.1 Configuration
Alfresco content stores are defined using following properties in
alfresco-global.properties:
dir.contentstore=/data/contentstore
dir.contentstore.deleted=/data/contentstore-deleted
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
1.0
Enterprise Content Management Confidential
2018-03-02
13 Know issues
13.1 AOS - Issue with protected view (Office 2016 for Windows)
1.0
Enterprise Content Management Confidential
2018-03-02
14 Additional Information
14.1 Installers
#!/bin/sh
# chkconfig: 2345 80 30
# description: Alfresco Enterprise
#
RETVAL=0
start () {
su - $RUNAS -c "cd "$ALFDIR" ; "$ALFDIR"/alfresco.sh start $2"
RETVAL=$?
if [ -d "/var/lock/subsys" ] && [ `id -u` = 0 ] && [ $RETVAL -eq 0 ] ;
then
touch /var/lock/subsys/alfresco
fi
stop () {
su - $RUNAS -c "cd "$ALFDIR" ; "$ALFDIR"/alfresco.sh stop $2"
RETVAL=$?
}
1.0
Enterprise Content Management Confidential
2018-03-02
case "$1" in
start)
start "$@"
;;
stop)
stop "$@"
;;
restart)
stop "$@"
start "$@"
;;
*)
su - $RUNAS -c "cd "$ALFDIR" ; "$ALFDIR"/alfresco.sh $@"
RETVAL=$?
esac
exit $RETVAL
#!/bin/sh
# chkconfig: 2345 80 30
# description: Alfresco Enterprise#
#
RETVAL=0
start () {
su - $RUNAS -c "cd "$SOLRDIR" ; "$SOLRDIR"/solr/bin/solr start
$2"
RETVAL=$?
if [ -d "/var/lock/subsys" ] && [ `id -u` = 0 ] && [ $RETVAL -eq 0 ] ;
then
touch /var/lock/subsys/solr
fi
stop () {
su - $RUNAS -c "cd "$SOLRDIR" ; "$SOLRDIR"/solr/bin/solr stop
$2"
1.0
Enterprise Content Management Confidential
2018-03-02
RETVAL=$?
}
case "$1" in
start)
start "$@"
;;
stop)
stop "$@"
;;
restart)
stop "$@"
start "$@"
;;
*)
su - $RUNAS -c "cd "$SOLRDIR" ; "$SOLRDIR"/solr/bin/solr
$@"
RETVAL=$?
esac
exit $RETVAL
###########################################
###########################################
# connexas Settings
pernexas.configuration.jmx.user=${settings.jmxrmi.user}
pernexas.configuration.jmx.password=${settings.jmxrmi.password}
pernexas.configuration.jmx.serviceURL=service:jmx:rmi://ignored/
jndi/rmi://XX.XX.XX.XX:50500/alfresco/jmxrmi
#pernexas.sap.system.1.al.archiveIds=A0
1.0
Enterprise Content Management Confidential
2018-03-02
pernexas.sap.system.1.al.documentRoot=app:company_home/
cm:SAP
pernexas.sap.system.1.al.checkSignature=true
pernexas.sap.system.1.al.checkExpiration=true
pernexas.sap.system.1.al.alfrescoUser=$
{settings.connexas.username}
pernexas.sap.system.1.al.alfrescoPassword=$
{settings.connexas.password}
pernexas.sap.system.1.enabled=false
#pernexas.sap.system.1.name=XXX
#pernexas.sap.system.1.host=XXX
#pernexas.sap.system.1.client=XXX
#pernexas.sap.system.1.systemNumber=XXX
pernexas.sap.system.1.user=${settings.sap.client.username}
pernexas.sap.system.1.password=${settings.sap.client.password}
pernexas.sap.system.1.language=EN
pernexas.sap.system.1.webClient.enabled=false
pernexas.sap.system.1.jobs.replicateSap.enabled=false
pernexas.sap.system.1.jobs.replicateSap.cronExpression=0 0/5 *
1/1 * ? *
pernexas.sap.system.1.jobs.connexasPlus.enabled=false
1.0
Enterprise Content Management Confidential
2018-03-02
pernexas.sap.system.1.jobs.connexasPlus.cronExpression=0 0/5 *
1/1 * ? *
pernexas.sap.system.1.jobs.barcode.enabled=false
1.0
Enterprise Content Management Confidential
2018-03-02
15 Change History