Alfresco community-4.0.b manual install guide for Ubuntu Linux
November 20, 2011 21:00:58 Last update: November 20, 2011 21:10:22
Alfresco community-4.0.b has only 64-bit installer for Linux. These are the steps to manually install it on 32-bit Ubuntu Linux.
Note 1: I used Libreoffice instead of Open Office since Ubuntu 11.10 comes with Libreoffice bundled.
Note 2: The JDBC driver jar must reside in
- Download
alfresco-community-4.0.b.zipfrom http://wiki.alfresco.com/wiki/Download_and_Install_Alfresco. - Install dependencies:
$ sudo apt-get install imagemagick swftools postgresql
Note:swftoolswas not available as a package for Ubuntu 11.10, I installed it with source. - Create alfresco database:
$ sudo bash [sudo] password for alfresco: # su - postgres $ psql psql (9.1.1) Type "help" for help. postgres=# create user alfresco password 'alfresco'; CREATE ROLE postgres=# create database alfresco owner=alfresco; CREATE DATABASE postgres-# \q
- Copy everything from the Alfresco
web-serverfolder to Tomcat:$ cp -R alfresco-community-4.0.b/web-server/* apache-tomcat-7.0.22/
- Edit
$TOMCAT_HOME/conf/catalina.properties, changeshared.loaderto:shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
- Edit Tomcat conf file
conf/server.xml, addURIEncoding="UTF-8":<Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8" connectionTimeout="20000" redirectPort="8443" />
- Customize
alfresco-global.properties:$ mv shared/classes/alfresco-global.properties.sample shared/classes/alfresco-global.properties
- Edit
shared/classes/alfresco-global.properties:############################### ## Common Alfresco Properties # ############################### dir.root=/home/alfresco/alf_data dir.keystore=${dir.root}/keystore alfresco.context=alfresco alfresco.host=127.0.0.1 alfresco.port=8080 alfresco.protocol=http share.context=share share.host=127.0.0.1 share.port=8080 share.protocol=http ### database connection properties ### db.driver=org.postgresql.Driver db.username=alfresco db.password=alfresco db.name=alfresco db.url=jdbc:postgresql://localhost:5432/${db.name} ### FTP Server Configuration ### ftp.enabled=false ftp.port=21 ftp.ipv6.enabled=false ### RMI service ports ### alfresco.rmi.services.port=50500 avm.rmi.service.port=0 avmsync.rmi.service.port=0 attribute.rmi.service.port=0 authentication.rmi.service.port=0 repo.rmi.service.port=0 action.rmi.service.port=0 deployment.rmi.service.port=0 ### External executable locations ### ooo.exe=/usr/bin/soffice ooo.enabled=true ooo.port=8100 img.root=/usr img.dyn=${img.root}/lib img.exe=${img.root}/bin/convert swf.exe=/usr/local/bin/pdf2swf jodconverter.enabled=true jodconverter.officeHome=/usr/lib/libreoffice jodconverter.portNumbers=8100 ### E-mail site invitation setting ### notification.email.siteinvite=false ### File Protocol Root ### protocols.rootPath=/${spaces.company_home.childname}/${spaces.sites.childname} ### License location ### dir.license.external=/usr/alfresco/Downloads/alfresco-community-4.0.b ### Solr indexing ### #index.subsystem.name=solr #solr.port.ssl=8443 ### BPM Engine ### system.workflow.engine.jbpm.enabled=false
- Copy keystore files from
alfresco.war: expandalfresco.war, grab the whole keystore directory fromWEB-INF/classes/alfresco/and put it in${dir.root}. - Set
JAVA_OPTS:$ export JAVA_OPTS='-XX:MaxPermSize=512m -Xms128m -Xmx768m'
- Startup Tomcat:
bin/startup.sh
- Monitor
alfresco.logunder$TOMCAT_HOME.
Note 1: I used Libreoffice instead of Open Office since Ubuntu 11.10 comes with Libreoffice bundled.
Note 2: The JDBC driver jar must reside in
$TOMCAT_HOME/lib, not $TOMCAT_HOME/shared/lib.5 comments 