Installing ONLYOFFICE Docs Community Edition on Linux using the provided script

Introduction

Community Edition lets you install ONLYOFFICE Docs on your local server and integrate the online editors with the ONLYOFFICE collaboration platform or other popular systems (see the detailed list of features). This guide shows you how to install it using the provided automatic script, which sets up a Docker container with all the required components; alternatively, you can run the same script and choose to install from RPM/DEB packages.

System requirements
  • CPU: dual core 2 GHz or better
  • RAM: at least 2 GB, but depends on the host OS. More is better
  • HDD: at least 40 GB of free space
  • SWAP: at least 4 GB, but depends on the host OS. More is better
  • OS: 64-bit Debian, Ubuntu or other compatible distribution with kernel version 3.13 or later

Getting ONLYOFFICE Docs script

Download ONLYOFFICE Docs Community Edition Docker script file:

curl -O https://download.onlyoffice.com/docs/docs-install.sh

Once the download is finished, you can start the installation process.

Installing ONLYOFFICE Docs

Please note that all installation actions must be performed with root rights.

To install ONLYOFFICE Docs Community Edition, run the following command:

bash docs-install.sh

You will be prompted to select the installation method:

  • Type Y and press Enter to install ONLYOFFICE Docs using Docker.
  • Type N and press Enter to install ONLYOFFICE Docs from DEB/RPM packages.

After installation, enter http://localhost in your browser address bar to open the ONLYOFFICE Docs 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.

Installing ONLYOFFICE Docs with script parameters

You might need to run the script specifying some additional parameters, for example, if you want to install ONLYOFFICE Docs on a specific port.

To display the list of all available script parameters, use the following command:

bash docs-install.sh -h

Below are some examples of how to perform certain tasks using script parameters.

To install ONLYOFFICE Docs on a certain port, use the -dp parameter. By default, port 80 is used.

bash docs-install.sh -dp 8080

To install ONLYOFFICE Docs from a certain Docker image stored in the repository, use the -di parameter.

bash docs-install.sh -di onlyoffice/documentserver

To install a certain version of ONLYOFFICE Docs, use the -dv parameter. If this parameter is omitted, the latest version available in the repository will be installed.

A certain version can be installed if you select installation with Docker. If you select installation from DEB/RPM packages, the latest version will be installed.
bash docs-install.sh -dv 9.4.0

To update ONLYOFFICE Docs, use the -u parameter specifying the true value.

bash docs-install.sh -u true

Installing ONLYOFFICE Docs as a part of ONLYOFFICE Workspace

ONLYOFFICE Docs is a part of ONLYOFFICE Workspace that comprises also ONLYOFFICE Community Server, ONLYOFFICE Control Panel and ONLYOFFICE Mail. In case you want to install all of them using the script, read these instructions.

Article with the tag:
Browse all tags