x
login Signup

How to change ports in ElectricCommander and Apache

We moved some apps and tomcat server to the server where ElectricCommander (EC) is running. I want to change the port for EC.

After making changes to the config files, there is a conflict over the port. Whichever service, EC or Apache, starts first takes the port. The second service will not start since the port is already in use.

Current settings:

    commander.properties:COMMANDER_PORT=8075
    httpd.conf:Listen 10.1.1.51:8075
    httpd.conf:SetEnv COMMANDER_PORT "8075"

What am I missing?

Thanks, -Rick

avatar image By anomal 21 asked Sep 25, 2013 at 09:56 AM
more ▼
(comments are locked)
10|750 characters needed characters left

2 answers: sort voted first

There's a utility that comes with EC called ecconfigure. It's located in the "bin" subdirectory of the installation folder (along with ectool, etc).

You can run ecconfigure with the following arguments to change the web server ports:

--webHttpPort=port The HTTP port of the web server. --webHttpsPort=port The HTTPS port of the web server.

Note that if you change the ports to something other than 80/443, you'll have to specify them in the URL. For example, if you change it to 81/444, you'll have to type http://commander.company.com:81 or https://commander.company.com:444.

avatar image By tanay ♦ 3.4k answered Sep 30, 2013 at 02:43 PM
more ▼
(comments are locked)
10|750 characters needed characters left

I could not guess values based on the definitions from 'ecconfigure --help'. Can you plug the 5 http port names into the pic? (Only 1-2 are obvious) 1 agentLocalPort 2 repositoryPort 3 webHttpPort 4 webTargetHttpPort 5 serverHttpPort

    _____
   |     |
   |     | 
   |_____|
      | Repository
      |2
    __|__           _____        ____
   |     |         |     |      /     \
   |     |---------|     |------|     |
   |_____|         |_____|      \_____/
      | EC Server    Apache         Browser
      |1                   
   ___|___
   |     |
   |     |
   |_____|
        Agents

avatar image By anomal 21 answered Oct 01, 2013 at 07:35 AM
more ▼
(comments are locked)
avatar image tanay ♦ Oct 01, 2013 at 01:45 PM

Please see this knowledge base article for all TCP ports used by ElectricCommander: https://electriccloud.zendesk.com/entries/449444-KBEC-00041-ElectricCommander-TCP-port-usage-diagram-and-descriptions

10|750 characters needed characters left
Your answer
toggle preview:

Up to 8 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.