install_onlyoffice_nextcloud_same_ubuntu_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
install_onlyoffice_nextcloud_same_ubuntu_server [2023/07/05 08:23] – [Install OnlyOffice Document Server] wikiadmininstall_onlyoffice_nextcloud_same_ubuntu_server [2023/07/05 09:12] (current) – [Install ONLYOFFICE for Nextcloud on the same Ubuntu Server] wikiadmin
Line 1: Line 1:
 ====== Install ONLYOFFICE for Nextcloud on the same Ubuntu Server ====== ====== Install ONLYOFFICE for Nextcloud on the same Ubuntu Server ======
  
-**CAUTION:  THIS ARTICLE IS NOT ARRANGED IN PROPER ORDER.  PLEASE WAIT UNTIL THIS ARTICLE IS REARRANGED AND THIS WARNING IS REMOVED BEFORE USING THIS ARTICLE TO INSTALL ONLYOFFICE DOCUMENT SERVER.**+This Article applies to installing OnlyOffice docs on Ubuntu 22.04 LTS along side of NextCloud 27.0.0 with NextCloud being served via Apache2 webserver with SSL on port 443 and OnlyOffice being hosted from Nginx webserver on non-standard port 81, plus Apache2 being configured to proxy the OnlyOffice app from port 81 on Nginx to port 80 on Apache2 (and eventually port 443 on Apache2).  Both the NextCloud Apache Virtual Host and the OnlyOffice Apache Virtual Host configurations will each have letsencrypt SSL certificates for their respective domains or subdomains, thus generating a separate Apache virtual host SSL.conf file for each subdomain which shall each be served by Apache on TCP Port 443.  Nginx merely hosts and serves the OnlyOffice application (the OnlyOffice app) via TCP port 81 and does not need to operate with encryption and decryption via SSL certificates for the following reasons. With the Apache virtual host accessing the Nginx-hosted OnlyOffice App on localhost at port 81 and "proxying" OnlyOffice to the internet through Apache on port 443 with SSL certificate configured on the Apache virtual host ssl.conf configured for the separate OnlyOffice domain (or subdomain), there is no need to obtain an SSL certificate to bind on Nginx.
  
 +**This article assumes that the apache2 webserver, php 8.1, MySQL, and NextCloud are properly installed, configured and enabled**  The following prerequisites are also needed to install and configure OnlyOffice Document Server.  Nginx webserver will be installed later in the following list.
  
-This Article applies to installing OnlyOffice docs on Ubuntu 22.04 LTS along side of NextCloud 27.0.0 with NextCloud being served via Apache2 webserver with SSL on port 443 and OnlyOffice being hosted from Nginx webserver on non-standard port 81, plus Apache2 being configured to proxy the OnlyOffice app from port 81 on Nginx to port 80 on Apache2.  Both the NextCloud Apache Virtual Host  and the OnlyOffice Apache Virtual Host configurations will each have letsencrypt SSL certificates for their respective domains or subdomains, thus generating a separate Apache virtual host SSL.conf file for each subdomain served on TCP Port 443.  Nginx merely serves the OnlyOffice application via TCP port 81 and does not need to operate with encryption and decryption via SSL certificates for the following reasons. With the Apache virtual accessing the Nginx-hosted OnlyOffice App on port 81 and "proxying" OnlyOffice to the internet from Apache on port 443 with SSL certificate configured on the Apache virtual host ssl.conf of the separate OnlyOffice domain, there is no need to obtain an SSL certificate to bind on Nginx. 
  
 ===== Requirements and Dependencies: ===== ===== Requirements and Dependencies: =====
Line 76: Line 76:
 </code> </code>
  
-===== Add the OnlyOffice Repository (if necessary) =====+===== Add the OnlyOffice Repository =====
  
 Note that the latest package version of OnlyOffice Document Server may already reside in the Ubuntu repository serving Ubuntu 22.04 LTS.  Note that the latest package version of OnlyOffice Document Server may already reside in the Ubuntu repository serving Ubuntu 22.04 LTS. 
Line 82: Line 82:
 However, at the time this article was posted, **this separate OnlyOffice repository must be installed for package installer to find it.** And, Ubuntu Squeeze version (continues to be labeled as such) should contain the latest package that will work with ubuntu jammy version. However, at the time this article was posted, **this separate OnlyOffice repository must be installed for package installer to find it.** And, Ubuntu Squeeze version (continues to be labeled as such) should contain the latest package that will work with ubuntu jammy version.
  
-Install this OnlyOffice Repository.+**Install this OnlyOffice Repository.**
  
 <code> <code>
Line 889: Line 889:
 =====  Install OnlyOffice ===== =====  Install OnlyOffice =====
  
-Install the ONLYOFFICE package.  Recall that we did or skipped installing the onlyoffice repository above because ubuntu's repository may have the latest version of onlyoffice document server.+If we skipped installing the onlyoffice repository above (because it is possible that Ubuntu's repository may have the latest version of onlyoffice document server, then we may need to go back and install the onlyoffice repository if we get the error shown below. 
 + 
 +Install the OnlyOffice package
  
 <code> <code>
Line 895: Line 897:
 </code> </code>
  
-The following error, so let's go back and install the onlyoffice repository.+Again, if we get the following error, then let's go back and install the onlyoffice repository.
  
 <code> <code>
Line 1884: Line 1886:
 </code> </code>
  
-===== Inside NextCloud Admin, Disable the Collabora CODE app local installation and NextCloud Office app before enabling the OnlyOffice Connector app =====  +===== While logged into NextCloud as an Admin, Disable the "Collabora CODE local installation" app and the "NextCloud Officeapp before enabling the OnlyOffice Connector app =====   
 + 
 +Collabora is pre-installed and enabled when you install NextCloud 27.0.0 
 + 
 +I would be concerned that Collabora and OnlyOffice Docs would conflict with one another as to which would be able to edit documents, spreadsheets and presentations. So, log into Nextcloud as an admin user and Disable Collabora CODE Local Installations, and also disable the NextCloud Office app (which seems to be the Colabora connector).  
 + 
 +  
 + 
 + 
 +===== Enable the OnlyOffice Connector app and Configure it ===== 
 + 
 +Enable the OnlyOffice Connector from within NextCloud.  Find Apps. Find OnlyOffice Connector, and click the Enable button. 
 + 
 +Then, under Administration, find and select ONLYOFFICE and configure it. 
 + 
 +Enter the domain name you inserted to the Apache OnlyOffice Virtual Host File. 
 + 
 +Enter the OnlyOffice Secret Password that you set above for the OnlyOffice Connector, or the auto-generated secret password that you copied, located in the local.json file in the following path: 
 + 
 + 
 +<code> 
 +/etc/onlyoffice/documentserver/local.json 
 +</code> 
 + 
 +Save the OnlyOffice Connector configuration and All should be working.
  
-I would be concerned that they would conflict with one another as to which would be able to edit documents, spreadsheets and presentations.  
  
install_onlyoffice_nextcloud_same_ubuntu_server.1688545386.txt.gz · Last modified: 2023/07/05 08:23 by wikiadmin