Confluence on a Debian/Ubuntu ARM Server from Archive File

Atlassian only provides a binary for installing Confluence on 32-bit and 64-bit x86 platforms, so we cannot use their automated installation scripts. To install Confluence on ARM, we need to use the Archive File option provided by Atlassian.

Preparation

Install and configure the required packages (Apache, MySQL, Tomcat, Java, JDBC driver for MySQL):
apt-get update
apt-get install apache2 tomcat8 python-software-properties software-properties-common oracle-java8-installer oracle-java8-set-default

add-apt-repository ppa:webupd8team/java
apt-get update
update-alternatives --config java

Select the „auto mode“ option in the Selection Path Priority menu and when finished check the Java version:
java -version

Create a dedicated user for running Confluence:
useradd --create-home --comment "Account for running Confluence" --shell /bin/bash confluence

Create the installation directory:
mkdir /var/confluence
chown -R confluence /var/confluence
chmod -R u=rwx,go-rwx /var/confluence

Create the home directory:
mkdir /var/confluence-home
chown -R confluence /var/confluence-home
chmod -R u=rwx,go-rwx /var/confluence-home

Download the tar.gz archive file using the link of the button on
https://www.atlassian.com/software/confluence/download
when the TAR.ZG package is selected:
cd /usr/local/src
wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.10.7.tar.gz

Extract the archive file:
tar -xvzf atlassian-confluence-5.10.7.tar.gz

Database

Variant 1: PostgreSQL

Install database packages (PostgreSQL, phpPgAdmin):
apt-get install postgresql phppgadmin

The JDBC driver for PostgreSQL is included by default in the Confluence package.

With phpPgAdmin create the database „confluence“ with „UTF-8 general“ character encoding and the db user „confluence“ with all rights for the database „confluence“.

Variant 2: MySQL

Install database packages (MySQL, PhpMyAdmin, JDBC driver for MySQL):
apt-get install mysql phpmyadmin libmysql-java

With PhpMyAdmin create the database „confluence“ with „UTF-8 general“ character encoding and the db user „confluence“ with all rights for the database „confluence“.

Confluence Installation

Change to the subdirectory and copy its content to the installation directory:
cd atlassian-confluence-5.10.7
cp -r * /var/confluence

Set the home directory property in the /WEB-INF/classes/confluence-init.properties file:
nano /var/confluence/confluence/WEB-INF/classes/confluence-init.properties

Add the following line  at the end of the file, save and exit:
confluence.home=/var/confluence/

Now Confluence has all it needs and is able to run, so we can start it with:
cd /var/confluence/bin
./start-confluence.sh

Confluence can take up to 10 minutes or more to start, depending on your ARM processor’s core and speed, as well as your file system location and speed.

To finalize the installation, open „http://your-ip-address:8090“ in your browser and follow the steps.

Further Information