This guide will show you how to install Document Server Linux version to your machine.

System requirements

CPU

dual core 2 GHz or better

RAM

2 GB or more

HDD

at least 40 GB of free space

Additional Requirements

at least 2 GB of swap

OS

64-bit Debian, Ubuntu or other compatible distribution with kernel version 3.13 or later

Additional Requirements

PostgreSQL: version 9.1 or later

NGINX: version 1.3.13 or later

Node.js: version 8.12.0

libstdc++6: version 4.8.4 or later

Redis

RabbitMQ

Installing Document Server

Installation with Debian based distributives also requires the presence of Node.js (version 8.12.0), libstdc++6, NGINX and PostgreSQL in the system.

All the necessary instrutions for these components and their dependencies installation can be found at their official websites.

There are other dependencies installed together with Document Server:

libcurl3

libxml2

supervisor

fonts-dejavu

fonts-liberation

ttf-mscorefonts-installer

fonts-crosextra-carlito

fonts-takao-gothic

fonts-opensymbol

These dependencies are installed automatically when you use Ubuntu 14.04 LTS or later. Earlier distributives might require their manual installation.

Installing dependencies

Document Server uses Node.js (version 8.12.0), NGINX and PostgreSQL as database. Dependencies found in the system repository will be installed automatically at Document Server installation using the apt-get install command.

While the APT package is built against Debian Squeeze, it is compatible with a number of Debian derivatives (including Ubuntu) which means you can use the same repository across all these distributions.

Update the package manager cache:

sudo apt-get update

Install Document Server

sudo apt-get install onlyoffice-documentserver

sudo apt-get install onlyoffice-documentserver

sudo apt-get install onlyoffice-documentserver-ie

sudo apt-get install onlyoffice-documentserver-de

During the installation process, you will be asked to provide a password for the onlyoffice PostgreSQL user. Please enter the onlyoffice password that you have specified when configuring PostgreSQL.

After that Document Server will be run as a process. The package will be updated just like any other deb package.

Now you can enter http://localhost in your browser address bar to open the Document Server welcome page where you will find further instructions on how to enable document examples or integrate online editors into your web application using the provided API.

Rebuilding spellchecker (Ubuntu 18.04)

For the spellchecker to work correctly under Ubuntu 18.04 you will need to rebuild it. This is done the following way:

Update npm:

sudo npm install -g npm

Stop Document Server services:

sudo supervisorctl stop all

Install the components necessary for the build:

sudo apt-get install build-essential git

Switch to the spellchecker folder:

cd /var/www/onlyoffice/documentserver/server/SpellChecker/

Delete the older build:

sudo mv node_modules/ node_modules_old/

Install the dependencies:

sudo npm install

And finally start back Document Server services:

sudo supervisorctl start all

Running Document Server using HTTPS

In most cases accessing the portal via HTTPS protocol is much more secure than via HTTP which is used by default. You can easily run Document Server using secure connection. Please see the details here to learn more on how this can be done.