This method uses the TSWMU_Web_WindowsServer_<code>.zip package (the Web\Server_IIS folder in the update package). Extract it to get the SETTUP WEBSITE folder containing TswSetup.exe, HUONG_DAN_CAI_DAT.txt and the packages folder (keep packages next to TswSetup.exe). This installer can also create the Launcher update site and FTP; see the TswSetup tool page for every step of the installer in full. This page only covers installing the website.

A website installed with TswSetup is still the START-connected type, as on hosting: the website database is a separate SQL Server database (default name Host_MuOnline) and nothing is written to the game database.

Choose a mode

Mode Use when What the installer does
1. Game server + web on the same machine The website is placed directly on the game server (recommended if you only have one machine) Automatically reads the configuration from the server folder (START.ini, Data\game_common.conf, connectserver.conf, Data\ServerMap.xml), checks the game database, opens the required firewall ports, and automatically gets the START Key
2. Separate web machine (2 machines) Run the installer on the web machine; the game server is on another machine Does not check the game database. You enter the game server IP, API port and Key manually. SQL Server on the web machine is only used to create the website database

By default the installer auto-detects: if it finds the server folder (containing START.ini or Data\game_common.conf) it selects mode 1, otherwise it selects mode 2.

Rented hosting (cPanel...) does not use TswSetup. See the cPanel installation page.

Preparation

  1. SQL Server 2012 or later is running and you can log in with a SQL account (for example sa).
  2. Mode 1: the MuOnline and LogMuOnline databases already exist. Open START > Website Management, click Settings to create the START website database and enable the Website API port, then save.
  3. Mode 1: run TswSetup with the same Windows account that runs START, because the API Key in START.ini is encrypted per Windows account and the installer needs to decrypt it to read it.
  4. Mode 2: have the game server IP, API port and Key ready (START > Website Management > Connection). On the game server, add the web machine's IP to Additional Hosting IP (see the START connection page) and open the API port for that IP.
  5. Have a game account ready to be the main administrator.

Installation steps

  1. Right-click TswSetup.exe > Run as administrator.
  2. Welcome: choose the language and mode 1 or 2.
  3. General settings: choose the game server folder (mode 1; leave empty for a separate web machine), the install folder (default C:\TSWMU; the installer creates the subfolders Website, php83, Update, Download, Server), the website port (default 80) and the firewall ports. If you are only installing the website, untick "Launcher Update (IIS)" so the installer does not create the update site and FTP.
  4. FTP: skip if you are only installing the website.
  5. Database:
    • Fill in SQL Server, port (1433), account and password, then click Test.
    • Mode 1: the installer reads START.ini to pre-fill the game DB / log DB / START website DB, the START IP and the Key. Mode 2: enter the game server IP and Key manually (the Key field is shown as a password).
    • Tick Host the web on this machine (create the Web MU Hosting DB): enter the website DB name (default Host_MuOnline, must differ from the other DBs), the site name, the site language and the main administrator game account (level 50, with no separate admin password).
  6. Download: optional. If you do not download, the installer uses the bundled packages\WebHosting.zip.
  7. Review > Install. Follow the log in the window.

The installer proceeds in order: enables IIS features (CGI...), installs Visual C++ and the ODBC Driver, installs URL Rewrite, installs PHP 8.3 + sqlsrv into <install folder>\php83, extracts the website into <install folder>\Website, creates the app pool and the IIS site TSWMU_Web (the site root is the public folder), grants folder permissions, opens the firewall, creates the website database and runs the web setup page from the command line (the same function as the setup page on hosting, so the results are the same: test START first, set the main administrator, create tables, write the configuration).

After installation

  • The installer writes TswSetup-summary.txt (website address, admin address, main administrator account) and TswSetup-install.log (log) next to TswSetup.exe. At the end of the installation there is a Save TXT button (TswSetup-info.txt).
  • The website address the installer uses is http://<IP>:<web port>. To use a domain name or https, add a binding in IIS Manager for the TSWMU_Web site, then change the website address in Admin > System > System Settings > General Settings. [NEEDS CHECKING: field name and location for changing the website address in General Settings]
  • Log in to the website with the main administrator game account, then go to /admin.
  • Mode 1: START manages the Windows firewall for the API port itself (it only opens for IPs on the allow list). The installer does not open the API port. If START is not running with Administrator rights, START reports that it cannot write to the firewall.

Related ports

Service Suggested port Scope
Website (IIS) 80 Internet: players access the web
START Website API See the note below Only open to the hosting IP / web machine. The installer does not open it
SQL Server 1433 Local machine / LAN only, do not open to the Internet
The Website API port must be the same in START (the Port field) and on the website (the game server address). The default value in START is 44480; the suggested value in the installer is 5000. Enter exactly the port you set in START. [NEEDS CHECKING: the two defaults differ (START 44480, TswSetup suggestion 5000); the product owner should unify them]

Manual installation (without TswSetup)

You can build the site yourself if you are familiar with IIS: PHP 8.3 NTS x64 running through FastCGI, install the sqlsrv driver + ODBC Driver for SQL Server, IIS URL Rewrite, and point the site at the website's public folder (the web.config file is already in public and you need to correct the php-cgi.exe path). Then open the home page; the setup page appears the same as on cPanel; choose SQL Server as the DB type, port 1433. This method is not supported by the installer, so it is easy to get folder permissions wrong (runtime, private, public/uploads, public/storage, APP/Config must be writable).