Install Config Wiki

All about installing, configuring and troubleshooting

User Tools

Site Tools


install-only-office-document-server-on-ubuntu

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
Last revisionBoth sides next revision
install-only-office-document-server-on-ubuntu [2020/06/11 03:40] – [Preequites to OnlyOffice Document Server Community Edition] wikiadmininstall-only-office-document-server-on-ubuntu [2020/06/11 04:27] – [Install OnlyOffice document server] wikiadmin
Line 23: Line 23:
  
 <code>sudo -i -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"</code> <code>sudo -i -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"</code>
 +
 +===== Install NodeJS =====
 +
 +OnlyOffice document server requires nodejs version 8.12.0+, but the version in Ubuntu repository is outdated, so we will need to install the latest LTS version (12.13.1) of Node.js from upstream repository.
 +
 +==== Add Node.js repostiory ====
 +
 +
 +<code>curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -</code>
 +
 +**Install Node.js.**
 +
 +<code>sudo apt install nodejs -y</code>
 +
 +**Check Node.js version.**
 +
 +<code>node -v</code>
 +
 +**Sample output:**
 +
 +<QUOTE>v12.18.0</QUOTE>
 +
 +Install Redis server and Rabbitmq
 +
 +<code>sudo apt install redis-server rabbitmq-server</code>
 +
 +Check their status.
 +
 +<code>systemctl status redis-server
 +
 +systemctl status rabbitmq-server</code>
 +
 +Status should show these are active (running).  If rabbitmq-server failed to start, that’s mostly because of low memory on the machine or invalid hostname. Redis server listens on 127.0.0.1:6379. RabbitMQ listens on 0.0.0.0:25672 and 0.0.0.0:4369
 +
 +====== Install OnlyOffice document server ======
 +
 +**Add OnlyOffice repository with the following command.**
 +
 +<code>echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list
 +</code>
 +
 +**Import OnlyOffice public key.**
 +
 +<code>sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 </code>
 +
 +
 +Update local package index and install OnlyOffice document server. Note that the onlyoffice-documentserver package will install nginx-extras as a dependency, so if an Apache web server is running, you need to stop it first.
 +
 +<code>
 +sudo apt update
 +
 +sudo apt install onlyoffice-documentserver
 +</code>
 +
 +During the installation process, you will be asked to enter PostgreSQL password for onlyoffice. Enter the password: 
 +
 +<code>onlyoffice</code>
 +
 +
  
install-only-office-document-server-on-ubuntu.txt · Last modified: 2020/06/11 04:30 by wikiadmin