Try the fastest and simplest way to install ONLYOFFICE

Change port

Suggestions on Document Server Installation/Functionality

Change port

Postby simsala » Thu May 31, 2018 3:20 pm

Is it possible to change port 8000 for DocService? This port is already occupied by another application that has not yet provided any possibility to change it. I installed OnlyOffice via the repository.

Update: I tried it with
Code: Select all
echo onlyoffice-documentserver onlyoffice/docservice-port select 8005 | sudo debconf-set-selections
and did reboot the server, but it did not have any impact.

Update2:
Okay, I figured out how to change the port. The above command probably only works with a new installation. An existing installation can be modified by modifying the following two files:

1. /etc/onlyoffice/documentserver/default.json
Replace line 53
Code: Select all
"port": 8000,
with
Code: Select all
"port": 8005,
if your new port is 8005

2. /etc/onlyoffice/documentserver/nginx/includes/onlyoffice-http.conf
Replace
Code: Select all
upstream docservice {
  server localhost:8000;
}


with

Code: Select all
upstream docservice {
  server localhost:8005;
}
simsala
 
Posts: 15
Joined: Mon May 15, 2017 10:11 pm

Re: Change port

Postby Maxim » Fri Jun 01, 2018 6:50 am

Hello simsala!
Is it possible to change port 8000 for DocService?

Yes and you have posted the solution.
Maxim
 
Posts: 1747
Joined: Tue Oct 11, 2016 2:34 pm


Return to Document Server

Who is online

Users browsing this forum: No registered users and 2 guests