Alfresco Community Edition

From wiki.vincentkong.com
Jump to: navigation, search

Paper icon.png Main article: Document Management System

Contents

Installing Alfresco Community Edition to existing Tomcat 6

Download and extract Alfresco custom install package

Download alfresco-community-3.4.a.zip from http://wiki.alfresco.com/wiki/Community_file_list_3.4.a

Deploying war files

Deploy alfresco.war and share.war

$ cd ./web-server/webapps
$ cp alfresco.war /opt/tomcat6/webapps
$ cp share.war /opt/tomcat6/webapps

Setting up config file

Create the configuration file from the sample

$ cd /opt/tomcat6/webapps/alfresco/WEB-INF/classes
$ cp alfresco-global.properties.sample alfresco-global.properties

Modify the following

#
# Sample custom content and index data location
#
dir.root=/opt/alfresco/alf_data

#
# Sample database connection properties
#
db.username=alfresco
db.password=alfresco

#
# MySQL connection
#
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost/alfresco

Setting up Log4j.properties

Modify /opt/tomcat6/webapps/alfresco/WEB-INF/classes/log4j.properties

###### File appender definition #######
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
log4j.appender.File.File=/var/log/alfresco/alfresco.log

Modify /opt/tomcat6/webapps/share/WEB-INF/classes/log4j.properties

###### File appender definition #######
log4j.appender.File=org.apache.log4j.DailyRollingFileAppender
log4j.appender.File.File=/var/log/alfresco/alfresco.log

Change the ownership

$ chown tomcat6:tomcat6 /var/log/alfresco

Creating data directory

Create data directory according to configuration defined.

$ mkdir /opt/alfresco/alf_data
$ chown -R tomcat6:tomcat6 /opt/alfresco/alf_data

Creating database

Creating a database in MySQL

mysql> create database alfresco;
mysql> grant all on alfresco.* to 'alfresco'@'localhost' identified by 'alfresco';

Install JDBC driver

Download the MySQL JDBC driver from http://dev.mysql.com/downloads/connector/j/5.1.html and copy the .jar file into the WEB/lib directory

$ cp mysql-connector-java-5.1.13-bin.jar /opt/tomcat6/webapps/alfresco/WEB-INF/lib
$ cp mysql-connector-java-5.1.13-bin.jar /opt/tomcat6/webapps/share/WEB-INF/lib

Configuring virtual host in Tomcat

Edit /etc/tomcat6/server.xml

<Host name="alfresco.domain.com" appBase="" unpackWARs="false" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">
    <Context path="/alfresco" docBase="/opt/alfresco/alfresco"/>
    <Context path="/share" docBase="/opt/alfresco/share"/>
</Host>

Starting Alfresco on Tomcat

Start Tomcat

/etc/init.d/tomcat6 start

Using your browser to go http://localhost:8080/alfresco

Paper icon.png Reference: http://www.howtoforge.com/how-to-install-alfresco-community-3.3-on-ubuntu-server-10.04-lucid-lynx


Troubleshooting

Out of memory error

java.lang.OutOfMemoryError: PermGen space

Resolution: Refer to Performance Tuning section

Performance tuning

JAVA_OPTS=
-server
-Xss1024K
-Xms1G
-Xmx2G
-XX:MaxPermSize=128M
-XX:NewSize=512m

Paper icon.png Reference: http://wiki.alfresco.com/wiki/Repository_Hardware

Documentation

Personal tools
MY WEBSITES