Detailed guide on smoothly upgrading AnqiCMS 2.x to 3.x version
Preparation before the upgrade
Before starting any system upgrade, the most core principle is that 'data is invaluable, backup first'.You must thoroughly backup your current AnqiCMS 2.x version.
First, please make a complete backup of your database. You can use the database backup function provided by server management tools like Baota panel, or export an SQL file via the command line.
Next, perform a full backup of your website files.This includes AnqiCMS program files, uploaded images, custom templates, and all configuration-related files.You can directly package the entire website root directory in case of emergency.
Understanding the differences between versions is also the key to smooth upgrades.AnqiCMS 3.x introduces official support for the Baota panel's 'Go project', which greatly simplifies the deployment and management of the program.article/productLabel, addedarchiveThis means that if you have customized frontend templates, they are likely to need corresponding modifications to be compatible with 3.x.
Core upgrade process: migration station by station
The design concept of AnqiCMS 3.x version is to achieve unified management of multiple sites, rather than deploying independent program copies for each site as in 2.x.Therefore, the upgrade process will be divided into two stages: main site upgrade and multi-site integration.
Step 1: Select and upgrade the main site
Step 2: Smoothly transition the main site operation environment
start.shScript), try to perform a restart operation to ensure that the new version of the program is loaded correctly.
If after a restart, you visit the back-end and find that the interface or version number has not been updated to 3.x, this may be due to browser cache or an old process not having been completely stopped.You can try to refresh the browser forcibly (usually Ctrl+F5 or Shift+F5) to clear the cache.lsof -i:{端口号}Find the process ID and thenkill -9 {PID}Terminate), then run the original scheduled task script again to start AnqiCMS.
Step 3: Switch to Go project management mode
After the main site is confirmed to have been upgraded to 3.x and is running normally, you can start optimizing its operational management.First, stop and delete the scheduled task configured for the main site in the 2.x version.
/www/wwwroot/anqicms.com/anqicms),Please fill in the port of your AnqiCMS project as default or configured (for example, 8001).Since your data has been upgraded on the backend, adding a Go project here will not trigger the initialization steps but will take over directly.
The fourth step: merging and optimizing multiple sites
For the AnqiCMS 2.x that was originally deployed independently on the same server