TakE iT Or LeavE iT

Installing Alfresco in Liferay Tomcat on Linux

Pre Installing

I assume that you have all this on your Linux

  1. Mysql database server
  2. sun-java6-jdk
  3. portmap
  4. nfs*
  5. iptables
  6. imagemagick
  7. openoffice.org
  8. Liferay*

Java Setting

Add this line to /etc/profile to set JAVA_HOME: export JAVA_HOME=”/usr/lib/jvm/java-6-sun”

Create Alfresco User and Group

groupadd alfresco
useradd -m -g alfresco alfresco

Create database

Using the mysql command line client:
create database alfresco;
grant all privileges on alfresco.* to alfresco@localhost identified by ‘alfresco’;

Create directories for variable data

mkdir -p /var/lib/alfresco/alf_data

chown -R alfresco:alfresco /var/lib/alfresco

installation

Extract alfresco

tar -xzf alfresco-enterprise-tomcat-2.1.1.tar.gz

copy shared folder in alfresco tomcat to directory liferay tomcat

edit custom-repository.properties and set like following:

dir.root=/var/lib/alfresco/alf_data
dir.indexes=${dir.root}/lucene-indexes

db.username=alfresco

db.username=alfresco

db.password=alfresco

un-tag MySQL connection and tag with “#” for other databases

edit custom-hibernate.dialect.properties and settag “#” for other databases but un-tag for mySQL database

edit ${tomcat.home}/bin/catalina.properties to

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar

copy alfresco.war to ${liferay.tomcat}/webapps

change  alfresco.war to alfresco.zip then extract to  ${liferay.tomcat}/webapps then delete alfresco.zip

edit  ${liferay.tomcat}/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties

dir.root=/var/lib/alfresco/alf_data
dir.indexes=${dir.root}/lucene-indexes

db.username=alfresco

db.username=alfresco

db.password=alfresco

un-tag MySQL connection and tag with “#” for other databases

Run

startup liferay and you can access alfresco in http://yoursite.com:8080/alfresco

Leave a Comment

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must be logged in to post a comment.