Upgraded confluence from ear/war to confluence standalone. Just wonder if this possible there is any road block?
Asked by Jaime Romaguera:

Hi,

Wondering if it possible to upgraded confluence from ear/war to standalone, is this possible any road blocks or gothca I should watch for?

Thanks

J


Answers:
author: Nic Brough -Adaptavist-
body: Not within Confluence - the code for the two of them is essentially the same. You can (almost) think of standalone as being "EAR/WAR installed in a Tomcat and hooked up to a database for you so you don't have to do it yourself"

You may hit some problems if you're changing the database and/or application server, but those will be environmental things, not directly Confluence itself.


author: Hao Doan
body: This is going from EAR/WAR Confluence 5.5.3 to Standalone Confluence 5.9.4. The upgrade must be manually done. This is on a CentOS 7. These are my steps and this worked for me. I'm not responsible for yours. I hope this help who are looking for details how to upgrade.

#### \*\*\*\*ALWAYS BACKUP BEFORE UPGRADING\*\*\*\*\*\* {#toc-hId-1223857407}

**Database Check**

* Make sure your database Collation set to **COLLATE SQL_Latin1_General_CP1_CS_AS**
* It should if you're already on version 5.5 or higher. **If not, you need to fix that before going any further, see the link below from Atlassian.**
* Change database read committed snapshot.

```
ALTER DATABASE?&lt;databasename&gt;SET READ_COMMITTED_SNAPSHOT ONWITH ROLLBACK IMMEDIATE;
```

For more info: <https://confluence.atlassian.com/doc/database-setup-for-sql-server-9258.html>

#### Install \& Upgrade Confluence 5.9.4 {#toc-hId--1328299554}

1. Stop current Confluence
2. Download the standalone version
3. FTP to the server
4. Untar the file.

   ```
   tar -zxvf atlassian-confluence-5.9.4.tar.gz
   ```

5. Rename it to **confluence594** , and move it */opt/atlassian/*
6. Edit server.xml file (/opt/atlassian/confluence594/conf/server.xml)
   1. change the ports to the your current ports. These are my tomcat ports I've setup on the old version, and I want to keep it the same. You could also keep the default ports number.

      | Envir. | HTTP Port | Shutdown Port | AJP Port | Redirect Port |
      |--------|-----------|---------------|----------|---------------|
      | TEST   | 8082      | 8012          | 8016     | 8544          |

   2. Add the following under Context Path. Change the name to yours.

TEST: \<Context path="/confluence" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"\>

6. Edit the setenv.sh file (/opt/atlassian/confluence594/bin), Add export JAVA_HOME=/opt/java8 at the end of the line.

**NOTE: Make sure you have JDK Java 8 installed and a symbolic link of java8**

7. Copy **crow.properties, osuser.xml, confluence.init.properties** , **seraph-config.xml???** and **jtds** driver from the current Confluence and paste it in the new Confluence. The files are in LIB folder for driver \& classes folder for all the xml \& properties.

**NOTE: I'm also using crowd as my authentication. Copy the files you need for other authentication, see the link at the end from Atlassian.**

8. Start the new Confluence sudo /opt/atlassian/confluence594/bin/startup.sh. It should take awhile to upgrade.

9. To stop Confluence sudo /opt/atlassian/confluence594/bin/shutdown.sh

For more info: <https://confluence.atlassian.com/doc/upgrading-confluence-manually-255363437.html>

Good Luck! I hope this help.