Monday, November 17, 2014

How To Change Tomcat Default Port on Ubuntu debian

If two web server conflict the ports

(like Koha and DSpace)
Question: My koha is already occupied 8080 port by apache2 in my Ubuntu machine how do I install my tomcat6 for DSpace like?

ANS: the issue is the conflict that you may have with apache2. If you are not running an apache server on 8080 port for Koha. then it should not be an issue at all. Just keep in mind you cannot bind two daemons to the same port at the same time.
But if you are using your koha apache2 on 8080 port you will have to change your new installation dspace tomcat port from 8080 to any one. Like 8081

Make sure that apache2 is turned off; if it is installed to avoid conflict on port 8080.

sudo service apache2 stop

Check that there are not services listening onport 80

netstat -aunt | grep 80

Here is the basic configuration changes that need to be made in

sudo gedit /etc/tomcat6/server.xml

<!--Connectorport="8080" protocol="HTTP/1.1"
redirectPort="8443" /-->

port="8081" protocol="HTTP/1.1"
redirectPort="8443" />

Be sure to stop tomcat and then start tomcat and then test.

sudo /etc/init.d/tomcat6 stop

Your's truly,


No comments:

Installing SubjectPlus 4.2 on Ubuntu 16.04 LTS

SubjetcPlus is a free and open source tool to help you manage several interrelated parts of your library data CREATING USERS AND DATAB...