How To Install Collabora Online & Nextcloud on Ubuntu | Installation Guide

Collabora Online on Nextcloud

Collabora OnlineCode Edition and Nextcloud

What is Collabora Online?

Collabora Online is a powerful tool suite with collaborative editing, where you can view, edit your different documents in real time with multiple people. It supports different document formats like DOC, DOCX, PPT, PPTX, XLS, Publisher …
It is Open Source, secure and can be used on Firefox, Google Chrome, IE etc.

What is Nextcloud?

Nextcloud is similar to Dropbox, a client-server software where you can view, edit and store files. The big advantages of Nextcloud are price and security. In fact, you can install your own Nextcloud server in your private server and it is free.

What are the benefits of installing Collabora into Nextcloud?

Those two tools will allow you to work in real time with your collaborators. You can access your document and modify it directly on your tablet or even smartphone.
You will have the same functionality than Google Docs, but your information will be stored on your server, it means that only you, will have access to your data (no one else).

How to install it on Hidora?

On the Hidora platform:

1. Create a Nextcloud environment on the Marketplace and turn On the SSL.

Nextcloud MarketplaceNetxloud SSL

2. Create another environment (an Ubuntu VPS with Public IP) where you will install Collabora Online.

3. Connect you via SSH to your environment Collabora.

Update your VPS and install Docker

  • apt-get update
  • apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
  • curl -fsSL | sudo apt-key add –
  • sudo add-apt-repository “deb [arch=amd64] $(lsb_release -cs) stable”
  • sudo apt-get update
  • apt-get install -y docker-ce

Deploy Collabora on your environment

  • docker pull collabora/code
  • docker run -t -d -p  ipv4-public-collabora:9980:9980 -e ‘domain=nextcloud-name-environment\\.hidora\\.com‘ –restart always –cap-add MKNOD collabora/code

Configuration of Apache

  • a2enmod proxy
  • a2enmod proxy_wstunnel
  • a2enmod proxy_http
  • a2enmod ssl
  • service apache2 restart

Configuration of the VirtualHost

  • nano /etc/apache/sites-available/collabora.conf

<VirtualHost *:80>
#Redirection vers le HTTPS
# RewriteEngine on RewriteCond %{SERVER_NAME} =
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]

  • nano /etc/apache/sites-available/collabora-le-ssl.conf

<VirtualHost *:443>

Require all granted

ErrorLog /var/log/apache2/collabora-error.log
CustomLog /var/log/apache2/collabora-access.log combined
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/
SSLCertificateKeyFile /etc/letsencrypt/live/
Include /etc/letsencrypt/options-ssl-apache.conf
SSLProtocol all -SSLv2 -SSLv3
SSLHonorCipherOrder on
# Encoded slashes need to be allowed
AllowEncodedSlashes NoDecode
# Container uses a unique non-signed certificate
SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
# keep the host
ProxyPreserveHost On
# static html, js, images, etc. served from loolwsd
# loleaflet is the client part of LibreOffice Online
ProxyPass /loleaflet https://ip-public-collabora:9980/loleaflet retry=0
ProxyPassReverse /loleaflet https://ip-public-collabora:9980/loleaflet
# WOPI discovery URL
ProxyPass /hosting/discovery https://ip-public-collabora:9980/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery https://ip-public-collabora:9980/hosting/discovery
# Main websocket
ProxyPassMatch “/lool/(.*)/ws$” wss://ip-public-collabora:9980/lool/$1/ws nocanon
# Admin Console websocket
ProxyPass /lool/adminws wss://ip-public-collabora:9980/lool/adminws
# Download as, Fullscreen presentation and Image upload operations
ProxyPass /lool https://ip-public-collabora:9980/lool
ProxyPassReverse /lool https://ip-public-collabora:9980/lool

Installation of a certificate with Certbot

  • sudo apt-get update
  • sudo apt-get install software-properties-common
  • sudo add-apt-repository ppa:certbot/certbot
  • sudo apt-get update
  • sudo apt-get install python-certbot-apache
  • sudo certbot –apache
  • sudo certbot renew –dry-run  (renew automatically the certificate)
  • service docker restart

4.Configuration of Nextcloud

Go into your environment Nextcloud, activate Collabora online and specify the address of Collabora.

  • Settings →  Applications →   office documents → activate Collabora online
  • Settings →  Administration →  online Collabora →

5.Well done! Open about.odt and try it

Why choose Hidora to install those tools?

The first reason is that your data will be stored only in our Data Center which is located in Switzerland.
You will have no restriction regarding the number of users.
More additional functionality can be added to your environment (like audio/video calls),
If you use Hidora, you will pay only for the resources that your company consumes.

Please contact our support, if you need help or more information.