This method uses the TSWMU_Web_cPanel_<code>.zip package (the Web\Hosting folder in the update package). Before you start, read the page Requirements and choosing an installation method.

Step 0. Prepare START on the game server

  1. Open START > Website Management > Connection.
  2. Tick Enable API port for Website, choose a port (default 44480), then click Save.
  3. Copy the Connection Key (64 characters) using the Copy button.
  4. Note the START API address (the START API address field), in the format http://IP:port/api/v1.
  5. Open this port on the router / firewall of the game server so the hosting can connect to it (see the page Connecting the website to START). You do not need to add the hosting IP at this step if you enter the Website address (Hosting) in step 6.

Step 1. Create a MySQL database

  1. cPanel > MySQL Databases.
  2. Create New Database: for example web.
  3. Add New User: set a username and a strong password.
  4. Add User To Database: select the user and the database you just created, tick ALL PRIVILEGES, then click Make Changes.
cPanel automatically adds the account prefix to the database and user names (for example hostname_web, hostname_webuser). When filling in the installation form you must use the full name including the prefix.

Step 2. Select PHP and enable extensions

  1. cPanel > Select PHP Version: choose PHP 8.3 (minimum 8.1).
  2. Extensions tab: enable pdo_mysql, mbstring, gd, fileinfo, SimpleXML, dom, openssl, curl.

Step 3. Upload the website package to the hosting

  1. cPanel > File Manager > go to public_html (or the folder of the subdomain). Enable Show Hidden Files in Settings to see .htaccess.
  2. Upload the file TSWMU_Web_cPanel_<code>.zip (it is large, over 100 MB; if the browser reports a size limit error, upload it via FTP).
  3. Right-click the zip file > Extract directly in public_html.
  4. Check that public_html contains: index.php, install.php, .htaccess, and the folders APP, public, install, runtime, private.
You do not need to change the Document Root: the .htaccess file in the root folder automatically routes all paths to the public folder and blocks direct access to APP, private, runtime, install...
Do not modify the zip file by adding files into it (cPanel may report an extraction error). To replace a file, extract the zip on your computer, edit it, then re-compress from scratch, or edit the file directly after it has been extracted on the hosting.

Step 4. Run the installation page

  1. Open your browser: https://your-domain.com/install.php.
  2. In the top right corner there are 3 language links: 中文, English, Tiếng Việt. Choose a language to read the form (the default language when opened is English).
  3. The Environment check section must show all green ticks. If any item is red (missing extension or non-writable folder), fix it first; the Install button stays locked until all checks pass.

Fill in the form

Section Field What to enter
Game server connection Game server address IP:port or domain:port of the START API port, for example 123.45.67.89:44480. The page automatically adds http:// and /api/v1. Entering the full URL also works.
Connection Key The 64-character key (0-9, a-f) copied from START > Website Management > Connection.
Website database DB type MySQL / MariaDB
SQL host address localhost (do not type 127.0.0.1 on cPanel)
Port 3306
DB name Full name including prefix, for example hostname_web. It can be an empty DB, or a DB that was installed before (old data is kept)
DB account Full user name including prefix, assigned to the DB in step 1
DB password The password of the user above. The password is kept exactly as typed, character by character
Website and administration Website name The name shown on the web, for example My MU Online
Website address https://your-domain.com (filled in automatically from the current address, usually no need to change)
Default display language Used for both the player website and the admin page; can be changed later in Admin
Super admin (game account) The name of a game account that already exists (1-20 letters or digits). START sets this account to level 50

Click Install

The page runs for about 10 to 60 seconds. The internal order is:

  1. Test connection to START (a wrong Key, wrong time, closed port, IP not allowed... will be reported immediately and the database is not touched yet).
  2. START sets the entered game account as the main administrator (level 50).
  3. Connect to the database, create missing tables and default data. If the database already has the website's tables, the data is kept and only the missing parts are added.
  4. Write the configuration files (APP/Config/database.php, api.php, app.php) and the marker file private/installed.json.

When finished, the page shows Installation complete with a link to the admin page. Log in to the website with the admin game account first, then open the /admin link.

If START reports that another account already holds level 50, you must enter exactly that account in the form, or log in with it and then grant permissions to the new account in Admin > Administrators.

Step 5. Check after installation

  1. Open the home page https://your-domain.com/: the website must appear.
  2. Try logging in with a game account, go to the account page and view the character list.
  3. In START > Website Management > Connection > Test connection: both directions START → Hosting and Hosting → START must report OK (see the START connection page).
  4. Go to /admin with the main administrator account, open System > System settings and adjust the name, SEO, language...

After installation, the install.php file only redirects to the home page and can be deleted.

Reinstall or change the database

  1. Use File Manager to delete the file private/installed.json.
  2. Open /install.php again and fill in the form.
  3. If the database already has the website's tables, the old data (news, configuration...) is kept and only the missing tables are created.

Common installation errors

Message / symptom Cause and solution
MySQL denied login (1045) Wrong user or password, or the cPanel prefix was forgotten. The SQL host address must be localhost
Correct account but not assigned to the DB (1044) cPanel > MySQL Databases > Add User To Database, tick ALL PRIVILEGES
Cannot find the DB Create the DB first and remember the prefix
PHP is missing the pdo_mysql extension Enable it in Select PHP Version > Extensions
Key does not match START Copy the Key from START again (only 64 characters 0-9 a-f, no spaces)
This machine's time differs too much from the game server Adjust the time on both machines (maximum difference 120 seconds)
START does not allow this hosting IP Add the IP to START (see the START connection page)
Cannot reach the game server Wrong IP / port, START has not enabled the API port, firewall / router not opened, or the hosting blocks outgoing ports
403 page right after clicking Install The hosting's web firewall is blocking the form. This package's form already uses the field names db_host / db_port to avoid being blocked; if you still get 403, ask your hosting provider to relax the rules for install.php
Generic database error Check the files runtime/logs/install.log and runtime/logs/php_error_<year-month>.log

For problems after running (404, blank page, Offline, maintenance...) see the page Troubleshooting common issues.