Can I install Confluence on minimal Linux?
Asked by Andy:

Hello,

I have CentOS minimal running and wondered if Confluence can be installed on it? I can can't find the instructions to install via command line.

Anyone tried this and can share the commands to get started?

Thanks


Answers:
author: Thomas Deiler
body: Dear [@Andy](/t5/user/viewprofilepage/user-id/3501218)

yes, you can. You can follow my article that was [written for Jira Software](https://community.atlassian.com/t5/Jira-Software-articles/How-to-setup-a-secured-Jira-Software-8-on-openSUSE-Tumbleweed-in/ba-p/1063963). You have just to note following:

* The package management is *yum* or *rpm* instead of *zypper*. The packages should have similar names.
* Confluence default port is 8090 - Jira is 8080
* Confluence doesn't read the variable JIRA_HOME - you have to set the confluence-home path as described
* Adapt the path information in the systemd scripts
* the location for additional jdbc driver ist different. Confluence: confluence/WEB-INF/lib

If you plan to use MySQL instead of postgesql, read my former [article](https://community.atlassian.com/t5/Jira-Software-articles/How-to-setup-a-secured-Jira-Software-7-9-0-on-Ubuntu-16-04-4-in/ba-p/779988).

So long

Thomas

comments: author: Thomas Deiler
body: Dear [@Andy](/t5/user/viewprofilepage/user-id/3501218) ,

all the files can be pulled by *wget* or *curl* command. Figure out the links with the browser (and copy\&paste) or see my article links to the binaries and just adapt the version to a newer.

So long

Thomas


author: Bill Bailey
body: Try these instructions. <https://confluence.atlassian.com/doc/installing-confluence-on-linux-143556824.html>

I have always installed via the command line (using Putty/SSH). The only issue you will have is SELinux where you will have to open up ports before you can access your server via the command line (and sub the server IP address for the loopback).

comments: author: Andy
body: Thanks. The part I don't know how to do is if I'm using the command line version of Linux only, how do I download the file and execute (from shell)?

Most of the instructions assume I have a browser. I'm using CentOS Minimal.

Thanks


author: Bill Bailey
body: Go to the archives page (makes it easier to select the exact version and flavor you want:

<https://www.atlassian.com/software/confluence/download-archives>

Then *right-click* on the download button and save URL/Link to get the URL for the flavor you want:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/61316i6D28A56216C9726D/image-size/large?v=v2&px=999 "image.png")

For the latest Linux installer, the URL is:

<https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-6.6.15-x64.bin>

Next can then select a location on your server to download the binary to and issue the wget command:

```
wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-6.6.15-x64.bin
```

Then follow the rest of the instructions here: [installing-confluence-on-linux - Run the installer](https://confluence.atlassian.com/doc/installing-confluence-on-linux-143556824.html#InstallingConfluenceonLinux-2.Runtheinstaller).


author: Andy
body: Hello,

I've install CentOS in VMware and instlled Confluence. The server is on 192.168.189.142 which I can ping from my PC, but I the web site doesn't work on [http://192.168.189.142:8090.](http://192.168.189.142:8090.?) If I try and telnet to that IP on 8090 it doesn't open either.

Any ideas?

```
Installation of Confluence 6.6.15 is complete
Your installation of Confluence 6.6.15 is now ready and can be accessed via
your browser.
Confluence 6.6.15 can be accessed at http://localhost:8090
Finishing installation ...
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:be:5b:8a brd ff:ff:ff:ff:ff:ff
inet 192.168.189.142/24 brd 192.168.189.255 scope global noprefixroute dynamic ens33
valid_lft 1268sec preferred_lft 1268sec
inet6 fe80::bdae:7010:500e:dea3/64 scope link noprefixroute
valid_lft forever preferred_lft forever
[root@localhost ~]#
```


author: Bill Bailey
body: Did you open the ports in the firewall?

```
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=8090/tcp --permanent
firewall-cmd --reload
```


author: Andy
body: Thanks that worked! I couldn't find that in the instructions for some reason.

Database is now being setup.

Don't suppose how I would get SSL working from Confluence in minimal CentOS?

Kind Regards


author: Bill Bailey
body: I think that you are just supposed to know you have to do that, based on the assumed years of experience as a CentOS adim. ;-)

I set up mine for HTTPS using the following instructioncs:

[running-confluence-over-ssl-or-https](https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html)

And you will need this too:

    firewall-cmd --permanent --zone=public --add-port=8443/tcp
    firewall-cmd --reload


author: Andy
body: Thanks, I will trying this, I'm just performing an an upgrade to the latest version. It's a test build before I put into production so a good time to try this.

I want to install the calendar add-on too, not sure if it costs anything yet.

Can Jira me installed on the same Linux server? There will be under 10 users.

Thanks


author: Andy
body: Hmm SSL issues, can you see what I've doing wrong here?

```
Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /root/.keystore -destkeystore /root/.keystore -deststoretype pkcs12".
[root@localhost bin]#
```


author: Andy
body: I'm now at "configuring the Server Base URL"

Mine is currently:

[http://192.168.189.142:8090](http://192.168.189.142:8090/)

So I change to:

[https://192.168.189.142:8090](http://192.168.189.142:8090/)

Run

$ sudo /etc/init.d/confluence restart

And the https page doesn't load.


author: Bill Bailey
body: The port number changes too, so the new URL will be:

<https://192.168.189.142:8443>

And if you forward that port (and Synchrony port 8091) to your server, then you can access your server when not at home.


author: Andy
body: This is what I change it too and hit save and try and get to <https://192.168.189.142:8443> and the page fails to load. I can't telnet to 8443 either, just 8090.

I've added this too:

```
firewall-cmd --permanent --zone=public --add-port=8443/tcp

firewall-cmd --reload
```

![confluence1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/61665i66F96A60E4D1A4CF/image-size/large?v=v2&px=999 "confluence1.PNG")

The server.xml looks like this:

```
========================
-->

<!--
<Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25"
protocol="org.apache.coyote.http11.Http11Nio2Protocol"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLSv1.2" sslEnabledProtocols="TLSv1.2" SSLEnabled="true"
URIEncoding="UTF-8" keystorePass="mypassword123"/>
-->

<!--
======================================================================================

```


author: Bill Bailey
body: a) probably best to X out the keystorePass (unless that is a dummy password.

b) I dont see a keystoreFile statement

c) mine lists a wider range of protocols. Below is mine as an example:

```
 <Connector port="8443" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25"
protocol="org.apache.coyote.http11.Http11NioProtocol"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocols="TLSv1,TLSv1.1,TLSv1.2" sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2" SSLEnabled="true"
URIEncoding="UTF-8" keystorePass="XXXXXXXXX"
keystoreFile="/home/<user>/.keystore" />
```


author: Andy
body: Hello, do I put my username in here?

```
keystoreFile="/home/<user>/.keystore" />
```

Thing is I only have 2 usernames, mine and one called 'Confluence' both don't seem to have a keystore in them.


author: Andy
body: Still no joy, also if I telnet to 8443 it fails.


author: Bill Bailey
body: Well, when you created your key, you must have created a .keystore file (depends on where you ran your command to create the key). You need to place the file someplace that can be read by Confluence (may have to set read permissions). I placed mine in my home directory (not sure that would be best practices)