classes:install_confluence_671_bin
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
classes:install_confluence_671_bin [2018/02/14 12:34] – created curry_searle | classes:install_confluence_671_bin [2018/03/02 09:31] (current) – [Install Confluence 6.7.1 from Binary Installer] curry_searle | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Install Confluence 6.7.1 from Binary Installer ==== | ==== Install Confluence 6.7.1 from Binary Installer ==== | ||
- | This tutorial assumes you downloaded the Linux binary installer for Confluence 6.7.1, you have sudo capabilities on an AWS EC2 "free tier" instance along with an AWS RDS "free tier" database of the mysql variety. | + | ===Assumptions=== |
+ | This tutorial assumes you downloaded the Linux binary installer for Confluence 6.7.1, you have sudo capabilities on an AWS EC2 "free tier" instance along with an AWS RDS "free tier" database of the mysql variety. | ||
+ | * Host: ec2-01.amzn.openspeak.net | ||
+ | * RDS: yourRDSinstance.c8abc12tntuk.us-east-1.rds.amazonaws.com | ||
+ | ===Install Confluence=== | ||
Run the installer as root: | Run the installer as root: | ||
< | < | ||
sudo ./ | sudo ./ | ||
+ | </ | ||
+ | |||
+ | When prompted, press enter or '' | ||
+ | < | ||
+ | sudo ./ | ||
+ | Unpacking JRE ... | ||
+ | Starting Installer ... | ||
+ | Feb 14, 2018 8:34:35 PM java.util.prefs.FileSystemPreferences$1 run | ||
+ | INFO: Created user preferences directory. | ||
+ | Feb 14, 2018 8:34:35 PM java.util.prefs.FileSystemPreferences$2 run | ||
+ | INFO: Created system preferences directory in java.home. | ||
+ | |||
+ | This will install Confluence 6.7.1 on your computer. | ||
+ | OK [o, Enter], Cancel [c] | ||
+ | </ | ||
+ | |||
+ | For this tutorial we are doing a '' | ||
+ | < | ||
+ | Choose the appropriate installation or upgrade option. | ||
+ | Please choose one of the following: | ||
+ | Express Install (uses default settings) [1], | ||
+ | Custom Install (recommended for advanced users) [2, Enter], | ||
+ | Upgrade an existing Confluence installation [3] | ||
+ | </ | ||
+ | |||
+ | Accept the defaults for '' | ||
+ | < | ||
+ | Where should Confluence 6.7.1 be installed? | ||
+ | [/ | ||
+ | |||
+ | Default location for Confluence data | ||
+ | [/ | ||
+ | </ | ||
+ | |||
+ | As part of this tutorial we configure an Nginx reverse proxy so accepting the Confluence default ports are fine: | ||
+ | < | ||
+ | Where should Confluence 6.7.1 be installed? | ||
+ | [/ | ||
+ | |||
+ | Default location for Confluence data | ||
+ | [/ | ||
+ | </ | ||
+ | |||
+ | Accept the default option to start Confluence as a service: | ||
+ | < | ||
+ | Confluence can be run in the background. | ||
+ | You may choose to run Confluence as a service, which means it will start | ||
+ | automatically whenever the computer restarts. | ||
+ | Install Confluence as Service? | ||
+ | Yes [y, Enter], No [n] | ||
+ | </ | ||
+ | |||
+ | Wait as the installer extracts the archived Confluence application files to the chosen location. Press '' | ||
+ | < | ||
+ | Extracting files ... | ||
+ | |||
+ | Please wait a few moments while we configure Confluence. | ||
+ | Installation of Confluence 6.7.1 is complete | ||
+ | Start Confluence now? | ||
+ | Yes [y, Enter], No [n] | ||
+ | </ | ||
+ | |||
+ | You are prompted when the install finishes to finalize the install by directing your browser to the instance. | ||
+ | < | ||
+ | Please wait a few moments while Confluence starts up. | ||
+ | Launching Confluence ... | ||
+ | Installation of Confluence 6.7.1 is complete | ||
+ | Your installation of Confluence 6.7.1 is now ready and can be accessed via | ||
+ | your browser. | ||
+ | Confluence 6.7.1 can be accessed at http:// | ||
+ | Finishing installation ... | ||
+ | </ | ||
+ | |||
+ | ===Install Nginx Reverse Proxy with SSL=== | ||
+ | At this point we will configure Nginx as a reverse proxy before finalizing the Confluence installation via the web page. | ||
+ | |||
+ | Install Nginx: | ||
+ | < | ||
+ | sudo apt -y install nginx | ||
+ | </ | ||
+ | |||
+ | Generate a self-signed SSL certificate: | ||
+ | < | ||
+ | sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout / | ||
+ | </ | ||
+ | |||
+ | The output should look something like this as you answer the various questions: | ||
+ | < | ||
+ | Generating a 2048 bit RSA private key | ||
+ | ............+++ | ||
+ | ..........................................+++ | ||
+ | writing new private key to '/ | ||
+ | ----- | ||
+ | You are about to be asked to enter information that will be incorporated | ||
+ | into your certificate request. | ||
+ | What you are about to enter is what is called a Distinguished Name or a DN. | ||
+ | There are quite a few fields but you can leave some blank | ||
+ | For some fields there will be a default value, | ||
+ | If you enter ' | ||
+ | ----- | ||
+ | Country Name (2 letter code) [AU]:US | ||
+ | State or Province Name (full name) [Some-State]: | ||
+ | Locality Name (eg, city) []:Denton | ||
+ | Organization Name (eg, company) [Internet Widgits Pty Ltd]: | ||
+ | Organizational Unit Name (eg, section) []: | ||
+ | Common Name (e.g. server FQDN or YOUR name) []: | ||
+ | Email Address []: | ||
+ | </ | ||
+ | |||
+ | Generate the '' | ||
+ | < | ||
+ | sudo openssl dhparam -out / | ||
+ | </ | ||
+ | |||
+ | Edit ''/ | ||
+ | < | ||
+ | sudo vi / | ||
+ | </ | ||
+ | to contain the following: | ||
+ | < | ||
+ | ssl_certificate / | ||
+ | ssl_certificate_key / | ||
+ | </ | ||
+ | |||
+ | Edit ''/ | ||
+ | < | ||
+ | sudo vi / | ||
+ | </ | ||
+ | to include the following: | ||
+ | < | ||
+ | # from https:// | ||
+ | # and https:// | ||
+ | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
+ | ssl_prefer_server_ciphers on; | ||
+ | ssl_ciphers " | ||
+ | ssl_ecdh_curve secp384r1; | ||
+ | ssl_session_cache shared: | ||
+ | ssl_session_tickets off; | ||
+ | ssl_stapling on; | ||
+ | ssl_stapling_verify on; | ||
+ | resolver 8.8.8.8 8.8.4.4 valid=300s; | ||
+ | resolver_timeout 5s; | ||
+ | # Disable preloading HSTS for now. You can use the commented out header line that includes | ||
+ | # the " | ||
+ | #add_header Strict-Transport-Security " | ||
+ | add_header Strict-Transport-Security " | ||
+ | add_header X-Frame-Options DENY; | ||
+ | add_header X-Content-Type-Options nosniff; | ||
+ | |||
+ | ssl_dhparam / | ||
+ | </ | ||
+ | |||
+ | Backup the default Nginx configuration file: | ||
+ | < | ||
+ | sudo cp / | ||
+ | </ | ||
+ | |||
+ | Edit ''/ | ||
+ | < | ||
+ | sudo vi / | ||
+ | </ | ||
+ | to include the following text, adjusted to match your DNS hostname: | ||
+ | < | ||
+ | server { | ||
+ | listen ec2-01.amzn.openspeak.net: | ||
+ | server_name ec2-01.amzn.openspeak.net; | ||
+ | |||
+ | listen 443 ssl http2 default_server; | ||
+ | listen [::]:443 ssl http2 default_server; | ||
+ | |||
+ | include snippets/ | ||
+ | include snippets/ | ||
+ | include snippets/ | ||
+ | |||
+ | #return 301 https:// | ||
+ | proxy_redirect http:// https://; | ||
+ | |||
+ | client_max_body_size 2048M; | ||
+ | |||
+ | location / { | ||
+ | proxy_set_header X-Forwarded-Host $host; | ||
+ | proxy_set_header X-Forwarded-Server $host; | ||
+ | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
+ | proxy_pass http:// | ||
+ | } | ||
+ | |||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===Configure Confluence to Recognize the Proxy=== | ||
+ | Backup and edit the '' | ||
+ | < | ||
+ | sudo cp / | ||
+ | sudo vi / | ||
+ | </ | ||
+ | |||
+ | to include the following change; specifically the last line of the block containing the '' | ||
+ | < | ||
+ | < | ||
+ | maxThreads=" | ||
+ | enableLookups=" | ||
+ | protocol=" | ||
+ | proxyName=" | ||
+ | /> | ||
+ | </ | ||
+ | |||
+ | ===Restart Services=== | ||
+ | Restart Nginx & Confluence: | ||
+ | < | ||
+ | sudo service nginx restart | ||
+ | sudo service confluence restart | ||
</ | </ | ||
=====Resources===== | =====Resources===== | ||
* [[https:// | * [[https:// |
classes/install_confluence_671_bin.1518640492.txt.gz · Last modified: 2018/02/14 12:34 by curry_searle