Page 1 of 1

Tomcat port

Posted: Thu Jan 25, 2018 5:17 pm
by valeriogiorgi.ethica
Hi,
I've installed LogicalDOC CE on an Ubuntu Server where Tomcat was already installed. Because of that, I've set the port of Tomcat as 8081.

Is it possible to change both the port of the LogicalDOC Tomcat from 8081 to 8080 and the url from http://localhost:8081 to http://localhost:8080/LogicalDOC ?

I'm not an expert of Ubuntu and Linux :?

Thanks a lot

Re: Tomcat port

Posted: Fri Jan 26, 2018 4:33 pm
by shatzing
Yes of course,
that is an easy task.

1) Change the port
Stop LogicalDOC system service

Code: Select all

sudo service logicaldoc stop
check that LogicalDOC is not running

Code: Select all

ps -ef | grep java
If it is still running launch the command from a bash shell (command shell)

Code: Select all

sudo /LogicalDOC/tomcat/bin/catalina.sh stop
Open the file /LogicalDOC/tomcat/conf/server.xml and change 8081 to 8080
Save the file

2) Move Logicaldoc application from ROOT to a subpath /LogicalDOC
go to dir /LogicalDOC/tomcat/webapps
rename the folder ROOT to LogicalDOC

Code: Select all

mv ROOT LogicalDOC
Restart LogicalDOC system service

Code: Select all

sudo service logicaldoc start

Re: Tomcat port

Posted: Fri Jan 26, 2018 7:00 pm
by valeriogiorgi.ethica
Both changes suggested don't work :cry:

Re: Tomcat port

Posted: Mon Jan 29, 2018 4:38 pm
by shatzing
Try to make 1 change at a time

1) Open the file /LogicalDOC/tomcat/conf/server.xml and change 8081 to 8080
Save the file

shudtown /restart logicaldoc

test if it works on port 8080
http://localhost:8080

2) Move the application from /tomcat/webapps/ROOT to /tomcat/webapps/logicaldoc
shudtown /restart logicaldoc

test if it works on the new path
http://localhost:8080/logicaldoc