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
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:30] (current) – [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>
 +
 +A Nginx server block will be installed as /etc/nginx/conf.d/ds.conf. (It’s actually a symbolic link to /etc/onlyoffice/documentserver/nginx/ds.conf.) The OnlyOffice document server is a nodejs web application and Nginx acts as the reverse proxy.  /var/www/onlyoffice/documentserver/ is the web root directory.
 +
 +Once the installation is finished, enter your server’s public IP address in web browser, you should see “Document Server is running”
  
install-only-office-document-server-on-ubuntu.1591846808.txt.gz · Last modified: 2020/06/11 03:40 by wikiadmin