Martin Bálint

Personal blog of IT professional

Oracle PL/SQL developer
PHP developer
Linux administrator

Nov 28 2008

Installing Confluence on Centos 5.2

Today, I installed Atlassian Confluence into one of my XEN virtual machines.

Download Linux Standalone version of Confluence at

cd /tmp
useradd --create-home -c "Confluence role account" confluence
mkdir -p /opt/confluence
cd /opt/confluence/
tar xvzf /tmp/confluence-2.9-std.tar.gz
ln -s confluence-2.9-std/ current
chown -R confluence: /opt/confluence

Edit current/confluence/WEB-INF/classes/ and set


Create file /etc/init.d/confluence

chmod +x /etc/init.d/confluence
chkconfig --add confluence
chkconfig confluence on

Check ports in current/conf/server.xml
I changed Server port=”8001″ and Connector port=”8081″

Start Confluence now and check log file

/etc/init.d/confluence start
less /opt/confluence/current/logs/catalina.out

If everything went all right, you should see Setup Wizard on http://serverip:8081

Setup mysql database

If you don’t have Mysql server installed, do it now.

yum install mysql-server
/etc/init.d/mysqld start
chkconfig mysqld on

Next, create database user for confluence

mysql -u root -p

create database confluencedb character set utf8;
grant all privileges on confluencedb.* to confluenceuser@localhost identified by 'mypassword' with grant option;
flush privileges;

Next, get MySQL/J JDBC driver and install it

cd /tmp
tar xvfz mysql-connector-java-5.1.6.tar.gz
cp mysql-connector-java-5.1.6/mysql-connector-java-5.1.6-bin.jar /opt/confluence/current/confluence/WEB-INF/lib/

Restart Confluence

/etc/init.d/confluence restart

Navigate to Setup wizard at http://serverip:8081
Enter Licence key and click on Custom Installation
Select MySQL and click on External Database button
On the next page, click on Direct JDBC button
Change the database URL to


Enter confluenceuser to User Name and your password to Password field.
Click on Next, after a while you should see Load Content screen. You can choose how to continue here.

Tagged , ,

Related Posts

Leave a reply

Your email address will not be published. Required fields are marked *