Confluence Installation

Confluence is a collaboration software written in Java.

Install prerequisite packages 
rpm -ivh pcre-devel-4.5-3.i386.rpm
rpm -ivh apr-devel-0.9.4-24.1.i386.rpm
rpm -ivh apr-util-devel-0.9.4-17.i386.rpm
rpm -ivh httpd-devel-2.0.52-9.ent.i386.rpm

Uninstall GNU java
rpm -e java-1.4.2-gcj-compat
rpm -e gcc-java

Install jdk
===========

chmod +x jdk-1_5_0_08-linux-i586-rpm.bin
./jdk-1_5_0_08-linux-i586-rpm.bin
cd /usr/java/jdk1.5.0_08
ln -s /usr/java/jdk1.5.0_08 /usr/java/jdk

Install Tomcat
==============

#create Tomcat Account
groupadd tomcat
useradd -g tomcat tomcat

cd /usr/local
tar xzf apache-tomcat-5.5.17.tar.gz
ln -s apache-tomcat-5.5.17 tomcat5

#change ownership
cd /usr/local
chown -R tomcat.root /usr/local/tomcat5
chown -R tomcat.root /usr/local/apache-tomcat-5.5.17

Set environment variable
===============

vi /etc/profile
export JAVA_HOME=/usr/java/jdk
export CATALINA_HOME=/usr/local/tomcat5
export PATH=$PATH:/usr/java/jdk/bin

logout


Start tomcat
============

/usr/local/tomcat5/bin/startup.sh

Installing the Connector
========================

rpm -q libtool automake autoconf
tar xfz tomcat-connectors-1.2.18-src.tar.gz
cd /usr/local/tomcat-connectors-1.2.18-src/native
./configure --with-apxs=/usr/sbin/apxs
make
cd apache-2.0
cp mod_jk.so /etc/httpd/modules/


#note: run outside from /usr/local/tomcat5/conf/ dir
/usr/local/tomcat5/bin/shutdown.sh
/usr/local/tomcat5/bin/startup.sh

#verify the existance of /usr/local/tomcat5/conf/auto/mod_jk.conf file
vi /etc/httpd/conf/httpd.conf
Include /usr/local/tomcat5/conf/auto/mod_jk.conf
service httpd restart


cd /confluence-2.3.3/
vi /confluence-2.3.3/confluence/WEB-INF/classes/confluence-init.properties
confluence.home=/confluence-2.3.3
cd /usr/local/tomcat5/conf/Catalina/localhost/
vi confluence.xml

prefix="atlassian-confluence." suffix=".log" timestamp="true"/>

cd /confluence-2.3.3
chmod +x build.sh
./build.sh
this build will create /confluence-2.3.3/dist/atlassian-confluence-2.3.3.war

Configure Virtual Host for confluence
vi /usr/local/tomcat5/conf/auto/mod_jk.conf

#add these to VirtualHost
JkMount /confluence ajp13
JkMount /confluence/* ajp13

/usr/local/tomcat5/bin/shutdown.sh
/usr/local/tomcat5/bin/startup.sh

service httpd restart

Comments