Installing Alfresco components one by one. Angel Borroy

Similar documents
Installing HDF Services on an Existing HDP Cluster

T.A.D / ABS - Installation

Installing an HDF cluster

VIRTUAL GPU LICENSE SERVER VERSION , , AND 5.1.0

ARCHER Data Services Service Layer

Linux Essentials Objectives Topics:

Android SDK under Linux

X-road MISP2 installation and configuration guide. Version 1.20

Kewill Customs Installations Guide

Hortonworks DataFlow

Kewill Customs Installations Guide

Administrating TeamForge 6.1 on CentOS

Apparo Fast Edit. Installation Guide 3.1

Open a browser and download the Apache Tomcat 7 and Oracle JDBC 6 JAR from these locations. The Oracle site may require that you register as a user.

VIRTUAL GPU LICENSE SERVER VERSION AND 5.1.0

Installing Datameer with MapR on an Edge Node

Hortonworks DataFlow

Bitnami JFrog Artifactory for Huawei Enterprise Cloud

To configure the patching repository so that it can copy patches to alternate locations, use SFTP, SCP, FTP, NFS, or a premounted file system.

PKI Cert Creation via Good Control: Reference Implementation

This tutorial will guide you how to setup and run your own minecraft server on a Linux CentOS 6 in no time.

Quick Installation Guide for Layman: DSpace 4.x on Linux (CentOS 6.x)

Install latest version of Roundcube (Webmail) on CentOS 7

Hortonworks DataFlow

Installing Shibbolized Tiqr

OpenL Tablets OpenL Tablets BRMS

Live Data Connection to SAP Universes

Administrating TeamForge on Red Hat

RM4GS Install Guide. version 1.0. September All Rights Reserved, Copyright (C) 2004, FUJITSU LIMITED, Hitachi, Ltd. and NEC Corporation

FGCP PHP+PostgreSQL Web Platform Template

VMware AirWatch Content Gateway for Linux. VMware Workspace ONE UEM 1811 Unified Access Gateway

Setup of HELIO Components Definition of Required Capabilities V0.8

Database Configuration

a. puppet should point to master (i.e., append puppet to line with master in it. Use a text editor like Vim.

Molecular Forecaster Inc. Forecaster 1.2 Server Installation Guide

Learning the Wonders. An introduction to creating great web-applications with Project Wonder. Deployment. Markus Ruggiero. 2013, Markus Ruggiero

X-road MISP2 installation and configuration guide. Version 2.6

Cloudera Manager Installation Guide

Polarion 17.3 Linux Installation

Web Collaborative Reviewer Installation Guide

Step 1 - Install Apache and PostgreSQL

vrealize Hyperic Installation and Configuration Guide

MISP2 installation and configuration guide. Version 2.12

VIRTUAL GPU LICENSE SERVER VERSION

HP IT Operations Compliance Community Edition

Hortonworks DataFlow

Stop all processes and then reboot - same as above startx. Log in as superuser from current login exit

Installation of Apache OpenMeetings on Centos 7. This tutorial is made based on fresh installations of. CentOS-7-x86_64-Minimal-1708.

NVIDIA Licensing Information

Apache Tomcat Installation Guide [ Application : IVMS Base, Rich and Core Version ] [ Platform : 64 Bit Linux ] Tomcat Version: 6.0.

Bitnami Re:dash for Huawei Enterprise Cloud

Hortonworks DataFlow

Origins Release. Platform Installation Guide

Oracle WebLogic Server (WLS) 11gR1 ( and ) Installation on Oracle Linux 5 and 6

Ubuntu LTS Install Guide

Galigeo for Cognos Analytics Installation Guide - G experience

Updating Hosted Customer Instances on the OnPoint Production Server By Peter Westphal

Identity Connect Release Notes,,,

Informatics for Integrating Biology and the Bedside Clinical Research Chart Cell Installation Guide (Linux)

Aware IM Version 8.1 Installation Guide

Red Hat CloudForms 4.6

Escenic Content Engine Installation Guide

Genesys Administrator Extension Migration Guide. Prerequisites

Many packages require the additional devel packages. See below package. Install EPEL repo by down load the latest RPM for CentOS 6.

Oracle Endeca Information Discovery Integrator

Teradici PCoIP Connection Manager 1.8 and Security Gateway 1.14

mod_ssl.x86_64 1: el6.centos Complete! Start the Webserver service httpd start Starting httpd: [ OK ]

Getting your department account

Oracle Tuxedo System and Application Monitor (TSAM)

Pulmonary Function Test Processing

GMU Specifications And Installation Procedures Page 1 04/04/08. JBM Gateway Management Utility Server Specifications And Installation Procedures

Spacewalk. Installation Guide for CentOS 6.4

RTC 502 and its Git adapter, Git and its prerequisite

Import Data Connection to an SAP ERP System

Signavio Workflow Accelerator Administrator Guide

Docker und IBM Digital Experience in Docker Container

VCP-DCV5, OCP (DBA), MCSA, SUSE CLA, RHCSA-7]

Installation of Apache OpenMeetings on Centos 7. This tutorial is made based on fresh installations of. CentOS-7-x86_64-Minimal-1708.

Perceptive DataTransfer

Upgrade Instructions. NetBrain Integrated Edition 7.1. Two-Server Deployment

Zenoss Analytics Installation and Administration Guide

ULTEO OPEN VIRTUAL DESKTOP CENTOS 6.0 SUPPORT

Setting Up Enterprise Help IBM Corporation

CHAPTER III PLANNING

Zenoss Analytics Installation and Administration Guide

If you had a freshly generated image from an LCI instructor, make sure to set the hostnames again:

Create Import Data Connection to SAP BPC MS

IKAN ALM Installation Guide

Teradata Studio and Studio Express

Red Hat JBoss Web Server 3

Thinking Machines Working on LINUX Configuring Networking & RDBMS

VMware AirWatch Content Gateway Guide for Linux For Linux

Cloud Computing II. Exercises

FUSION REGISTRY COMMUNITY EDITION SETUP GUIDE VERSION 9. Setup Guide. This guide explains how to install and configure the Fusion Registry.

ULTEO OPEN VIRTUAL DESKTOP OPENSUSE 11.3 SUPPORT

ECP. Installation Guide V4.2.0

RG-MACC-BASE_v2.01. Installation Guide

QMetry 7 Installation Guide - Linux Platform

Two factor authentication for Apache using mod_auth_radius

Escenic Content Engine Installation Guide

Transcription:

Installing Alfresco components one by one Angel Borroy developer@keensoft

Alfresco components (201702) https://community.alfresco.com/docs/doc-6641-alfresco-community-edition-file-list-201702

Alfresco Community Distribution Alfresco SDK 3.0.0 Tomcat resources Extension path

Alfresco Search Services (aka SOLR 6) SOLR 6 software SOLR 6 Alfresco cores definition

Anything else? Apache HTTPd Apache Tomcat

Interactions HTTP 80 6 HTTP AJP 7009 Share 4 Alfresco AJP 8009 2 TCP 8100 TCP 2049 LibreOffice Filesystem 5 3 SOLR 6 HTTP 8983 TCP 5432 PostgreSQL 1

Resources - Server map 12 GB HTTP 0,5 GB Share 2 GB Alfresco 3 GB SOLR 3 GB LibreOffice 1 GB PostgreSQL 2 GB OS 0,5 GB ecm.local share.local alfresco.local solr.local libreoffice.local postgresql.local 6 servers

Installing 30 minutes count down

https://www.dropbox.com/s/mm43kmzg4jtrueb/alfresco-centos.ova?dl=0 root / keensoft Base OS image $ cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) $ yum list installed ImageMagick.x86_64 apr.x86_64 cairo.x86_64 cups-libs.x86_64 fontconfig.x86_64 ghostscript.x86_64 httpd.x86_64 postgresql94.x86_64 6.7.8.9-15.el7_2 1.4.8-3.el7 1.14.2-1.el7 1:1.6.3-22.el7 2.10.95-7.el7 9.07-18.el7 2.4.6-40.el7.centos.4 9.4.9-1PGDG.rhel7

Downloaded software # ls -lh -rw-r--r--. 1 root root 315M alfresco-community-distribution-201702.zip -rw-r--r--. 1 root root 127M alfresco-search-services-1.0.0.zip -rw-r--r--. 1 root root 8,6M apache-tomcat-7.0.59.tar.gz -rw-r--r--. 1 root root 173M jdk-8u101-linux-x64.tar.gz -rw-r--r--. 1 root root 263M LibreOffice_5.3.2_Linux_x86-64_rpm.tar.gz

Faking server names $ vi /etc/hosts 127.0.0.1 ecm.local 127.0.0.1 alfresco.local 127.0.0.1 share.local 127.0.0.1 solr.local 127.0.0.1 libreoffice.local 127.0.0.1 postgresql.local

Install Oracle JDK $ cd /opt $ tar xvf /root/jdk-8u101-linux-x64.tar.gz $ alternatives --install /usr/bin/java java /opt/jdk1.8.0_101/bin/java 2 $ java -version java version "1.8.0_101 Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

1. Install PostgreSQL PostgreSQL $ /usr/pgsql-9.4/bin/postgresql94-setup initdb $ systemctl enable postgresql-9.4 $ systemctl start postgresql-9.4 $ su - postgres $ psql CREATE DATABASE alfresco WITH OWNER = postgres ENCODING = 'UTF8' TABLESPACE = pg_default TEMPLATE template0;

1. Install PostgreSQL PostgreSQL CREATE ROLE alfresco LOGIN PASSWORD 'alfresco' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE; GRANT ALL ON DATABASE alfresco TO public; GRANT ALL ON DATABASE alfresco TO postgres; GRANT ALL ON DATABASE alfresco TO alfresco; \q

1. Install PostgreSQL PostgreSQL $ vi /var/lib/pgsql/9.4/data/pg_hba.conf host all all 127.0.0.1/32 trust host all all ::1/128 trust $ vi /var/lib/pgsql/9.4/data/postgresql.conf maintenance_work_mem = 192MB checkpoint_completion_target = 0.7 effective_cache_size = 2048MB work_mem = 22MB wal_buffers = 4MB checkpoint_segments = 8 shared_buffers = 768MB

1. Install PostgreSQL PostgreSQL $ exit $ systemctl restart postgresql-9.4 $ cat /etc/hosts 127.0.0.1 postgresql.local

2. Install Alfresco webapp Apache Tomcat $ mkdir /opt/alfresco $ cd /opt/alfresco $ tar xvf /root/apache-tomcat-7.0.59.tar.gz $ mv apache-tomcat-7.0.59 tomcat $ cd tomcat/bin/ $ tar xzvf tomcat-native.tar.gz $ cd tomcat-native-1.1.32-src/jni/native/ $./configure --with-apr=/usr/bin/apr-1-config \ --with-java-home=/opt/jdk1.8.0_101 $ make; make install Libraries have been installed in: /usr/local/apr/lib

2. Install Alfresco webapp Apache Tomcat $ vi /opt/alfresco/tomcat/bin/setenv.sh # Load Tomcat Native Library LD_LIBRARY_PATH="/usr/local/apr/lib:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH $ /opt/alfresco/tomcat/bin/catalina.sh start $ tail -f -n 100 /opt/alfresco/tomcat/logs/catalina.out INFO: Loaded APR based Apache Tomcat Native library 1.1.32 using APR version 1.4.8. $ /opt/alfresco/tomcat/bin/catalina.sh stop

2. Install Alfresco webapp Alfresco $ unzip alfresco-community-distribution-201702.zip $ cd alfresco-community-distribution-201702 $ mkdir /opt/alfresco/alf_data $ cp -r amps /opt/alfresco $ mkdir /opt/alfresco/bin $ cp bin/alfresco-mmt.jar /opt/alfresco/bin $ cp bin/apply_amps.sh /opt/alfresco/bin $ cp bin/clean_tomcat.sh /opt/alfresco/bin $ mkdir -p /opt/alfresco/modules/platform

2. Install Alfresco webapp Alfresco $ cd web-server $ cp -r * /opt/alfresco/tomcat $ rm -rf /opt/alfresco/tomcat/webapps/share.war $ rm -rf /opt/alfresco/tomcat/webapps/solr4.war $ rm -rf /opt/alfresco/tomcat/conf/catalina/localhost/share.xml $ rm -rf /opt/alfresco/tomcat/shared/classes/alfresco/web-extension $ mkdir /opt/alfresco/tomcat/shared/lib $ vi /opt/alfresco/tomcat/conf/catalina.properties shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*. jar

2. Install Alfresco webapp Apache Tomcat $ chmod +x /opt/alfresco/tomcat/bin/setenv.sh $ vi /opt/alfresco/tomcat/bin/setenv.sh JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/opt/alfresco" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote" JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m" JAVA_OPTS="$JAVA_OPTS -Xms512M -Xmx3072M" export JAVA_OPTS

2. Install Alfresco webapp Alfresco $ vi /opt/alfresco/tomcat/shared/classes/alfresco-global.properties dir.root=/opt/alfresco/alf_data db.driver=org.postgresql.driver db.username=alfresco db.password=alfresco db.url=jdbc:postgresql://postgresql.local:5432/alfresco

2. Install Alfresco webapp Alfresco $ vi /opt/alfresco/tomcat/shared/classes/alfresco-global.properties alfresco.context=alfresco alfresco.host=alfresco.local alfresco.port=8080 alfresco.protocol=http cifs.enabled=false ftp.enabled=false imap.server.enabled=false alfresco.rmi.services.host=0.0.0.0 monitor.rmi.service.port=0 index.subsystem.name=noindex

2. Install Alfresco webapp Alfresco $ cat /etc/hosts 127.0.0.1 alfresco.local $ ls /opt/alfresco/amps alfresco-share-services.amp $ chmod +x /opt/alfresco/bin/apply_amps.sh $ /opt/alfresco/bin/apply_amps.sh 03210000 Invalid directory '/opt/alfresco/amps_share'

2. Install Alfresco webapp Alfresco $ /opt/alfresco/tomcat/bin/catalina.sh start $ tail -f /opt/alfresco/tomcat/logs/catalina.out abr 21, 2017 4:42:46 PM org.apache.coyote.abstractprotocol start INFO: Starting ProtocolHandler ["http-apr-8080"] abr 21, 2017 4:42:46 PM org.apache.coyote.abstractprotocol start INFO: Starting ProtocolHandler ["ajp-apr-8009"] abr 21, 2017 4:42:46 PM org.apache.catalina.startup.catalina start INFO: Server startup in 104755 ms

3. Install SOLR 6 webapp SOLR 6 $ mkdir /opt/solr6 $ cd /opt/solr6 $ unzip /root/alfresco-search-services-1.0.0.zip $ cd alfresco-search-services $ mv *.. $ cd.. $ rm -rf alfresco-search-services/ $ vi /opt/solr6/solrhome/templates/rerank/conf/solrcore.properties alfresco.host=alfresco.local

3. Install SOLR 6 webapp SOLR 6 $ /opt/solr6/solr/bin/solr start -force -m 3G \ -a -Dcreate.alfresco.defaults=alfresco,archive Started Solr server on port 8983 (pid=2498). Happy searching! $ tail -f /opt/solr6/logs/solr.log 2017-04-21 17:01:47.272 INFO (main) [ ] o.e.j.s.serverconnector Started ServerConnector@624ea235{HTTP/1.1,[http/1.1]}{0.0.0.0:8983} 2017-04-21 17:01:47.272 INFO (main) [ ] o.e.j.s.server Started @7126ms

3. Install SOLR 6 webapp Alfresco $ cat /etc/hosts 127.0.0.1 solr.local $ vi /opt/alfresco/tomcat/shared/classes/alfresco-global.properties index.subsystem.name=solr6 solr.host=solr.local solr.port=8983 solr.port.ssl=8984 solr.securecomms=none $ /opt/alfresco/tomcat/bin/catalina.sh stop $ /opt/alfresco/tomcat/bin/catalina.sh start

4. Install Share webapp Apache Tomcat $ mkdir /opt/share $ cd /opt/share $ tar xvf /root/apache-tomcat-7.0.59.tar.gz $ mv apache-tomcat-7.0.59 tomcat $ vi /opt/share/tomcat/bin/setenv.sh # Load Tomcat Native Library LD_LIBRARY_PATH="/usr/local/apr/lib:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH

4. Install Share webapp Apache Tomcat $ vi /opt/share/tomcat/conf/server.xml <Server port="7005" shutdown="shutdown"> <Connector port="7080" protocol="http/1.1" connectiontimeout="20000" redirectport="7443" /> <Connector port="7009" URIEncoding="UTF-8" protocol="ajp/1.3" redirectport="7443" /> </Server>

4. Install Share webapp Share $ cd /root/alfresco-community-distribution-201702 $ mkdir /opt/share/amps_share $ mkdir /opt/share/bin $ cp bin/alfresco-mmt.jar /opt/share/bin $ cp bin/apply_amps.sh /opt/share/bin $ cp bin/clean_tomcat.sh /opt/share/bin $ mkdir -p /opt/share/modules/share

4. Install Share webapp Share $ cd web-server $ cp -r * /opt/share/tomcat $ rm -rf /opt/share/tomcat/webapps/alfresco.war $ rm -rf /opt/share/tomcat/webapps/solr4.war $ rm -rf /opt/share/tomcat/conf/catalina/localhost/alfresco.xml $ rm -rf /opt/share/tomcat/shared/classes/alfresco/extension $ mkdir /opt/share/tomcat/shared/lib $ vi /opt/share/tomcat/conf/catalina.properties shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*. jar

4. Install Share webapp Share $ vi /opt/share/tomcat/shared/classes/alfresco/web-extension/share-configcustom.xml <config evaluator="string-compare" condition="remote"> <endpoint-url>http://alfresco.local:8080/alfresco/s</endpoint-url> [x4] </config> $ cat /etc/hosts 127.0.0.1 share.local

4. Install Share webapp Apache Tomcat $ touch /opt/share/tomcat/bin/setenv.sh $ chmod +x /opt/share/tomcat/bin/setenv.sh $ vi /opt/share/tomcat/bin/setenv.sh LD_LIBRARY_PATH="/usr/local/apr/lib:$LD_LIBRARY_PATH" export LD_LIBRARY_PATH JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m" JAVA_OPTS="$JAVA_OPTS -Xms512M -Xmx2048M" export JAVA_OPTS

4. Install Share webapp Alfresco $ vi /opt/alfresco/tomcat/shared/classes/alfresco-global.properties share.context=share share.host=share.local share.port=7080 share.protocol=http img.root=/usr/share/doc/imagemagick img.exe=/usr/bin/convert img.config=${img.root} img.coders=/usr/lib64/imagemagick-6.7.8/modules-q16/coders img.dyn=/usr/local/lib img.gslib=/usr/local/lib $ /opt/alfresco/tomcat/bin/catalina.sh stop $ /opt/alfresco/tomcat/bin/catalina.sh start

4. Install Share webapp Share $ /opt/share/tomcat/bin/catalina.sh start $ tail -f /opt/share/tomcat/logs/catalina.out INFO: Starting ProtocolHandler ["http-apr-7080"] abr 21, 2017 7:37:02 PM org.apache.coyote.abstractprotocol start INFO: Starting ProtocolHandler ["ajp-apr-7009"] abr 21, 2017 7:37:03 PM org.apache.catalina.startup.catalina start INFO: Server startup in 38529 ms

5. Install LibreOffice service LibreOffice $ cd $ tar zxf LibreOffice_5.3.2_Linux_x86-64_rpm.tar.gz $ yum install -y LibreOffice_5.3.2.2_Linux_x86-64_rpm/RPMS/*.rpm $ vi /opt/libreoffice.sh /opt/libreoffice5.3/program/soffice.bin "-- accept=socket,host=localhost,port=8100;urp;staroffice.servicemanager" "- env:userinstallation=file:///opt/alfresco/alf_data/oouser" --nologo -- headless --nofirststartwizard --norestore --nodefault & $ chmod +x /opt/libreoffice.sh $ /opt/libreoffice.sh

5. Install LibreOffice service Alfresco $ cat /etc/hosts 127.0.0.1 libreoffice.local $ vi /opt/alfresco/tomcat/shared/classes/alfresco-global.properties ooo.enabled=true ooo.port=8100 ooo.host=libreoffice.local $ /opt/alfresco/tomcat/bin/catalina.sh stop $ /opt/alfresco/tomcat/bin/catalina.sh start

6. Install Apache HTTPd HTTP $ cat /etc/httpd/conf.d/alfresco.conf <VirtualHost *:80> ProxyRequests Off ProxyPass /alfresco ajp://alfresco.local:8009/alfresco ProxyPassReverse /alfresco ajp://alfresco.local:8009/alfresco ProxyPass "/share" "ajp://share.local:7009/share" ProxyPassReverse "/share" "ajp://share.local:7009/share" </VirtualHost>

6. Install Apache HTTPd HTTP $ /usr/sbin/setsebool -P httpd_can_network_connect 1 $ systemctl start httpd $ systemctl enable httpd $ cat /etc/hosts 127.0.0.1 ecm.local

6. Install Apache HTTPd Alfresco $ vi /opt/alfresco/tomcat/shared/classes/alfresco-global.properties alfresco.host=ecm.local alfresco.port=80 share.host=ecm.local share.port=80 $ /opt/alfresco/tomcat/bin/catalina.sh stop $ /opt/alfresco/tomcat/bin/catalina.sh start

Hands up!

Closing Testing & AOB

Testing Repository http://ecm.local/alfresco Share http://ecm.local/share Libreoffice Upload a ODT file SOLR Search for content (after uploading)

Enhancing our configuration Apache / NGINX http://beecon.buzz/talks/?id=20160125025 https://github.com/ecm4u/alfresco-reverse-proxy SSL using Apache HTTP & Let's Encrypt www.keensoft.es/en/configuring-alfresco-ssl-by-using-lets-encrypt/ PostgreSQL tuning http://beecon.buzz/2016/talks/?id=20160125019

Thanks! angel.borroy@keensoft.es