Difference between revisions of "CentOS 7.x Install onlyoffice Document server"
From Notes_Wiki
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x onlyoffice]] > [[CentOS 7.x Install onlyoffice Document server]] | |||
To install onlyoffice Document server on CentOS 7.x use following steps: | To install onlyoffice Document server on CentOS 7.x use following steps: | ||
Line 118: | Line 117: | ||
==Stopping onlyoffice related services== | |||
For some reason onlyoffice needs to be stopped or disabled then consider stopping or disabling following services '''assuming they are not used for other purposes''': | |||
* rabbitmq-server | |||
* supervisord | |||
* chronyd | |||
* redis | |||
* nginx | |||
* postgresql | |||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x onlyoffice]] > [[CentOS 7.x Install onlyoffice Document server]] |
Latest revision as of 09:15, 25 August 2022
Home > CentOS > CentOS 7.x > Web Based Tools > CentOS 7.x onlyoffice > CentOS 7.x Install onlyoffice Document server
To install onlyoffice Document server on CentOS 7.x use following steps:
- Disable selinux by editing /etc/selinux/config and using:
- SELINUX=disabled
- 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
- If you prefer to disable firewall instead then use:
- Install required dependencies for onlyoffice
- yum -y install sudo
- curl -sL https://rpm.nodesource.com/setup_6.x | sudo bash -
- yum -y install gcc-c++ make
- yum -y install nodejs
- 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
- Install EPEL Repo using:
- yum install -y epel-release
- Installing and configure PostgreSQL database using:
- Install packages
- yum install postgresql postgresql-server -y
- Initialize the PostgreSQL database
- postgresql-setup initdb
- systemctl enable postgresql
- 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
- Restart the postgresql service:
- systemctl start postgresql
- 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;"
- Install packages
- Installing Redis, start and enable it
- yum -y install redis
- systemctl start redis
- systemctl enable redis
- Installing RabbitMQ, start and enable it
- yum -y install rabbitmq-server
- systemctl start rabbitmq-server
- systemctl enable rabbitmq-server
- 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
- Configure onlyoffice yum repo for installing Document Server
- Import rpm key using
- rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8320CA65CB2DE8E5"
- 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
- Import rpm key using
- Installing Document Server
- yum -y install onlyoffice-documentserver
- Run dependent services executing the following commands:
- systemctl start supervisord
- systemctl enable supervisord
- systemctl start nginx
- systemctl enable nginx
- 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
- You can check in web browser at http://localhost or http://<FQDN>
Refer:
For some reason onlyoffice needs to be stopped or disabled then consider stopping or disabling following services assuming they are not used for other purposes:
- rabbitmq-server
- supervisord
- chronyd
- redis
- nginx
- postgresql
Home > CentOS > CentOS 7.x > Web Based Tools > CentOS 7.x onlyoffice > CentOS 7.x Install onlyoffice Document server