Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
onlyoffice [2019/03/14 10:51]
Markus Neuberger [Install nodejs repo]
onlyoffice [2020/04/30 10:14] (current)
Markus Neuberger
Line 8: Line 8:
 =====Description===== =====Description=====
  
-[[https://​helpcenter.onlyoffice.com/​server/​document.aspx|Onlyoffice document server]] is an open document editing server. It's used in Nextcloud ​via an app to edit office documents. You need to install Nextcloud from Software Center to make this module work. +[[https://​helpcenter.onlyoffice.com/​server/​document.aspx|Onlyoffice document server]] is an open document editing server. It's used in Nextcloud ​or Webtop ​to edit office documents. You need to install Nextcloud ​or Webtop ​from Software Center to make this module work. 
-[[nginx|Nethserver-nginx]] is installed as requirement. Self-signed certs are possible ​now (thanks to kizotux and flatspin).+[[nginx|Nethserver-nginx]] is installed as requirement. Self-signed certs are possible ​in Nextcloud ​(thanks to kizotux and flatspin) ​for test environments.
  
 =====Firewall settings===== =====Firewall settings=====
  
-Onlyoffice documentserver needs port 8082 to be reachable.+Onlyoffice documentserver needs port 8082 to be reachable. Just edit fw_onlyoffice access in services. It opens red and green by default.
  
 =====Quick install===== =====Quick install=====
  
-  ​yum -y install https://​mrmarkuz.goip.de/​mirror/​mrmarkuz/​7/​noarch/​nethserver-mrmarkuz-0.0.1-3.ns7.noarch.rpm +Install Nextcloud or Webtop first to be able to use Onlyoffice. 
-  yum -y install nethserver-nextcloud + 
-  curl -sL https://​rpm.nodesource.com/​setup_8.x | sudo bash -+  ​yum -y install https://​mrmarkuz.dynu.net/​mirror/​mrmarkuz/​7/​noarch/​nethserver-mrmarkuz-0.0.1-4.ns7.noarch.rpm
   yum -y install https://​downloads.sourceforge.net/​project/​mscorefonts2/​rpms/​msttcore-fonts-installer-2.6-1.noarch.rpm   yum -y install https://​downloads.sourceforge.net/​project/​mscorefonts2/​rpms/​msttcore-fonts-installer-2.6-1.noarch.rpm
-  yum -y install https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-5.2.8/​onlyoffice-documentserver.x86_64.rpm +  yum -y install https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-5.5.1/​onlyoffice-documentserver.x86_64.rpm 
-  yum -y install nethserver-onlyoffice+  yum -y install nethserver-onlyoffice ​--enablerepo=mrmarkuz
  
 =====Installation===== =====Installation=====
Line 30: Line 30:
 [[mrmarkuz_repository|mrmarkuz repo]] is required for installation/​updates. [[mrmarkuz_repository|mrmarkuz repo]] is required for installation/​updates.
  
-====Install Nextcloud====+====Install Nextcloud ​or Webtop====
  
-You have to install Nextcloud from Software Center or via command line to use onlyoffice:+You have to install Nextcloud ​or Webtop ​from Software Center or via command line to actually ​use onlyoffice:
  
   yum -y install nethserver-nextcloud   yum -y install nethserver-nextcloud
 +  yum -y install nethserver-webtop5
  
 +In Webtop the documentserver does not work with the internal Webtop admin user.
 ====Install nodejs repo==== ====Install nodejs repo====
  
 +Starting from documentserver 5.5.0 nodejs is not required anymore.
 Be careful as this step adds a repository that provides newer versions of nodejs that replaces the nodejs provided by centos which may lead to problems. I am working on nvm integration to not touch system packages. Be careful as this step adds a repository that provides newer versions of nodejs that replaces the nodejs provided by centos which may lead to problems. I am working on nvm integration to not touch system packages.
  
-  curl -sL https://​rpm.nodesource.com/​setup_8.x | sudo bash -+  curl -sL https://​rpm.nodesource.com/​setup_10.x | sudo bash -
  
 ====Install Fonts (optional)==== ====Install Fonts (optional)====
Line 48: Line 51:
 ====Install OnlyOffice DocumentServer==== ====Install OnlyOffice DocumentServer====
  
-Actual version is 5.2.8.+Actual version is 5.5.1.
  
-  yum -y install https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-5.2.8/​onlyoffice-documentserver.x86_64.rpm+  yum -y install https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-5.5.1/​onlyoffice-documentserver.x86_64.rpm
  
-===DocumentServer 5.0.7===+===DocumentServer 5.4.2 - Last Documentserver with mobile editing enabled=== 
 + 
 +  yum -y install https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-5.4.2/​onlyoffice-documentserver.x86_64.rpm 
 + 
 +===DocumentServer 5.0.7 - deprecated===
  
 For DocumentServer 5.0.7 you need to install librabbitmq(-tools) because it's not available in epel anymore, thanks to Flatspin for solving this issue. For DocumentServer 5.0.7 you need to install librabbitmq(-tools) because it's not available in epel anymore, thanks to Flatspin for solving this issue.
Line 58: Line 65:
   yum -y install http://​springdale.math.ias.edu/​data/​puias/​unsupported/​7/​x86_64/​librabbitmq-0.5.2-1.sdl7.x86_64.rpm   yum -y install http://​springdale.math.ias.edu/​data/​puias/​unsupported/​7/​x86_64/​librabbitmq-0.5.2-1.sdl7.x86_64.rpm
   yum -y install http://​springdale.math.ias.edu/​data/​puias/​unsupported/​7/​x86_64/​librabbitmq-tools-0.5.2-1.sdl7.x86_64.rpm   yum -y install http://​springdale.math.ias.edu/​data/​puias/​unsupported/​7/​x86_64/​librabbitmq-tools-0.5.2-1.sdl7.x86_64.rpm
- +  ​ 
-  yum -y install https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-5.0.7/​onlyoffice-documentserver.x86_64.rpm +===Downgrade ​example ​to 5.4.2===
- +
-===Downgrade to 5.0.7===+
  
 To downgrade just use To downgrade just use
  
-  yum downgrade https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-5.0.7/​onlyoffice-documentserver.x86_64.rpm+  yum downgrade https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-5.4.2/​onlyoffice-documentserver.x86_64.rpm
   ​   ​
   https://​community.nethserver.org/​t/​howto-install-onlyoffice-document-server-as-nextcloud-app/​8662/​113   https://​community.nethserver.org/​t/​howto-install-onlyoffice-document-server-as-nextcloud-app/​8662/​113
Line 73: Line 78:
 To upgrade an existing installation of documentserver issue: To upgrade an existing installation of documentserver issue:
  
-  yum upgrade https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-5.2.x/​onlyoffice-documentserver.x86_64.rpm+  yum upgrade https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-x.x.x/​onlyoffice-documentserver.x86_64.rpm
  
-Where '5.2.x' would be the actual version you want to install. For an overview of available versions, please see: https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​+where 'x.x.x' would be the actual version you want to install. For an overview of available versions, please see: https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​
  
-====NethServer-onlyoffice====+====Install ​NethServer-onlyoffice====
  
 Install nethserver-onlyoffice:​ Install nethserver-onlyoffice:​
  
-  yum -y install nethserver-onlyoffice+  yum -y install nethserver-onlyoffice ​--enablerepo=mrmarkuz
   ​   ​
 ====Nextcloud Addon configuration==== ====Nextcloud Addon configuration====
Line 99: Line 104:
   config setprop fw_onlyoffice RejectUnauthorized false   config setprop fw_onlyoffice RejectUnauthorized false
   ​   ​
-For internal use only (without opening port 8082 to the public) you have to set the local IP: 
- 
-  config setprop fw_onlyoffice host 1.2.3.4 
- 
 Apply the changes: Apply the changes:
   ​   ​
Line 126: Line 127:
  
 ====Something'​s not working==== ====Something'​s not working====
- 
-=== Documentserver version >= 5.2 === 
- 
-In newer versions you'll need to apply the following fix. I think about a module rewrite and hope to release a new version soon. 
- 
-https://​community.nethserver.org/​t/​howto-install-onlyoffice-document-server-as-nextcloud-app/​8662/​122?​u=mrmarkuz 
- 
-===nodejs 6 from epel installed so nodejs 8 is not installing from repo=== 
- 
-You have to remove the epel nodejs which removes onlyoffice-documentserver too. 
- 
-  yum remove nodejs 
-  ​ 
-Now you have to reinstall onlyoffice-documentserver. 
  
 ===Save button=== ===Save button===
Line 147: Line 134:
 ===Reinstall=== ===Reinstall===
  
-If you downgraded/​upgraded it may help to reinstall, just replace {VERSION} with 5.0.for example:+If you downgraded/​upgraded it may help to reinstall, just replace {VERSION} with 5.4.0-2 for example:
  
   yum -y reinstall https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-{VERSION}/​onlyoffice-documentserver.x86_64.rpm   yum -y reinstall https://​github.com/​ONLYOFFICE/​DocumentServer/​releases/​download/​ONLYOFFICE-DocumentServer-{VERSION}/​onlyoffice-documentserver.x86_64.rpm
Line 157: Line 144:
   su - postgres -c "psql -c 'drop database onlyoffice;'"​   su - postgres -c "psql -c 'drop database onlyoffice;'"​
   signal-event nethserver-onlyoffice-update   signal-event nethserver-onlyoffice-update
 +  ​
 +===nodejs 6 from epel installed so nodejs 8 is not installing from repo===
 +
 +You have to remove the epel nodejs which removes onlyoffice-documentserver too.
 +
 +  yum remove nodejs
 +  ​
 +Now you have to reinstall onlyoffice-documentserver.
 +
 ===== Issues ===== ===== Issues =====