Linux Tactic

Streamline Your Office Needs: Install OnlyOffice Docs on RHEL/CentOS

Installing OnlyOffice Docs on RHEL/CentOS: A Step-by-Step Guide

Are you tired of using multiple software applications to fulfill all of your office needs? Look no further than OnlyOffice Docs, a versatile and efficient office suite that can tackle word processing, spreadsheet management, and more.

In this article, we will provide a step-by-step guide to installing OnlyOffice Docs on RHEL/CentOS.

Required Dependencies

Before diving into the installation process, let’s take a look at the dependencies required for OnlyOffice Docs to function at its best. It needs a CPU with a 64-bit architecture, at least 2GB of RAM, 2GB of free HDD space, and a swap space of at least 2GB.

In addition, you will need a PostgreSQL database, NGINX web server, and RabbitMQ message broker.

Version 7.2: What’s New?

OnlyOffice has released version 7.2, which comes with several new features, UI improvements, new languages, interface themes, ligatures, interactive fields, hotkeys, OLE spreadsheets, and a plugin manager. Let’s explore some of these features in more detail.

New Features

OnlyOffice Docs now allows users to create and edit interactive PDFs, which can be easily shared with others. It also offers the ability to hide/show comments in documents.

UI Improvements

The user interface has been streamlined to make it more intuitive and user-friendly. It now offers a sidebar that displays all the available tools for easier access.

Additionally, a new toolbar has been added that pops up when users select text, providing shortcuts to commonly used functions.

New Languages and Interface Themes

OnlyOffice Docs now supports additional languages, including Serbian, Lithuanian, and Romanian. Users can also choose from a variety of interface themes to personalize their experience.

Ligatures and Interactive Fields

OnlyOffice Docs has added ligatures, which combine two or more letters into a single character, for a more elegant and professional appearance. Interactive fields have also been added to allow users to fill out forms with ease.


Hotkeys have been improved, allowing for quicker navigation and a more efficient workflow.

OLE Spreadsheets

The OLE spreadsheet function has been added to allow users to embed Excel spreadsheets in other documents.

Plugin Manager

Finally, a plugin manager has been added to OnlyOffice Docs, allowing users to customize their experience by adding and removing features as desired.

Installing the

Required Dependencies

Now that we have covered the features and benefits of OnlyOffice Docs, it is time to install the required dependencies to ensure smooth operation.

Here are some easy-to-follow steps.

Installing NGINX

First, we will install NGINX. This can be done by adding the NGINX repository to your system, which can be done by running the following command:

sudo yum install epel-release

sudo yum install

You can now install NGINX by running the following command:

sudo yum install nginx

You can check that it is installed correctly by running:

sudo systemctl status nginx

Installing the EPEL repository

Next, we will install the EPEL repository. This provides additional packages that are not normally available in the standard RHEL/CentOS repositories.

You can install it by running:

sudo yum install epel-release

Installing and Configuring PostgreSQL

We will need to install PostgreSQL, a powerful and reliable relational database management system. First, install it by typing:

sudo yum install postgresql-server

Initialize the database by running:

sudo postgresql-setup initdb

Start the database and enable it to start automatically on boot by running:

sudo systemctl start postgresql

sudo systemctl enable postgresql

We will now create a database and a user. Connect to the PostgreSQL server by running:

sudo su – postgres


Create a database by running:

createdb onlyoffice

Create a user and password by running:

CREATE USER onlyoffice WITH PASSWORD ‘password’;

ALTER ROLE onlyoffice SET client_encoding TO ‘utf8’;

ALTER ROLE onlyoffice SET default_transaction_isolation TO ‘read committed’;

ALTER ROLE onlyoffice SET timezone TO ‘UTC’;



Installing RabbitMQ

Finally, we will install RabbitMQ, which is a message broker that enables the communication between the different components of OnlyOffice Docs. You can install it by running:

sudo yum install rabbitmq-server

Start the RabbitMQ service and enable it to start automatically on boot by running:

sudo systemctl start rabbitmq-server

sudo systemctl enable rabbitmq-server

Installing mscorefonts

Your system may not come with Microsoft core fonts, which are required by OnlyOffice Docs. You can install them by running:

sudo yum install cabextract xorg-x11-font-utils fontconfig

sudo rpm -ivh

sudo /usr/bin/msttcore_fonts_update_local


If you have followed the above steps, you should now have a fully functioning OnlyOffice Docs installation. This powerful office suite comes packed with features and is an excellent alternative to traditional office software.

We hope this guide has been helpful to you and has made the installation process a bit easier.


Installing ONLYOFFICE Docs

Are you ready to install ONLYOFFICE Docs and take advantage of its powerful features? In this section, we will cover the process of adding the ONLYOFFICE Docs repository, installing it along with dependent services, and changing the default port for ONLYOFFICE Docs.

Adding the ONLYOFFICE Docs Repository

The ONLYOFFICE Docs repository contains the installation files for ONLYOFFICE Docs. To add this repository to your system, follow these steps:


Open the terminal and switch to the root user:


sudo su


2. Add the ONLYOFFICE Docs repository GPG key:



rpm –import onlyoffice.key



Add the ONLYOFFICE Docs repository:


echo “[onlyoffice]

name=ONLYOFFICE DocumentServer



enabled=1″ >> /etc/yum.repos.d/onlyoffice.repo


This will add the ONLYOFFICE Docs repository to your system.

Installing ONLYOFFICE Docs

Now that the ONLYOFFICE Docs repository is added, you can proceed with the installation. The ONLYOFFICE Docs package is called ‘ONLYOFFICE-documentserver’.

To install it along with dependent services, follow these steps:

1. Update your system packages:


yum update



Install ONLYOFFICE Docs:


yum install ONLYOFFICE-documentserver


This will install the ONLYOFFICE Docs package along with all dependent services.

Changing the Default Port for ONLYOFFICE Docs

By default, ONLYOFFICE Docs runs on port 80. If you want to change the default port, you can do so by setting the DS_PORT environment variable.

Follow these steps:

1. Open the configuration file:


nano /etc/onlyoffice/documentserver/default.json



Find the line that begins with “servicesConfig”. 3.

Add the following line under “servicesConfig”:


“server”: {“port”: ““}


Be sure to replace “” with the new port number. 4.

Save the file and exit the editor. 5.

Restart the ONLYOFFICE Docs service:


systemctl restart onlyoffice-documentserver


ONLYOFFICE Docs will now run on the new port number.

4) Configuring ONLYOFFICE Docs

After installing ONLYOFFICE Docs, you need to configure it to suit your needs. In this section, we will cover the process of running the configuration script, which will help you set up ONLYOFFICE Docs, and adding a firewall exception so that ONLYOFFICE Docs can be accessed from other computers.

Running the Configuration Script

ONLYOFFICE Docs provides a script that will guide you through the configuration process. To run this script, follow these steps:


Switch to the root user:


sudo su


2. Run the configuration script:





Follow the prompts to configure ONLYOFFICE Docs. 4.

Once the configuration is complete, restart ONLYOFFICE Docs:


systemctl restart onlyoffice-documentserver


Adding a Firewall Exception

If you are running a firewall, you will need to add an exception to allow traffic to ONLYOFFICE Docs. To add a firewall exception, follow these steps:


Determine which firewall you are using. If you are unsure, you can run the following command:


firewall-cmd –get-default-zone


This will return the default zone for your firewall.

2. Add an exception for ONLYOFFICE Docs:


firewall-cmd –zone= –add-port=/tcp –permanent


Be sure to replace “” with the name of your default zone and “” with the port number that ONLYOFFICE Docs is running on.

3. Reload the firewall:


firewall-cmd –reload


The firewall exception is now added and ONLYOFFICE Docs can be accessed from other computers.


By following the steps outlined in this article, you can successfully install and configure ONLYOFFICE Docs on your RHEL/CentOS system. With its powerful features and intuitive interface, ONLYOFFICE Docs is a great alternative to traditional office software.

By adding the ONLYOFFICE Docs repository, installing the package along with dependent services, and configuring it to suit your needs, you can be up and running with ONLYOFFICE Docs in no time.

5) Launching ONLYOFFICE Docs

Now that you have installed and configured ONLYOFFICE Docs, it’s time to launch it. In this section, we will cover how to access ONLYOFFICE Docs via a web browser, the ONLYOFFICE Docs welcome page, and document collaboration.

Accessing ONLYOFFICE Docs via a Web Browser

ONLYOFFICE Docs is a web-based application that runs in a web browser. To access ONLYOFFICE Docs, follow these steps:


Open a web browser on your computer. 2.

Type in the IP address or domain name of the server on which ONLYOFFICE Docs is installed. 3.

Press Enter. 4.

The ONLYOFFICE Docs welcome page should appear.

ONLYOFFICE Docs Welcome Page

The ONLYOFFICE Docs welcome page is the main navigation point for ONLYOFFICE Docs. From the welcome page, you can create or open a document, collaborate with other users, and access other settings.

1. When the welcome page loads, you will see three options: “Create new document”, “Open existing document”, and “Settings”.

2. To create a new document, click on the “Create new document” button.

You will be prompted to choose the type of document you want to create – Document, Spreadsheet, or Presentation.


To open an existing document, click on the “Open existing document” button. You will be prompted to select the file you want to open.

4. To access the settings, click on the “Settings” button.

Here you can change various options such as the default language, the appearance of the editor, and user permissions.

Document Collaboration

One of the biggest advantages of ONLYOFFICE Docs is its ability to facilitate document collaboration. Multiple users can work on the same document simultaneously, making it easier to share and edit files.

To collaborate on a document, follow these steps:

1. Create a new document or open an existing one.

2. Once the document is open, click on the “Share” button in the top right-hand corner of the screen.

3. In the “Sharing settings” dialog, you can add users or groups and specify their permissions – can edit, can comment, or can view.

4. Once you have added the users, they will receive an email notification inviting them to collaborate on the document.

5. Each user can then access the document via the web browser and make changes in real-time.

6. Users can collaborate on text, graphics, tables, and other elements within the document.

7. All the changes are saved automatically and are visible to all users in real-time.

8. Users can also communicate with each other via the chat box that appears in the sidebar.


Launching ONLYOFFICE Docs is easy. Simply access it via your web browser and navigate through the welcome page to create, open, or edit documents.

ONLYOFFICE Docs also makes document collaboration a breeze, with multiple users able to work on the same file simultaneously. With its intuitive interface and powerful features, ONLYOFFICE Docs is a great alternative to traditional office software.

Installing ONLYOFFICE Docs on RHEL/CentOS is a straightforward process that starts with adding the ONLYOFFICE Docs repository, installing the required dependencies, and configuring the software. Version 7.2 introduces new features such as interactive PDFs, UI improvements, new languages, ligatures, hotkeys, and a plugin manager.

After installation, users can access ONLYOFFICE Docs through a web browser, where they will find the welcome page that serves as a central hub for document creation, collaboration, and settings customization. The ability to collaborate on documents in real-time is one of the standout features of ONLYOFFICE Docs.

With its easy-to-use interface and powerful capabilities, ONLYOFFICE Docs is a valuable office suite that can enhance productivity and streamline collaborative work. Embrace the possibilities of ONLYOFFICE Docs and experience the benefits it brings to your office needs.

Popular Posts