'

change default 8080 port for alfresco or zenoss?

March 24th, 2009 by Andrea Matesi 3508 Views

Recently I was evaluating the final Alfresco Labs 3 document management nifty program, inside my little, trusty (and quite overloaded...), Ubuntu home server. I experienced a lot of problems related to the 8080 port, because Zenoss defaults to that and Alfresco wants that too.

I searched for some info on how to change alfresco default 8080 apache tomcat port and here's what I found (from alfresco wiki page):

Edit those files and change 8080 to something else (like for example 8099):

 

  • $ALF_HOME/tomcat/conf/server.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/urlrewrite.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/pagerenderer-config.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscript-framework-config-test.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscript-framework-config.xml
  • $ALF_HOME/tomcat/webapps/share/WEB-INF/classes/alfresco/webscripts/org/alfresco/indexall.get.mediawiki.ftl
  • $ALF_HOME/tomcat/shared/classes/alfresco/extension/custom-repository.properties and add an entry to overide the default: repo.remote.endpoint.url=http://localhost:8080/alfresco/service

 

They say the following about this mess:"It is planned for future versions to allow for central configuration of the port. It is not fixed yet, when this will be included."

I tried the modifications, but essentially I screwed my alfresco setup (more on this later maybe), so I removed and purged my alfresco.

I then decided to search for some info on how to change the default Zenoss 8080 port, and so I found that editing /usr/local/zenoss/zenoss/etc/zope.conf

and uncommenting line 840 with:

port-base 1000

 

will move Zenoss Web UI to port 8080 + 1000, or 9080.
 
I then rebooted my server and checked if zenoss was responding (you may simply restart it's service by using /etc/init.d/zenoss-stack restart).
 
Fine, this way you can:
  1. Avoid changing Alfresco's port mess.
  2. Proceed with the Alfresco installation process.

Hope that helps!

Posted in LINUX, System Administration | 1 Comment »

One response to “change default 8080 port for alfresco or zenoss?”

  1. Thanks for the heads up on avoiding the port mess in Afresco. I am currently trying to get Alfresco and Liferay running on a virtual machine. Since Liferay was already running on a preconfigured Tomcat instance I tried to change the other tomcat instance running Alfresco to run on a different port .... BIG MISTAKE. I am now going to try changing Liferay to run on a different port. And after reading your post I think it is a good idea. Cheers.