Difficulty: Beginner
Estimated Time: 10 minutes

OnlyOffice installation manual. Source: https://helpcenter.onlyoffice.com/server/linux/document/linux-installation.aspx

OnlyOffice installation

curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -

apt install postgresql -y

sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice;"

sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH PASSWORD 'onlyoffice';"

sudo -i -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5

echo "deb http://download.onlyoffice.com/repo/debian squeeze main" | sudo tee /etc/apt/sources.list.d/onlyoffice.list

apt update

Optional - change port:

echo onlyoffice-documentserver onlyoffice/ds-port select <PORT_NUMBER> | sudo debconf-set-selections

apt install redis-server nginx-extras rabbitmq-server -y

apt install npm -y

apt install redis-server nginx-extras rabbitmq-server -y

apt install onlyoffice-documentserver -y

sudo ufw allow 80

nginx -t

service nginx restart