Seafile Collabora Ubuntu 16.04 Apache without docker


I’m looking for a tuto or how to install Collabora with Seafile without docker?
I’m running Seafile 6.2 directly on Ubuntu 16.04 with Apache.
All I found is seafile + Collabora with Docker.


You have to install Collabora by your self, this step has nothing todo with seafile. After you setup collabora service, then just setup seafile like with docker image.

Collabora is service/server running on his own. Seafile connecting to this service. So setup is on you (docker/manual instalation) but without docker it’s little bit harder to setup right.


I have installed the packages like this:
apt-key adv --keyserver --recv-keys 0C54D189F4BA284D
echo ‘deb ./’ >> /etc/apt/sources.list
apt-get update && apt-get install loolwsd code-brand

So now I have an installation in /opt/collaboraoffice5.3 and /opt/lool

I have configured a virtualhost which is working under apache:

<VirtualHost *:443>

DocumentRoot /var/www

SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/
SSLCertificateChainFile /etc/letsencrypt/live/
SSLCertificateKeyFile /etc/letsencrypt/live/
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 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

I have added to
OFFICE_SERVER_TYPE = ‘CollaboraOffice’
OFFICE_WEB_APP_FILE_EXTENSION = (‘odp’, ‘ods’, ‘odt’, ‘xls’, ‘xlsb’, ‘xlsm’, ‘xlsx’,‘ppsx’, ‘ppt’, ‘pptm’, ‘pptx’, ‘doc’, ‘docm’, ‘docx’)
OFFICE_WEB_APP_EDIT_FILE_EXTENSION = (‘odp’, ‘ods’, ‘odt’, ‘xls’, ‘xlsb’, ‘xlsm’, ‘xlsx’,‘ppsx’, ‘ppt’, ‘pptm’, ‘pptx’, ‘doc’, ‘docm’, ‘docx’)

It’s not working:
2017-10-14 15:32:15,063 [ERROR] seahub.wopi.utils:101 get_wopi_dict syntax error: line 1, column 49

I don’t know if the packages are installing and configuring Collabora correctly and I don’t know if the apache virtualhost is correct.

If someone know how to configure this, I will be grateful.


1 Like

It’s working now…
First modify the file /etc/loolwsd/loolwsd.xml
Modify server entry and certificate location.
Don’t work…
Collabora can’t read the certificates in letsencrypt location.
copy the certificates to /etc/loolwsd and it works.
So this solution is not suitable with letsencrypt for now since the user lool don’t have permission to open the certificates in letsencrypt folder or Collabora is not able to manage the symbolics links in letsencrypt folder.
After using Collabora it seems that MS Office documents are not edited with correct police and format…
So copy all of your ttf fonts to /opt/collaboraoffice5.3/share/fonts/truetype
Success but I will try OnlyOffice…