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
- Open START > Website Management > Connection.
- Tick Enable API port for Website, choose a port (default
44480), then click Save. - Copy the Connection Key (64 characters) using the Copy button.
- Note the START API address (the START API address field), in the format
http://IP:port/api/v1. - 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
- cPanel > MySQL Databases.
- Create New Database: for example
web. - Add New User: set a username and a strong password.
- Add User To Database: select the user and the database you just created, tick ALL PRIVILEGES, then click Make Changes.
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
- cPanel > Select PHP Version: choose PHP 8.3 (minimum 8.1).
- Extensions tab: enable
pdo_mysql,mbstring,gd,fileinfo,SimpleXML,dom,openssl,curl.
Step 3. Upload the website package to the hosting
- cPanel > File Manager > go to
public_html(or the folder of the subdomain). Enable Show Hidden Files in Settings to see.htaccess. - 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). - Right-click the zip file > Extract directly in
public_html. - Check that
public_htmlcontains:index.php,install.php,.htaccess, and the foldersAPP,public,install,runtime,private.
.htaccess file in the root folder automatically routes all paths to the public folder and blocks direct access to APP, private, runtime, install...Step 4. Run the installation page
- Open your browser:
https://your-domain.com/install.php. - 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).
- 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:
- 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).
- START sets the entered game account as the main administrator (level 50).
- 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.
- Write the configuration files (
APP/Config/database.php,api.php,app.php) and the marker fileprivate/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.
Step 5. Check after installation
- Open the home page
https://your-domain.com/: the website must appear. - Try logging in with a game account, go to the account page and view the character list.
- In START > Website Management > Connection > Test connection: both directions START → Hosting and Hosting → START must report OK (see the START connection page).
- Go to
/adminwith 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
- Use File Manager to delete the file
private/installed.json. - Open
/install.phpagain and fill in the form. - 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.