Please note that all installation actions must be performed with root rights.
To start the installation process run the following command:
bash workspace-enterprise-install.sh
Once you enter the above command, you will be prompted to select the way you want to install ONLYOFFICE Workspace. Type N and press Enter to install ONLYOFFICE Workspace using RPM/DEB packages.
If you have some programs already installed on your machine, some ports necessary for
ONLYOFFICE Workspace operation may be used by other applications. In this case you'll be asked to verify if the necessary ports are free. To find out which program is using a certain port, you can execute the following command:
netstat -lnp | grep :<port_number>
After that you may reconfigure the program to use another port. When the required ports are free, you'll be able to rerun the script and select the installation from RPM/DEB packages again.
The script will automatically install and configure all the necessary prerequisites as well as ONLYOFFICE Workspace components (ONLYOFFICE Docs, Control Panel and ONLYOFFICE Groups).
If you are using
CentOS,
SELinux may prevent
NGINX from starting. To avoid this issue you can configure or disable
SELinux as it is described in
this article.
Once the installation is finished you can check ONLYOFFICE Workspace for correct work. Open a browser and enter the local network computer IP address (please do not use either localhost or 127.0.0.1 network address for the same computer where you have ONLYOFFICE Workspace installed, use its IP address in the local network instead) to the browser address bar. ONLYOFFICE Workspace must be up and running indicating the successful installation.
If you install ONLYOFFICE Workspace using RPM/DEB packages, the HTTPS and Update sections will not be available in the Control Panel and you will need to manually install ONLYOFFICE Mail and connect it to ONLYOFFICE Groups. In such a case you can follow corresponding instructions to switch your portal to HTTPS and to install and connect ONLYOFFICE Mail.
When installing
ONLYOFFICE Workspace on Debian-based systems, some values are stored in debconf. These parameters are used for further update. For example, database connection parameters.
If you manually change these parameters in the configuration files, an error will occur when updating. To avoid the error, you need to change the parameters in the debconf using the following commands:
echo "onlyoffice-communityserver onlyoffice-communityserver/db-host select Newhost" | debconf-set-selections
echo "onlyoffice-communityserver onlyoffice-communityserver/db-user select Newuser" | debconf-set-selections
echo "onlyoffice-communityserver onlyoffice-communityserver/db-name select Newname" | debconf-set-selections
echo "onlyoffice-communityserver onlyoffice-communityserver/db-pwd password Newpassword" | debconf-set-selections
echo "onlyoffice-xmppserver onlyoffice-xmppserver/db-host select Newhost" | debconf-set-selections
echo "onlyoffice-xmppserver onlyoffice-xmppserver/db-user select Newuser" | debconf-set-selections
echo "onlyoffice-xmppserver onlyoffice-xmppserver/db-name select Newname" | debconf-set-selections
echo "onlyoffice-xmppserver onlyoffice-xmppserver/db-pwd password Newpassword" | debconf-set-selections