Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Running EWB2 and EWB3 at the same time
Wed, Mar 31 2021 7:35 AMPermanent Link

Richard Harding

Wise Nutrition Coaching

I think it is really important to be able to have EWB2 Server and EWB3 Server running at the same time. I did managed to configure EWB so I could run EWB2 and EWB3 IDE at the same time.. However, the notes I made at the time are no longer working.

I believe that the EWBSRVR for EWB3 should be named EWBSRVR3.

I had 4 EWBSRVR services running happily together for some time - but no longer.

Service 1
=======
EWB2 Service running with IDE port = 9700 and server port = 9701 listening on all addresses
This allows applications to run in the IDE and run applications outside the IDE in Firefox, Opera, Chrome and Microsoft Edge by http://wck:9701/countries.html

Service 2
=======
EWB3 IDE Service with Port = 9800

Service 3
=======
EWB3 non-IDE Service with Port = 9801
The same as Service 1 for EWB2. This allows applications to run in Firefox, Opera, Chrome and Microsoft Edge by http://wck:9801/countries.html

So a browser can have an EWB2 application running with port 9700 in one tab and an EWB3 application running in another tab with port 9801.

Service 4
=======
EWB3 Service for the purpose of deploying to the customer. Port = 9802
.
The intention was to set up a EWB3 server with all the resources needed to deploy to the customer without all the extra databases, roles and other entities that they do not need that are bundled together in the in the internal server.

The customer has purchased both EWB2 and EWB3 licences so I wish to easily deploy or migrate or transfer my development environment and production environment to the customer’s system.

There is a lot that I do not understand about deployment and migration.

* * * * * * * * * * * *

Run the following install command for EWBSRVR.exe.
ewbsrvr.exe /install /name= EWBSRVR3 /desc="Elevate Web Builder 3 Web Server 1"

This results in the service.
Service Name: EWBSRVR3
Display Name: EWBSRVR3 1

Then run the install command
ewbsrvr.exe /install /name= EWBSRVR3Number2 /desc="Elevate Web Builder 3 Web Server 2"

The results the error message “The specified service already exists”.

* * * * * * * * * * * *

Also, the parameter “Description” relates to the service “Display Name” and not the service “Description”. The description in the Windows Services list remains blank.

You can check what services are defined by looking up the following registry entry.
REG:\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\

The Sections Headers in the ewbsrvr.ini and ewbide.ini file are correctly named with the expected port numbers.
Wed, Mar 31 2021 12:19 PMPermanent Link

Raul

Team Elevate Team Elevate

On 3/31/2021 7:35 AM, Richard Harding wrote:
> I think it is really important to be able to have EWB2 Server and EWB3 Server running at the same time. I did managed to configure EWB so I could run EWB2 and EWB3 IDE at the same time.. However, the notes I made at the time are no longer working.

It is possible

> I believe that the EWBSRVR for EWB3 should be named EWBSRVR3.

Instance name you can pick to be anything useful.

> * * * * * * * * * * * *
>
> Run the following install command for EWBSRVR.exe.
> ewbsrvr.exe /install /name= EWBSRVR3 /desc="Elevate Web Builder 3 Web Server 1"
>
> This results in the service.
> Service Name: EWBSRVR3
> Display Name: EWBSRVR3 1
>
> Then run the install command
> ewbsrvr.exe /install /name= EWBSRVR3Number2 /desc="Elevate Web Builder 3 Web Server 2"
>
> The results the error message “The specified service already exists”.
>
> * * * * * * * * * * * *

There is a space after /name= which causes name to be ignored

For example this works fine here to register 2 EWB3 web servers (i use
port in name by any unique name should be ok) :

ewbsrvr /install /name=EWB3SRV9080
ewbsrvr /install /name=EWB3SRV9180

pretty much similar to EWB2 but nointeract might be needed (don't recall
now)

ewbsrvr /install /name=EWB2SRV9280 /nointeract

And then of course make the INI files have all proper sections for each
named server.


> Also, the parameter “Description” relates to the service “Display Name” and not the service “Description”. The description in the Windows Services list remains blank.

Yes - that name is not updated today.

I find using "sc" command is best as that is name aware

"sc start/stop <name>"  (i.e. "sc start EWB3SRV9080")

Raul
Thu, Apr 1 2021 8:50 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

Many thanks Raul.

Yes – it was the extra space after the name that was causing the problems. I copied and pasted the commands that I had written down in my notes. Below are the installation commands that I ended up using.

ewbsrvr.exe /install /name=EWBSRVR3 /desc="Elevate Web Builder 3 Web Server"
ewbsrvr.exe /install /name=EWBSRVR3Number2 /desc="Elevate Web Builder 3 Web Server 2"
ewbsrvr.exe /install /name=EWBSRVR3Number3 /desc="Elevate Web Builder 3 Web Server 3"

=========

If you follow the instructions "Installing the Web Server Service" on page 67 of the EWB3 manual, we end up with a service called EWBSRVR.

Tim
How about making the default service for EWB3 to be EWBSRVR3 instead of EWBSRVR and also changing the default port numbers to be different to EWB2?

Also, the parameter “Description” relates to the service “Display Name” and not the service “Description”. The description in the Windows Services list remains blank.

Richard
Thu, Apr 1 2021 10:42 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

Tim

OR making the default service name EWB3SRVR as Raul suggested.


Richard
Image