Building a WeEngine WeChat Management System on ECS
Building a WeEngine WeChat Management System on ECS
1. Installing WeEngine
1.1 Setting up the Environment with Baota Panel
Installing WeEngine requires a LAMP environment (Linux + Apache + MySQL + PHP). To save our precious life for more exciting things, we'll use the Baota Linux Panel to simplify this process.

1.2 Download and Unzip WeEngine
Download the installation package:
https://cdn.w7.cc/download/WeEngine-Laster-Online.zip1.3 Create Directory
Log in to your server via Xshell and create a WeEngine folder under /www/wwwroot/default.
1.4 Upload Files
Use Xftp to upload the unzipped install.php file to the WeEngine directory.
1.5 Add Site in Baota
In Baota Panel, add a new website. Make sure to check the "Create Database" option and remember the username and password.
1.6 Run Installation Wizard
Visit your-domain/install.php in your browser. Register and log in to your WeEngine account.

1.7 Fix Permissions
If you encounter permission issues, run the chown command in Xshell:
chown -R www /www/wwwroot/defaultIf it complains about .user.ini, try running the command without -R or ignore that specific file.
1.8 Verify Environment
If WeEngine detects any errors, click "Fix Exceptions" and follow the instructions.

1.9 Configure Database
Enter the database credentials you created in step 1.5.

1.10 Wait for Download
Sit back while the system downloads necessary files.

1.11 Login
Finally, set up your system admin account and log in.
2. Managing WeChat Official Accounts
2.1 Create an Account
Go to the WeChat Official Platform (https://mp.weixin.qq.com/) and register an account.

2.3 Check WeEngine Version
Go to the WeEngine console and check for updates.
2.4 Add Platform
In the sidebar, select "Platform Management" and click "Add Platform".

2.5 Manual Addition
Select "Create New Official Account" and choose manual addition.

2.6 Fill Information
Fill in all the details for your WeChat Official Account.

2.7 AppId and AppSecret
You can find your AppId and AppSecret in the "Basic Configuration" section of the WeChat Official Platform.

2.8 Configure Developer Info
In the WeChat backend, add developer information. Copy the Token and Key provided by WeEngine into the WeChat "Basic Configuration".

2.9 Test
Once connected, test the integration to ensure everything is working smoothly.