Confluence 5.6 has reached end of life
Check out the [latest version] of the documentation
Confluence 5.6 will be the last release to provide an EAR/WAR edition. Read more.
The Confluence EAR-WAR distribution is intended for deployment into an existing J2EE application server.
To use this method of installation, you need to know how to deploy a web application on an existing application server. If not, please use the Confluence distribution instead.
On this page:
We also do not support deploying multiple Atlassian applications to a single Tomcat container for a number of practical reasons. Firstly, you must shut down Tomcat to upgrade any application and secondly, if one application crashes, the other applications running in that Tomcat container will be inaccessible.
Finally, we recommend not deploying any other applications to the same Tomcat container that runs Confluence, especially if these other applications have large memory requirements or require additional libraries in Tomcat's lib subdirectory.
This section gives detailed instructions for installing Confluence EAR-WAR edition on an Apache Tomcat 5.5, or 6 server.
confluence-4.0.1 or confluence-4.0.2. This directory will be later referred to as the Confluence installation directory. Inside is a confluence subdirectory, referred to later as the (Exploded) Confluence WAR directory. Record the absolute path to the Confluence WAR directory.Confluence requires a maximum heap allocation (Xmx) of at least 256 MB for normal operation. Also, remember to set the maximum PermGen memory allocation (XX:MaxPermSize). See Increasing Application Server Memory.
Do not configure a heap allocation so large that it does not allow enough remaining physical memory for your operating system and other applications on the server. The heap allocation should be large enough for Confluence, but not so large that the memory would be paged to disk during normal operation.
confluence-init.properties...confluence/WEB-INF/classes/confluence-init.properties in a text editor.confluence.home property to a directory of your choosing.confluence.xml and save in the conf/Catalina/localhost sub-directory of Tomcat. If these directories don't exist you can create them manually.Open your new confluence.xml file and add these lines:
<Context path="/confluence" docBase="<CONFLUENCE_INSTALLATION_DIRECTORY_PATH>/confluence" debug="0" reloadable="true"> </Context>
More on Context Path
To run Confluence without a context path, change the path in the Context tag to an empty string (""). If not using a context path, your config will need to be saved as ROOT.xml rather than confluence.xml.
In Tomcat, a context path name follows the name of its xml file (except for ROOT.xml where no context path is used. Hence if you wish to change the context path to a different name, change both the context path and the name of the xml file. eg. "/wiki" context path should be saved in file wiki.xml.
/confluence/ on your Tomcat server.Edit conf/server.xml and find the line where the Coyote HTTP Connector is defined. It will look something like this, possibly with more parameters:
<Connector port="8080"/>
Add a URIEncoding="UTF-8"property to the connector:
<Connector port="8080" URIEncoding="UTF-8"/>
See Switching to Apache Tomcat.
Confluence can be run as a service.
Once Confluence is running, open a web browser and visit http://localhost:8080/ (Tomcat default port).
If you changed the port earlier, use the port you specified. Note that the Confluence installer normally uses port 8090 as the default, to avoid conflicts with JIRA (using port 8080).
The Confluence Setup Wizard should appear in your web browser, prompting you to enter your license key. Follow the instructions on screen, and read more guidelines on the Confluence Setup Wizard.
webapps folder, as this may cause Confluence to be deployed more than once. It may cause a Cluster Panic error.