Installation with Debian based distributives also requires the presence of
nodejs (version 4.0.0 or later),
postgresql in the system.
All the necessary instrutions for these components and their dependencies installation can be found at their official websites.
There are other dependencies installed together with Document Server:
These dependencies are installed automatically when you use Ubuntu 14.04 LTS or later. Earlier distributives might require their manual installation.
Document Server uses
nodejs (version 4.0 or later),
postgresql as database. Dependencies found in the system repository will be installed automatically at Document Server installation using the apt-get install command.
Adding the repository containing the up-to-date ttf-mscorefonts-installer package versions:
echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" | sudo tee -a /etc/apt/sources.list
Adding the repository containing the up-to-date nodejs package versions:
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
Installing and configuring postgresql:
Install the PostgreSQL version included in your version of Ubuntu:
sudo apt-get install postgresql
After PostgreSQL is installed, create the PostgreSQL database and user:
The created database must have onlyoffice both for user and password.
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;"
sudo apt-get install redis-server
sudo apt-get install rabbitmq-server
Ubuntu distributives prior to 14.04 LTS might require some other dependencies to be installed.
Installing Document Server
Add GPG key:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
Add Document Server repository:
sudo echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list
While the APT package is built against Debian Squeeze, it is compatible with a number of Debian derivatives (including Ubuntu) which means you can use the same repository across all these distributions.
Update the package manager cache:
sudo apt-get update
Install Document Server
sudo apt-get install onlyoffice-documentserver-integration
During the installation process, you will be asked to provide a password for the
onlyoffice PostgreSQL user. Please enter the
onlyoffice password that you have specified when configuring PostgreSQL.
After that Document Server will be run as a process. The package will be updated just like any other deb package.
Now you can enter http://localhost in your browser address bar to open the Integration Edition welcome page where you will find further instructions on how to enable document examples or integrate online editors into your web application using the provided API.