MSAPI Windows Setup Guide
This is the standalone setup page at /en/tutorial/ — easy to open, bookmark, and index. Follow the steps to deploy MSAPI on Windows. Video preview also sits on the homepage.
1. Requirements
- Windows Server 2016+ or Windows 10/11 for test
- IIS / Nginx / Apache — Baota Windows panel recommended
- PHP 7.4+ with curl, openssl, redis, fileinfo
- MySQL 5.7+ or MariaDB 10.3+ and Redis
- Domain + SSL, ports 80/443 open
2. Baota panel
- Install Baota Windows panel and sign in.
- Install Nginx or IIS, MySQL, PHP and Redis from the app store.
- Enable required PHP extensions; raise
upload_max_filesize/post_max_size(50M+). - Add a site, point the root to the package folder, bind SSL.
3. Upload the package
- Upload the Ley / Xinghui package to the site root.
- Confirm front-end, agent and master-admin folders exist.
- Make
runtime,uploadandcachewritable. - Import the bundled Nginx/IIS rewrite rules.
4. Database
- Create a database and user in Baota.
- Import the package
.sqlfile. - Set DB, Redis and HTTPS site URL in
.envorconfig/database.php.
5. MSAPI merchant
- Open API / merchant settings in master admin.
- Enter gateway, merchant ID and API key from @msgame.
- Whitelist the server IP. Never put production keys on the demo.
- Pick single-wallet or transfer-wallet. See the API docs.
6. Test and go live
- Demo login: admin / xh123456 (demo only).
- Test register, deposit demo, live/sports/slots, agent panel.
- Check callback logs for signature or IP errors.
- Switch to production keys and back up config.
Video
Official Windows setup recording: