CentOS 7.x Install onlyoffice Document server

From Notes_Wiki
Revision as of 15:14, 14 March 2019 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb self="Install onlyoffice document server">CentOS_7.x_onlyoffice|Onlyoffice</yambe:breadcrumb> =CentOS 7.x Install onlyoffice Document server= To install onl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb self="Install onlyoffice document server">CentOS_7.x_onlyoffice|Onlyoffice</yambe:breadcrumb>

CentOS 7.x Install onlyoffice Document server

To install onlyoffice Document server on CentOS 7.x use following steps:

  1. Disable selinux by editing /etc/selinux/config and using:
    SELINUX=disabled
  2. Allow ports 80,443 via firewalld by referring CentOS 7.x Basic firewalld configuration
    If you prefer to disable firewall instead then use:
    systemctl stop firewalld
    systemctl disable firewalld
  3. Install required dependencies for onlyoffice
    curl -sL https://rpm.nodesource.com/setup_6.x | sudo bash -
    yum -y install gcc-c++ make
    yum -y install nodejs
  4. Adding Nginx repository to yum by creating /etc/yum.repos.d/nginx.repo with following contents:
    [nginx]
    name=nginx repo
    baseurl=http://nginx.org/packages/centos/7/$basearch/
    gpgcheck=0
    enabled=1
  5. Install EPEL Repo using:
    yum install -y epel-release
  6. Installing and configure PostgreSQL database using:
    1. Install packages
      yum install postgresql postgresql-server -y
    2. Initialize the PostgreSQL database
      postgresql-setup initdb
      systemctl enable postgresql
    3. Turn on the 'trust' authentication method by editing /var/lib/pgsql/data/pg_hba.conf and preprending:
      host all all 127.0.0.1/32 trust
      host all all  ::1/128 trust
    4. Restart the postgresql service:
      systemctl start postgresql
    5. Create the PostgreSQL database and user:
      sudo -u postgres psql -c "CREATE DATABASE onlyoffice;"
      sudo -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';"
      sudo -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"
  7. Installing Redis, start and enable it
    yum -y install redis
    systemctl start redis
    systemctl enable redis
  8. Installing RabbitMQ, start and enable it
    yum -y install rabbitmq-server
    systemctl start rabbitmq-server
    systemctl enable rabbitmq-server
  9. Installing Microsoft Core fonts for the Web
    yum -y install https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
  10. Configure onlyoffice yum repo for installing Document Server
    1. Import rpm key using
      rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8320CA65CB2DE8E5"
    2. Create /etc/yum.repos.d/onlyoffice.repo with following contents:
      [onlyoffice]
      name=onlyoffice repo
      baseurl=http://download.onlyoffice.com/repo/centos/main/noarch/
      gpgcheck=0
      enabled=1
  11. Installing Document Server
    yum -y install onlyoffice-documentserver
  12. Run dependent services executing the following commands:
    systemctl start supervisord
    systemctl enable supervisord
    systemctl start nginx
    systemctl enable nginx
  13. Configuring Document Server using command 'bash documentserver-configure.sh' at /root folder
    You will be asked to specify the PostgreSQL, Redis and RabbitMQ connection parameters.
    For Postgresql
    • Host: localhost
    • Database: onlyoffice
    • User: onlyoffice
    • Password: onlyoffice
    For Redis
    • Host: localhost
    For RabbitMQ
    • Host: localhost
    • User: guest
    • Password: guest
  14. You can check in web browser at http://localhost or http://<FQDN>


Refer:



<yambe:breadcrumb self="Install onlyoffice document server">CentOS_7.x_onlyoffice|Onlyoffice</yambe:breadcrumb>