How to install Alfresco in Ubuntu 9.10

To be precise, the title should be: How to install Alfresco 3 Community Edition in Kubuntu 9.10 64-bit with Java 6 and Tomcat 6

Because that the environment which prove the Alfresco to run smoothly. So this are the steps:

Please make sure Java 6, MySQL 5, and others installed

sudo apt-get install sun-java6-jre mysql-server mysql-client swftools imagemagick unzip

Download and extract Tomcat 6 and Alfresco 3 (Community Edition) WAR package

cd ~/Downloads
 wget -c http:/ /apache.the.net.id/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.tar.gz
 wget -c ??? (open http:/ /process.alfresco.com/ccdl/?file=release/community/build-2440/alfresco-community-war-3.2r2.tar.gz)
 wget -c http:/ /apache.the.net.id/commons/el/binaries/commons-el-1.0.tar.gz
 wget -c http:/ /dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.10.tar.gz/from/http://mysql.mirror.tw/

 cd
 tar zxvf ~/Downloads/apache-tomcat-6.0.20.tar.gz
 tar zxvf ~/Downloads/alfresco-community-war-3.2r2.tar.gz -C /tmp/
 tar zxvf ~/Downloads/commons-el-1.0.tar.gz -C /tmp
 tar zxvf ~/Downloads/mysql-connector-java-5.1.10.tar.gz -C /tmp

 cp /tmp/endorsed/* ~/apache-tomcat-6.0.20/lib/
 cp /tmp/commons-el-1.0/commons-el.jar ~/apache-tomcat-6.0.20/lib/
 cp /tmp/mysql-connector-java-5.1.10/mysql-connector-java-5.1.10-bin.jar ~/apache-tomcat-6.0.20/lib/
 cp /tmp/alfresco.war /tmp/share.war ~/apache-tomcat-6.0.20/webapps/
 cd ~/apache-tomcat-6.0.20/webapps/
 unzip alfresco.war -d alfresco

Create database

echo "create database alfresco3; " | mysql -uroot -p

Create fixed location for index files

sudo mkdir /opt/alfresco3-data
sudo chmod 777 /opt/alfresco3-data

Create Alfresco config file

in ~/apache-tomcat-6.0.20/webapps/alfresco/WEB-INF/classes/alfresco-global.properties which contains

dir.root=/opt/alfresco3-data

db.name=alfresco3
db.username=root
db.password=rootPwd
db.host=localhost
db.port=3306

ooo.exe=/usr/bin/soffice
swf.exe=/usr/bin/pdf2swf
img.root=/ImageMagick
img.exe=/usr/bin/convert

hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

## For upgrading
# index.recovery.mode=FULL

Upgrade Tomcat memory

Make sure you add this line about line 73 of $CATALINA_HOME/bin/catalina.sh file.

JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server
    -Xms1536m -Xmx1536m
    -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m
    -XX:MaxPermSize=256m -XX:+DisableExplicitGC"

Start Tomcat

cd ~/apache-tomcat-6.0.20/bin
./catalina.sh run

Alfresco in Action!

Just open http://localhost:8080/alfresco and it's done

Comments

About Upgrade Tomcat memory,

About Upgrade Tomcat memory, Which File should be edit?

Thanks.

Sam, I've just updated my

Sam, I've just updated my post. Sorry if it was not clear.

Thanks! Your information is

Thanks!

Your information is very useful!

Glad to hear that!

Glad to hear that!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <pre>
  • Lines and paragraphs break automatically.
  • Syntax highlight code surrounded by the {syntaxhighlighter OPTIONS}...{/syntaxhighlighter} tags.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.