Step 1: Configuring MassTransit for web

To configure MassTransit for web, you need to edit the files MassTransit.cfg and mtweb.ini. To do so:

  1. Copy the MassTransit.cfg file from MassTransit Server/Extras folder to the MassTransit Server folder. If there is already a version of the MassTransit.cfg file, skip this step.
  2. Open the MassTransit.cfg file by using a text editor and uncomment (delete the %% signs before) the following lines:

    ENABLE_SOAP_API

    SOAP_API_PORT

    Edit the first line as shown below:

    ENABLE_SOAP_API = TRUE

    Leave the second line as the default:

    SOAP_API_PORT = 50050

    Note: You must restart MassTransit services so that these changes take effect. You can do this in Windows Task Manager -> Services. To verify that the changes have taken effect, check the MassTransit Administrator log for the following message: "SOAP interface enabled on port 50050”.

  3. Give the user account running the web process Read, Write and Modify permissions for the parsed and templates_c folders within the MTWeb folder (by default, the path is: C:\Program Files (x86)\Acronis\MassTransit Server\MTWeb). Usually, this user account is the <IUSR> one. For more information on how to grant different permissions on folders, refer to Frequently asked questions.

    Note: Every time the MTWeb files are updated, you must delete the content of the parsed and templates_c folders, with the sole exception of the readme.txt files.

  4. Edit the mtweb.ini file, located in the MTWeb folder (by default, the path is: C:\Program Files (x86)\Acronis\MassTransit Server\MTWeb).

    Note: In mtweb.ini, all lines beginning with a semicolon (;) are considered commented and are therefore ignored. You must uncomment all the lines mentioned in the steps below, by removing the semicolon (;), and then set the value appropriately.

    Note: All values that contain spaces or other non-alphanumeric characters must be enclosed by double quotes, otherwise the double quotes are optional.

    1. Verify that the following lines in mtweb.ini are configured correctly. You can find more information about each field in the mtweb.ini file.

      SOAP_PROXY_ADDRESS—the value must be set to the IP address of the machine.

      DB_HOST—the value must also be set to the IP address of the machine.

      DB_NAME—this must be set to the name of the MySQL database. By default, it is mtdatabase.

      DB_USER—this must be set to the name of the MySQL user who will access the MassTransit database. You set that database user during the MassTransit installation and by default, it is also masstransit. For more information on how to create a new user in MySQL, refer to Frequently asked questions.

      DB_PASSWORD—this must be set to the password of the MySQL user who will access the MassTransit database. You also set that password during the MassTransit installation.

    2. If you want to enable HTTP transfers, change the line beginning with HTTP_TRANSFER_ALLOWED, as shown below.
      HTTP_TRANSFER_ALLOWED ="true"
    3. Verify that the line beginning with HTTP_STAGING_FOLDER is set as shown below:
      HTTP_STAGING_FOLDER = "C:\php\tmp\"