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:37] – [Enable the OnlyOffice Connector app and Configure it] 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 1886: 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 =====  
  
-I would be concerned that they would conflict with one another as to which would be able to edit documents, spreadsheets and presentations. +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).  
 + 
 + 
  
  
Line 1899: Line 1903:
 Enter the domain name you inserted to the Apache OnlyOffice Virtual Host File. Enter the domain name you inserted to the Apache OnlyOffice Virtual Host File.
  
-Enter the OnlyOffice Secret Password that you set above, or copied from the auto-generated password located in the local.json file in the following path:+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:
  
-  /etc/onlyoffice/documentserver/local.json 
  
-Save the configuration and All should be working.+<code> 
 +/etc/onlyoffice/documentserver/local.json 
 +</code> 
 + 
 +Save the OnlyOffice Connector configuration and All should be working.
  
  
install_onlyoffice_nextcloud_same_ubuntu_server.1688546231.txt.gz · Last modified: 2023/07/05 08:37 by wikiadmin