• 5

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

We have an Ubuntu Server 18.04 LTS machine running a Nextcloud instance on Apache via a Vhost. This Nextcloud installation is located at /var/www/nextcloud and only allows connecting via HTTPS on port 443: connections via HTTP on port 80 get automatically redirected thanks to the configuration setup by certbot-auto; hence, ports 80 and 443 are being listened on already by Apache.

We use Nextcloud for file sharing and collaboration. Since I wanted to allow users to edit documents directly (without downloading them, editing and reuploading), I decided to install the ONLYOFFICE Document Server, to integrate it into Nextcloud. Nextcloud only allows ONLYOFFICE integration if the server uses SSL (it prevents you from connecting if you type in an http:// address), so I set it up via Docker, to ease installation and to prevent conflicts between Apache and nginx.

Now, I chose 8080 as port for HTTP and 44380 as port for HTTPS, so I started the container with:

sudo docker run -i -t -d -p 8080:80 -p 44380:443 --restart=always -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data  onlyoffice/documentserver

I additionally created symlinks to my existant Let's Encrypt certificate and key, so when I renew them with certbot for Nextcloud, they also get renewed for ONLYOFFICE.

When I try to connect to http://[serveraddress]:8080 (where [serveraddress] is the address of my server), I correctly get shown this:

ONLYOFFICE Configuration Wizard

But when I connect to https://[serveraddress]:44380, my browser says it couldn't connect (check Internet connection, firewall, try to restart router etc.)

How do I diagnose and hopefully fix this issue?

If we understood it right, you want to use ONLYOFFICE Document Server to be able to edit your files from Nextcloud.

Now, I chose 8080 as port for HTTP and 44380 as port for HTTPS, so I started the container with:

docker run -i -t -d -p 8080:80 -p 44380:443 -v /opt/onlyoffice/Data/var/www/onlyoffice/Data onlyoffice/communityserver

First of all we can see that you installed ONLYOFFICE Community Server instead of the Document Server. Please follow this link to find an instruction on how to install Document Server with Docker.

You will also need to generate own SSL certificates for the Document Server to make it work on HTTPS. You can find the instruction in the same article above.

  • 0
Reply Report
      • 1
    • Hi! Welcome to SE. Could you please complete the answer with the relevant parts of the linked page? A mere link doesn't serve as an answer here, and precious information could easily be removed or URL may be modified, causing a broken link to take place.
      • 1
    • Please specify if you have installed ONLYOFFICE Document Server, as Community Server is another product, which does not have editors included.
    • yes. After running sudo docker run -i -t -d -p 44380:443 --resta rt=always -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffi ce/Data onlyoffice/documentserver

Trending Tags