Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set up OnlyOffice on Nextcloud

Only Office Github Snap Page

  1. Install Only Office:

snap install onlyoffice-ds

2. If installed on the same server as Nextcloud, change port

snap set onlyoffice-ds onlyoffice.ds-port=8888

3. Generate SSL Certificate and PEM file

cd /var/snap/onlyoffice-ds/current/var/www/onlyoffice/Data/certs

# Generate Key
openssl genrsa -out onlyoffice.key 4096
# Request CSR
openssl req -new -key onlyoffice.key -out onlyoffice.csr
# Sign Certificate
openssl x509 -req -days 3650 -in onlyoffice.csr -signkey onlyoffice.key -out onlyoffice.crt
# Create PEM file
cat onlyoffice.key onlyoffice.crt > onlyoffice.pem
# Restart Service
snap restart onlyoffice-ds

4. Change SSL Port

5. Allow document server to use unauthorized storage

6. Open Firewall port

  1. Test Link - If you see the following page, it works

  2. In nextcloud install & enable OnlyOffice

  3. From Settings navigate to OnlyOffice and set up the parameters as follows

Last updated