Upgrading and migrating
Online upgrade (recommended)
The current version number is shown in the bottom-left corner of the admin panel. Click it to check for and apply updates. Nothing needs to be done on the server.
Back up your database first. In BaoTa it is one click under Database → Backup, takes seconds, and will save you if anything goes wrong.
Docker users upgrade the same way — the program files live in the data volume, so there is no need to change the image.
Manual upgrade
Only for when the online upgrade fails. Start from your current version and apply each release in order — you cannot skip versions.
Each upgrade package contains:
| Item | What to do |
|---|---|
file/ directory | Copy its contents into the site root, overwriting |
update.sql | Only present when the database changes — see below |
For update.sql:
- Open it and replace every
__PREFIX__with your table prefix (acg_by default) - Run the SQL in phpMyAdmin or any database client
When you have applied everything, set version in config/app.php to the version you upgraded to.
Manual upgrades are error-prone. Use the online upgrade whenever it works.
Migrating to another server
- Archive the source — the whole site directory
- Export the database — phpMyAdmin or
mysqldump - Set up the new server following the BaoTa guide, matching PHP version and extensions
- Extract the source into the new site root and import the database
- Edit
config/database.phpwith the new host, user and password - Reconfigure URL rewriting and directory permissions
If it does not come up, check in this order:
| Check | Why |
|---|---|
config/database.php | Still pointing at the old database |
| Redis | If the old site stored sessions in Redis, install it here too, or switch PHP's session storage back to files |
| PHP extensions | Do not forget bcmath |
| Permissions | config, runtime, kernel/Install, assets/cache must be writable |
| URL rewriting | Has to be configured again on the new server |
Swapping the Docker image
docker pull ghcr.io/lizhipay/acg-faka:latest
docker stop faka && docker rm faka
docker run -d --name faka -p 80:80 -v acg_data:/data --restart unless-stopped ghcr.io/lizhipay/acg-faka:latestAs long as the acg_data volume name is unchanged, your data, configuration and installed plugins are all still there.
Something broke after upgrading
Read runtime.log in the site root first — the real cause is almost always in there.
