Alfresco community-4.0.b manual install guide for Ubuntu Linux 

Joined:
10/19/2011
Posts:
8

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.
  1. Download alfresco-community-4.0.b.zip from http://wiki.alfresco.com/wiki/Download_and_Install_Alfresco.
  2. Install dependencies:
    $ sudo apt-get install imagemagick swftools postgresql
    

    Note: swftools was not available as a package for Ubuntu 11.10, I installed it with source.
  3. 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
    

  4. Copy everything from the Alfresco web-server folder to Tomcat:
    $ cp -R alfresco-community-4.0.b/web-server/* apache-tomcat-7.0.22/
    

  5. Edit $TOMCAT_HOME/conf/catalina.properties, change shared.loader to:
    shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
    

  6. Edit Tomcat conf file conf/server.xml, add URIEncoding="UTF-8":
    <Connector port="8080" protocol="HTTP/1.1" 
        	   URIEncoding="UTF-8"
               connectionTimeout="20000" 
               redirectPort="8443" />
    

  7. Customize alfresco-global.properties:
    $ mv shared/classes/alfresco-global.properties.sample shared/classes/alfresco-global.properties
    

  8. 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
    

  9. Copy keystore files from alfresco.war: expand alfresco.war, grab the whole keystore directory from WEB-INF/classes/alfresco/ and put it in ${dir.root}.
  10. Set JAVA_OPTS:
    $ export JAVA_OPTS='-XX:MaxPermSize=512m -Xms128m -Xmx768m'
    

  11. Startup Tomcat:
    bin/startup.sh
    

  12. Monitor alfresco.log under $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.
Share |
| Comment  | Tags
5 comments