NextCloud and OnlyOffice

I have a questionregarding the Nextcloud installation within DietPi:

Should the OnlyOffice-Integration work? In my case it doesn’t. I am running latest Dietpi on a Chrombox with X86.

For me it seems that the OnlyOffice integration needs another additional piece of software. Though in the nextcloud documentation they write:

Nextcloud All In One: Nextcloud Office comes preinstalled out of the box in the Nextcloud All In One setup and provides easy deployment and maintenance with most features included in this one Nextcloud instance.“”"

what for me listens like that OnlyOffice could be integrated…

And here I found a description with a list of to do’s to implement OnlyOffice → Installation example on Ubuntu 20.04 — Nextcloud latest Administration Manual latest documentation

what let me think, that the original installation does not include OnlyOffice °-)

My question is: Should OnlyOffice should work after dietpi-standard installation? and if YES, what could I do to configure it. If NO, it would be fine to rethink the text in “software-installation” like “NextCloud without OnlyOffice-Integration” … OR - what propably would be the best thing → redo the installation of NextCloud in that way, that the OnlyOffice installation works out from the box.

yours Karl

Hello, I think you mix up some things.

Nextcloud Office is a part of Nextcloud Hub – the one all go all for your work productivity needs. This entails Files, Office, Groupware and Talk. In the Hub, many other office suites are compatible, including ONLYOFFICE.


OnlyOffice for Nextcloud is not free, you can test it for free for 30 days, see:

What you want is probably just Nextcloud Office. At the first link they write:

Included are:
High performance backend for Nextcloud Files
Nextcloud Office (optional)

So you need to install Nextcloud Office and CODE server manually, like in any other default Nextcloud installation. You can do that simly via App manager.

Here is a tutorial for this:

Just went thru the nextcloud all in one docker install on my home elite desk box…per the video’s and the AIO screen OnlyOffice only works with X64 processors or above…won’t work on ARM…
the nextcloud “office suite” called Collabra works though

1 Like

I now de-installed nextcloud (with lighttpd) and installed it from scratch with apache. :slight_smile:
Then I installed those php-modules which the system claimed as missing. then I added the apps

  • Collabora Online - Built-in CODE Server
  • Nextcloud Office

i dit NOT activate "OnlyOffice " and “OfficeOnlineIntegration”

With these settings I can create/open a simple text-file (.md) and office documents… SO I am nearly satisfied.

Open are:
how can I enable https://
what must I do, to use an external USB drive to store data in my nextcloud instead on my internal SSD

thank you very much

here is a tutorial how to change data directory on a current installation:

ANd here how to enable SSL (assuming you already have generated certs with letsencrypt):

simply use dietpi-letsencrypt if you like to enable HTTPS support

and you can use dietpi-drive_manager to move the whole DietPi user data directory (which include NC data as well)

There is a hint within our online docs about the missing modules Cloud and Backup Systems Software Options - Docs

sorry for my stupid questions… but I can find this option… And as I am alreay within the setup process… is there a possibility to change the path for data during the installation?
I guess that 99% of all users use Dietpi on small devices with less diskspace… So beautifil unattended installations are… in that case it is a bit contraproductive. Or?
KR Karl

open dietpi-drive_manager > select your drive in question > check User data

yes, you can relocate dietpi user data all time.

you can configure location of NC data beforehand via dietpi.txt

my “NextCloud” is running in the living room on
For mail I have access to a hosted DNS there I created a new DNS entry ( ) which points to my private IP.

when I now run “dietpi-letsencrypt” I receive some error messages →

 Mode: Running Certbot

[  OK  ] DietPi-LetsEncrypt | Apache webserver detected
[  OK  ] DietPi-LetsEncrypt | Setting in /etc/apache2/sites-available/000-default.conf adjusted: 	ServerName 
[  OK  ] DietPi-LetsEncrypt | a2enmod http2
[  OK  ] DietPi-LetsEncrypt | systemctl restart apache2
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for

Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
  Type:   connection
  Detail: 84.1x.x.x: Fetching Error getting validation data

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

Some challenges have failed.
Ask for help or search for solutions at See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
[FAILED] DietPi-LetsEncrypt | Certbot failed, please check its above terminal output. 

I lov IT - but sometimes it is really complicated
KR Karl

you need to forward port 80/443 on your router to your DietPi system

is your Apache running on port 7777? LetsEncrypt will expect your system on port 80/443 as these are regular http ports.

My Apache (installation via Dietpi-Software) is normaly running on Port 80. But to gain access from outside and not tu use standard ports I defined 7777 which is the EXTERNAL port on my ADLS Router… it is of course forwarded to 80 internal. Should I change this?

You need to forward port 80, otherwise letsencrypt can not create and renew you certificate.
When you are already at this step you could also switch everything to port 80/443 and rewind the forwarded port 7777.

Yes, as stated by @Jappe, go with standard ports.

I am too silly… I found Youtube video in which they recommend NGINX Reverse Proxy Manager. Could this one make my life easier? And is it not in conflict with apache?
KR Karl

I think this is because is a webspace at my Internet-Provider. And I have access to a public DNS there… So I “invented” a subdomain ( and this one points at my private apache behind the router… So and are on complete different sites.

NPM will not change anything. It will require port 80/443 to be open and reachable from internet, same as Apache. And yes NPM is conflicting with Apache, means Apache need to be moved to a different port.

However both scenario are manageable.

Keep in min NPM requires additional system resources as it’s a docker container.

At least I managed it… Solution : although nextcloud is running on ip/nextcloud I only had to enter the domain name into th letsencrypt tool… Now I have this… super and thank you so much.

The last question is,if a kind or re-installation is possible to change the docs folder… Watching a Video witht a normal Nextcloud installation the systems asks for a place…
Perhaps it is possible tu re-run this procedure??

I use docker for my all in one version of nextcloud, and a cloudflare tunnel pointing at a google domains URL I setup and pay for (like $10~ a year [you could also use a dynamic DNS hosting site as well) ) that points back to my home IP…this way I don’t have to punch a hole in my firewall, but I still can use a valid URL externally and it’s always secure thru SSL

I used their wiki/howto (it took me a bit o’ tweaking, but finally got it working)
(I use docker because after fiddle farting around and learning it…I like it better than installing the apps bare metal)

1 Like

easiest way to have custom data directory, use this method

--env NEXTCLOUD_DATADIR="/mnt/ncdata"

Like I said, I like docker (but there is quite a bit o’ learning curve to it)

1 Like

you mean to reinstall the office app or whole NC instance?

a while ago I destroyed -by accident- an existing wordpress installation. And then I found that calling /configure.php leads you step by step through the steps of the first installation… This was very helpful :wink:

But I used scenario 2 from to move data and it worked excellent:

 1. sudo -u www-data php /path/to/nextcloud/occ maintenance:mode --on
 2. mkdir -p /new/path/to/data
 3. cp -a /path/to/data/. /new/path/to/data
 4. mv /path/to/data /path/to/dataBackup
 5. ln -s /new/path/to/data /path/to/data
 6. chown -h www-data:www-data /path/to/data # To set symlink ownership
 7. chown -R www-data:www-data /new/path/to/data # To set actual data dir ownership
 8. sudo -u www-data php /path/to/nextcloud/occ maintenance:mode --off

I am now already using my local Nextcloud… The only one concern is, that now the Ports 80 and 443 are open in my router. Of course there is a password to logon to nextcloud… but I am nor sure if I have a security issue now???