This should help to install Confluence (Wiki) with some useful customisation.
The installation documentation will work for either CentOS 6.5 or Fedora 19 with MySQL/MariaDB 5..5.35+.
Some of the steps are duplicated if JIRA is already installed on the server.
- download the latest version of Confluence from Atlassian
- install and configure an up-to-date version of Java.
i.e. java -version --->> java version "1.7.0_51" - download the Java Connector version > 5.1.28 from Oracle (see git install)
- GOTCHA !!! remove all previous Confluence accounts, groups and installations unless you want to upgrade !!!
- copy both to the destination machine
change permissions to 755 on confluence binary package
- install the Java Connector into the /usr/share/java/
and replace old links of mysql-connector-java.jar (see git install)
- prepare the database (local or different db server)
CREATE USER 'wiki'@'localhost(remote host)' IDENTIFIED BY 'supersecret';
CREATE DATABASE IF NOT EXISTS `wiki_db` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`;
GRANT SELECT, LOCK TABLES, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `wiki_db`.* TO 'wiki'@'localhost (or other hostname)';
- prepare a data directory/file-system i.e. on a storage device for easier back-up.
i.e. /data/wiki
- prepare a directory for central logging /var/log/wiki
- decide which tomcat ports you want to use; this is not needed when you run Confluence on its own server.
- next still as superuser, execute the confluence binary
- GOTCHA !!! before starting Confluence or logging onto the gui for the remaining configuration, you have to copy the java-connector
GOTCHA !!! it has to be a "copy" linking does not work with Confluence
cd /opt/atlassian/confluence/lib (the default installation)
cp -p /usr/share/java/mysql-connector-java-5.1.28/mysql-connector-java-5.1.28-bin.jar mysql-connector-java.jar
Without this copy or link you will not see the database.
- Questions / Prompts during install:
- This will install Confluence 5.4 on your computer ---> press Enter
- Choose the appropriate installation or upgrade option ---> 2 + Enter
- Where should Confluence 5.4 be installed? ---> press Enter
- Default location for Wiki data (see item 6.) ---> /data/wiki + Enter
- Configure which ports Confluence will use (see item 8) ---> select option and Enter
- Install Confluence as Service? (silly question) ---> press Enter
- Finishing installation ...
- Now is the time for item 10. !!!
- Enter the database connection details into the file: /data/wiki/confluence.cfg.xml
- Also do Item 7.now.
- mv /data/wiki/logs/atlassian-confluence.log /var/log/wiki/
- rmdir /data/wiki/logs
- ln -s /var/log/wiki /data/wiki/logs
- cd /opt/atlassian/confluence
- mv logs/* /var/log/wiki/
- rmdir logs
- ln -s /var/log/wiki logs
- Restart JIRA and log-in to the gui to configure the admin user and the database.
- lastly configure Apache or nginx as the gateway.
No comments:
Post a Comment