Confluence 2.6 has reached end of life
Check out the [latest version] of the documentation
Old documentation
This documentation is for old versions prior to Confluence 2.0. For the latest documentation see the Confluence 2.6 Installation Guide.
You will need
- A Java Application Server, as described in the Requirements
- To know how to install and configure your application server. If you do not, we suggest you download Confluence Standalone instead.
- (Optional) A database, as described in the Requirements
Installing the WAR version is a piece of cake:
- Unzip the Confluence WAR zip that you have downloaded
- Find the
confluencefolder in this unpacked distribution and copy this over to thewebappsdirectory of your application server (assuming you are using tomcat and resin). - Edit the
confluence-init.propertiesfile in thewebapps\confluence\WEB-INF\classesdirectory and set theconfluence.homeproperty to a directory of your choice. This directory is where Confluence will store it's configuration information, indexes and attachments. - Restart your webserver if necessary.
- Point your browser at
www.mydomain.com/confluencewheremydomainis your website domain. You should see the Confluence Setup Wizard!
Unix without X11
On some Java installations (i.e. Unix without X11), you need to pass an additional parameter to Java when you are starting up to tell it how to use its image-manipulation libraries.
To get thumbnail support working in this configuration, you need to start java with the argument '-Djava.awt.headless=true'. If you are using tomcat (or the Confluence standalone edition), try setting the environment variable JAVA_OPTS before starting the server. Assuming you're using the bourne or bash shell:
export JAVA_OPTS=-Djava.awt.headless=true
Alternatives to confluence-init.properties
This is an advanced note for experienced Java application server administrators. If you do not know how to set system properties or edit web.xml in your application server, we recommend you stick with editing confluence-init.properties as described above.
If you wish to deploy the WAR directly into an application server (or several application servers), you may want to skip the step of exploding the WAR file.
Confluence needs one piece of information in order to get running: the location of the confluence.home directory in which it should save its configuration files and other data. It obtains this information by looking at the following three places (in order):
- System properties (i.e. start the application with -Dconfluence.home=/path/to/your/confluence/home)
confluence-init.properties(i.e. follow the procedure above)- Servlet context (i.e. customise the
web.xmldeployment descriptor to include a <context-param> calledconfluence.home)
The first not-null value Confluence finds will be used as the confluence home.
So, if your application server supports the easy editing of system properties or servlet context parameters when deploying an application, you may want to use one of these methods instead of editing confluence-init.properties
