Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I install Confluence on minimal Linux?

Andy July 22, 2019

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

2 answers

1 vote
Thomas Deiler
Community Champion
July 22, 2019

Dear @Andy

yes, you can. You can follow my article that was written for Jira Software. 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.

So long

Thomas

Thomas Deiler
Community Champion
July 24, 2019

Dear @Andy ,

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

0 votes
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 23, 2019

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).

Andy July 23, 2019

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

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2019

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

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.

Andy July 26, 2019

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.  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 ~]#
Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2019

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
Like Andy likes this
Andy July 26, 2019

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

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2019

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

And you will need this too:

firewall-cmd --permanent --zone=public --add-port=8443/tcp
firewall-cmd --reload
Andy July 27, 2019

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

Andy July 27, 2019

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]#
Andy July 27, 2019

I'm now at "configuring the Server Base URL"

Mine is currently:

http://192.168.189.142:8090

So I change to:

https://192.168.189.142:8090

 

Run 

$ sudo /etc/init.d/confluence restart

 

And the https page doesn't load.

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2019

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.

Andy July 27, 2019

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

 

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"/>
-->

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

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2019

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" />
Andy July 27, 2019

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.

Andy July 27, 2019

Still no joy, also if I telnet to 8443 it fails.

Bill Bailey
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2019

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)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events