Hello everyone, welcome to my personal blog. Today, we are going to discuss
Today, I am going to show you how to install OnlyOffice Community Server on CentOS 7. Please note that the OnlyOffice Community Server does not comes with online editor. Which means, we cannot edit the documents via web browser. If you want this editor features, we need to install the OnlyOffice Document Server. I will discuss this near in the future.
Before we go through the installation, we need the following in hands:
- Root privileges
- Internet connection
- Basic understanding of Terminal commands
Steps to Install OnlyOffice Community Server on CentOS 7
Step 1. Installing software dependencies
OnlyOffice needs some packages such as NGINX, Mono and Node.js. So, we need to install these software prior to OnlyOffice installation.
To install Mono on CentOS 7, first add the repository. Run the following commands on Terminal
rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
Now let’s install mono with this command
yum install mono-complete
For more information installing Mono on CentOS or other system, please visit the official website. Check the Mono installation by using this command
[root@server oracle]# mono --version
Mono JIT compiler version 126.96.36.199 (tarball Thu Jan 17 08:37:29 UTC 2019) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
GC: sgen (concurrent by default)
We are going to create a new repo for nginx and install nginx web server. Create a new repo file nginx.repo under /etc/yum.repos.d
Now paste these lines
Now install nginx with this command
yum install nginx
For more information, I would recommend you to visit this page.
Install MySQL Server Community Edition
You will need to download a file from this link. Select the correct package for CentOS 7 (.rpm). And then install the rpm package. Or, simply use these command to download and install it
yum localinstall mysql80-community-release-el7-2.noarch.rpm
yum install mysql-community-server
The command will install MySQL Community Server. For more information about installing MySQL on CentOS, please visit this page. Once the installation complete, let’s continue configuring the MySQL Server.
systemctl start mysqld
After starting the MySQL Server, we need to change the password for the MySQL root user. First, we need to get the default password
grep 'temporary password' /var/log/mysqld.log
You will see the password generated for the root user. Copy the password and we need to change it immediately.
mysql -u -root -p
alter user 'root'@'localhost' identified by 'YourNewPasswordHere';
So now, we have MySQL up and running.
Step 2. Install OnlyOffice Community Server
After completing the prerequisites installation, we can continue to install the OnlyOffice Community Server.
Add the GPG key
rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8320CA65CB2DE8E5"
Now create a new onlyoffice.repo file in /etc/yum.repos.d directory.
Paste these lines
Now install the OnlyOffice Community Server with this command
yum install onlyoffice-communityserver
Now continue configure the Community Server
You will need to supply your MySQL host and MySQL root password during this process. This process will take some times. After completes, open the web browser and type the server IP address or domain. For example:
We need to create a password for the administrator user.
Now enjoy the OnlyOffice Community Server
Thank you for reading this tutorial how to install OnlyOffice Community Server on CentOS. I hope you enjoy it and see you next time.
Incomplete, missing directory, missing most important things…..
please your help
where is the communityserver-configure.sh file, i can not find it out
thanks in advance for your help