Install ONLYOFFICE on a Nextcloud Server

  • 204 views. Added .

Here's a step-by-step tutorial for installing ONLYOFFICE Community Edition alongside an existing Nextcloud installation! You can copy/paste the commands in this video from here:

Need a server? Get one at or Need a domain name? Get one at

Comments (log in to post)

Thanks Jacob!  This is a very thorough and excellent tutorial!  This is a game changer and I just totally dropped Google office today.

I’ve been a long time Nextcloud user and previously Owncloud.  I have a Intel Nuc running Ubuntu 18.04 with version 16.08 Nextcloud.

For those using Ubuntu instead of Debian, I thought that I would post a few tips showing the differences:

STEP 0:  This may be obvious to most, but all these steps must be run as superuser.  To help you NOOBS out there, run this command first to be a superuser:   sudo su –

STEP 3:  No need to change this command even though it points to a Debian release of OnlyOffice.  The correct version is automatically downloaded from the Ubuntu repository.

STEP 7:  The install does not fail as noted in the video. The Ubuntu version does not show errors.  However, still proceed to step 8.

STEP 8:  The file is not in the “sites-enabled” directory.  It can be found in the “sites-available” directory.  Do not move the file.  I moved the file and then completed the install.  Everything worked until I powered down my server and restarted.  Nginx did not restart since the file was not in the expected location.  It took me a while to figure out why Nginx didn’t start.  So keep the file in its original directlory. The new command is:

nano /etc/nginx/sites-available/default

I still ran the command “dpkg –configure –a”,but since step 7 didn’t fail, the command seems unnecessary.

STEP 9:  My version of Nextcloud had a different conf file name so the command is slightly different:

cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/onlyoffice.conf

Step 11:  The spellchecker works fine for the Ubuntu version.  You can skip this step.

Et Voila!  You’re finished.

Also, don’t forget to update your DDclient.conf file to update your new subdomain IP address for only office.  Otherwise, if your ISP changes your IP address, your OnlyOffice subdomain will not be available.