Comments on How to connect ONLYOFFICE online editors to OwnCloud

This tutorial describes how to connect ONLYOFFICE document editors with an OwnCloud server by using the OwnCloud ONLYOFFICE integration app.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: peter

I moved from owncloud to nextcloud because of the persisting update problems of owncloud. Does this tutorial also work on Nextcloud?

By: till

The ONLYOFFICE plugin works with ownCloud only at the moment. But ONLYOFFICE is working on a plugin for Nextcloud.

By: Christian COMMARMOND

Hi, 

I had struggling for three days to get it running, mainly because no documentation other than with docker, but I do not use docker...

 

So I put here my findings (it may not be complete, but I think it may facilitate the job for others...):

 

I use a two servers configuration, plus one server for Pound (the reverse proxy, load-balancing...) which manage the https to http conversion and the certificates (only one certificate to manage).

 

I use Oracle EL7, updated to kernel 4.1.12-94 , I had to enable ol7_optional_latest and ol7_addons (maybe not both usefull, but...)

For OnlyOffice, I used:

https://helpcenter.onlyoffice.com/de/server/linux/document/linux-installation-centos.aspx

I disabled selinux, firewalld to ease the thing.

In /etc/nginx/nginx.conf:

Unchanged

 

For owncloud, I used:

https://www.linuxtricks.fr/wiki/installer-et-configurer-owncloud-sur-centos-7

But the installed php was 5.4, so I used https://www.howtoforge.com/tutorial/centos-lamp-server-apache-mysql-php/ (only the php 7.1 part).

In /etc/httpd/conf/httpd.conf

ServerAdmin [email protected]

ServerName owncloud.example.com:80

 

In /etc/httpd/conf.d/owncloud.conf:

should be unchanged.

Symbolic link to create:

ln -s /etc/httpd/conf.d/owncloud-access.conf.avail /etc/httpd/conf.d/z-owncloud-access.conf

 

In /var/lib/NetworkManager/dhclient-ens18.conf:

Check it has the good server name 

send host-name "owncloud";

 

 

Installation of the app for owncloud following https://github.com/ONLYOFFICE/onlyoffice-owncloud advice.

CAUTION: with php 5.4, the app appears as experimental and won't load... 

 

Then, in the apps parameters:

Document Editing Service address: https://www.example.com:8084/ (here is 8084, the external port, which is natted to 8000 in Pound)

Document Editing Service address for internal requests from the server: http://192.168.1.101:8000/ (The internal address and port, NO HTTPS, since we use Pound)

Server address for internal requests from the Document Editing Service: http://192.168.1.102/owncloud/ (The internal address of owncloud server NO HTTPS, since we use Pound)

 

I did not put secret password (yet?).

 

Pound:

The normal basic parameters for owncloud works.

 

Two blocks like this one to add (the one for port 8000 and one for 8080):

ListenHTTPS

     Address 192.168.1.100  # << address of pound server

     Port    8084   # NAT port (internal is 8000)

     Cert    "/etc/pound/certs/www.example.com"

Ciphers "ALL:!ADH:!EXPORT:!SSLv2:!aNULL:!eNULL:!3DES:!DES:!MD5:!PSK:!RC4:!DH:!LOW:+HIGH:+MEDIUM"

 

#   CheckURL   "(^\/|\.html|\.css|\.jpg|favicon\.ico|robots\.txt|\.png)$"

    HeadRemove "X-Forwarded-For"

    AddHeader  "X-Forwarded-Proto: https"

#   MaxRequest 1024

   xHTTP       4  # << important

 

   Err414 "/var/www/htdocs/error/generic_error_page"

   Err500 "/var/www/htdocs/error/generic_error_page"

   Err501 "/var/www/htdocs/error/generic_error_page"

   Err503 "/var/www/htdocs/error/generic_error_page"

 

# onlyoffice server

   Service

      HeadRequire "Host:*.www.example.com.*"

#      URL         "^\/\/*"  # No URL, we just filter by port

      BackEnd

         Address  192.168.1.101   # << address of onlyOffice server

         Port     8000

      End

      Emergency

       Address    127.0.0.1

       Port       8888

      End

   End

End

 

OTHER:

I had to route the ports 8084 and 8085 to my pound server.

Since I had numerous problems, and no documentation to explain anything (but for experts), I touched a lot of config files, but probably 

Christian