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 http://www.atlassian.com/software/confluence/ConfluenceDownloadCenter.jspa.
cd /tmp wget http://www.atlassian.com/software/confluence/downloads/binary/confluence-2.9-std.tar.gz 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/confluence-init.properties and set
confluence.home=/opt/confluence/home
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; quit
Next, get MySQL/J JDBC driver and install it
cd /tmp wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.6.tar.gz/from/http://mysql.linux.cz/ 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
jdbc:mysql://localhost/confluencedb?autoReconnect=true
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 atlassian, confluence, wiki