
This week has been released last 5.1 release for Alfresco CE, which is called 201605-GA. This release fixes some SOLR 4 integration problems and includes a patch to avoid possible hackings relatives to ImageTragick.
Below, a clean installation from scratch is described, as someone told me this morning there was no tutorials in the web for this task. However, at least, I know one for 5.0.
Anyway, following is an Alfresco 5.1.g installation without using installer, that is, from scratch.
Alfresco installing alternatives
There are many ways for installing Alfresco. Each of them are different, but there is no one better than the others. Just only is a matter of which one is the right one for you requirements.
- Alfresco installer: https://www.alfresco.com/products/community/download
- Alfresco components: https://wiki.alfresco.com/wiki/Community_file_list_201605-GA
- Third party distros (including customizations and modifications on original product)
- Amazon AWS
- Alfresco SPK (boxes, packer, vagrant, …)
Installing Alfresco 5.1.g step by step
This procedure requires some previous components installed on your server:
- CentOS 7 minimal
- Basic software for Alfresco: Oracle Java, Apache Tomcat, PostgreSQL, LibreOffice, ImageMagick, GhostScript
Creating Alfresco database user
$ sudo -u postgres psql postgres CREATE ROLE alfresco WITH PASSWORD 'alfresco' LOGIN; CREATE DATABASE alfresco WITH OWNER alfresco; ALTER USER alfresco WITH PASSWORD 'alfresco';
Downloading Alfresco software
$ mkdir /tmp/alfresco $ wget http://dl.alfresco.com/release/community/201605-build-00010/alfresco-community-distribution-201605.zip $ unzip alfresco-community-distribution-201605.zip -d /tmp/alfresco $ rm -f alfresco-community-distribution-201605.zip
Copying Alfresco software
$ cd /usr/local/alfresco $ ln -s /usr/local/tomcat /usr/local/alfresco/tomcat $ mkdir -p /usr/local/tomcat/conf/Catalina/localhost $ mv /tmp/alfresco/alfresco-community-distribution-201605/web-server/shared tomcat/ $ mv /tmp/alfresco/alfresco-community-distribution-201605/web-server/lib/postgresql-9.4-1201-jdbc41.jar tomcat/lib/ $ mv /tmp/alfresco/alfresco-community-distribution-201605/web-server/webapps/* tomcat/webapps/ $ mv /tmp/alfresco/alfresco-community-distribution-201605/solr4/context.xml tomcat/conf/Catalina/localhost/solr4.xml $ mv /tmp/alfresco/alfresco-community-distribution-201605/alf_data . $ mv /tmp/alfresco/alfresco-community-distribution-201605/solr4 . $ mv /tmp/alfresco/alfresco-community-distribution-201605/amps . $ mv /tmp/alfresco/alfresco-community-distribution-201605/bin . $ mv /tmp/alfresco/alfresco-community-distribution-201605/licenses . $ mv /tmp/alfresco/alfresco-community-distribution-201605/README.txt . $ rm -rf /tmp/alfresco
Configuring software
Check the content of this file at /usr/local/tomcat/conf/catalina.properties
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
Check the content of the file /usr/local/tomcat/bin/setenv.sh
JAVA_OPTS="$JAVA_OPTS -Dalfresco.home=/usr/local/alfresco" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote" JAVA_OPTS="$JAVA_OPTS -XX:ReservedCodeCacheSize=128m" JAVA_OPTS="$JAVA_OPTS -Xms512M -Xmx4096M" export JAVA_OPTS
Configuring Alfresco properties at /usr/local/alfresco/tomcat/shared/classes/alfresco-global.properties
# Content stores dir.root=/usr/local/alfresco/alf_data dir.keystore=${dir.root}/keystore # Database db.driver=org.postgresql.Driver db.url=jdbc:postgresql://postgres:5432/alfresco db.username=alfresco db.password=alfresco # Programs ooo.exe=soffice ooo.enabled=true ooo.host=libreoffice ooo.port=8100 img.root=/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9 img.exe=/usr/bin/convert # Alfresco webapp alfresco.context=alfresco alfresco.host=localhost alfresco.port=8080 alfresco.protocol=http # Share webapp share.context=share share.host=localhost share.port=8080 share.protocol=http # Services cifs.enabled=false ftp.enabled=false imap.server.enabled=false alfresco.rmi.services.host=0.0.0.0 monitor.rmi.service.port=0 # SOLR index.subsystem.name=solr4 solr.host=localhost solr.port.ssl=8443 solr.port=8080 solr.secureComms=none
Deploy Alfresco Share Services
$ /usr/local/alfresco/bin/apply_amps.sh
Configuring SOLR 4
$ set -x $ sed -i 's,@@ALFRESCO_SOLR4_DIR@@,'"/usr/local/alfresco"'/solr4,g' tomcat/conf/Catalina/localhost/solr4.xml $ sed -i 's,@@ALFRESCO_SOLR4_MODEL_DIR@@,'"/usr/local/alfresco"'/solr4/model,g' tomcat/conf/Catalina/localhost/solr4.xml $ sed -i 's,@@ALFRESCO_SOLR4_CONTENT_DIR@@,'"/usr/local/alfresco"'/solr4/content,g' tomcat/conf/Catalina/localhost/solr4.xml $ sed -i 's,@@ALFRESCO_SOLR4_DATA_DIR@@,'"/usr/local/alfresco"'/solr4,g' solr4/workspace-SpacesStore/conf/solrcore.properties $ sed -i 's,@@ALFRESCO_SOLR4_DATA_DIR@@,'"/usr/local/alfresco"'/solr4,g' solr4/archive-SpacesStore/conf/solrcore.properties $ sed -i 's,alfresco.secureComms=https,alfresco.secureComms=none,g' solr4/workspace-SpacesStore/conf/solrcore.properties $ sed -i 's,alfresco.secureComms=https,alfresco.secureComms=none,g' solr4/archive-SpacesStore/conf/solrcore.properties
Running Alfresco
$ /usr/local/tomcat/bin/catalina.sh start
Once all the steps have been executed, Alfresco should be available in default URLs:
There are different ways for installing Alfresco. Before installing, you should learn each of them in order to choose the better for your requirements.