Install ONLYOFFICE on a Nextcloud Server

Forum home -> Website comment topics -> View topic

News: Install ONLYOFFICE on a Nextcloud Server

  • Posted December 22nd 2019, 12:29 AM

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.
Glad to hear this was useful to you! It makes sense that Ubuntu would have less hiccups, since it probably gets tested more by the ONLYOFFICE developers. "dpkg –configure -a" will return without giving any output if all of the packages on your system are properly configured.

For anyone else reading, the "DDclient.conf" file you're mentioning is a configuration file for a client used to update dynamic DNS services. Anyone with a static IP address wouldn't need to worry about that. I've considered using a dynamic DNS service to host a server in my apartment, and I might be doing that by now if I was still in my previous apartment, but my current one's a little too small to have another 24/7 machine running.
1 guest and 0 members have just viewed this.