Nextcloud and Collabora online

Nextcloud and Collabora online installation & configuration


Ubuntu 16.04 server + LAMP + sudo apt install smbclient

Installation of NextCloud

  1. Fetch Nextcloud
su web
mkdir ~/www/
cd ~/www/
unzip -d .
mv nextcloud/ public_html
mkdir data

Add the icons of external applications in nextcloud/apps/external/img which are in the zip file

  1. Configure apache

  2. Go to to configure it

  3. Edit the file config/config.php :

array (
    0 => 'localhost',
    1 => '',
    2 => '',
    3 => '',
    4 => '',

Installation of Collabora

Follow these instructions : Docker alternative :

Configure apache in /etc/apache2/site-availables :

    <VirtualHost *:80>

                        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 retry=0
                        ProxyPassReverse    /loleaflet

                        # WOPI discovery URL
                        ProxyPass           /hosting/discovery retry=0
                        ProxyPassReverse    /hosting/discovery

                        # Main websocket
                        ProxyPassMatch "/lool/(.*)/ws$" wss://$1/ws nocanon

                        # Admin Console websocket
                        ProxyPass   /lool/adminws wss://

                        # Download as, Fullscreen presentation and Image upload operations
                        ProxyPass           /lool
                        ProxyPassReverse    /lool

Fetch and launch docker (the option --restart always will cause the container to be added to service docker which is automatically launched at the start of the computer)

sudo su
docker pull collabora/code
ufw allow 9980
docker run -t -d -p -e 'domain=cloud\\.communecter\\.org\|cloud\\.openappecosystem\\.cc\|nextcloud\\.co\\.tools|cloud\\.co\\.tools|cloud\\.cosystem\\.cc' --restart always --cap-add MKNOD collabora/code

Then, in the web interface of NextCloud, add the application Collabora and configure it by giving the server address :