As an experienced website operator, I am well aware of the importance of an efficient and secure CMS system for enterprises.AnqiCMS (AnqiCMS) with its high-performance architecture in Go language and many enterprise-level features, is undoubtedly the preferred choice for many operation teams.Today, I will give you a detailed explanation of how to install and deploy AnqiCMS on the Baota panel through Docker, a modern and convenient way, so that your website can go online quickly and run stably.

The detailed steps to install AnQi CMS using Docker on the Baota panel

In the wave of digitalization, choosing the correct tools and deployment methods is crucial.The Baota panel is deeply loved by users for its intuitive management interface, while Docker becomes the new standard for application deployment with its lightweight and portability.Both combined, we will lay a solid foundation for AnqiCMS.

Step 1: Ensure the Baota panel environment is ready

Before starting the Docker deployment, please confirm that Baota panel is installed on your server.To ensure compatibility and feature support, it is recommended that the Baota panel version be no less than 9.2.0, and preferably 9.5.0 or higher.https://www.bt.cn/new/download.html),According to your Linux system, choose the appropriate general installation script for installation. If you have any questions during the installation process, Baota official website also provides customer support.

Second step: Enable and install Docker in the Baota panel

The core of installing AnqiCMS lies in Docker containers.After logging into the Baota panel, you will see the left navigation menu.If the 'Docker' option is not displayed directly, please go to the 'Panel Settings' under the 'Panel Menu Hidden' option to ensure that Docker is enabled.

First time using Docker, after clicking "DockerPlease click and wait for the installation to be completed, which usually takes some time depending on your server performance and network conditions.

Third step: Deploy Docker version MySQL database

AnqiCMS as a content management system requires a database to store all content and configuration information.In the Docker environment, we also recommend using the Docker version of the MySQL database.

Search for 'mysql' in the Baota Docker app store and select the version you need to install.If your server memory is less than 2GB, it is recommended to choose MySQL 5.6 version; for most cases, MySQL 5.7 version is the default and recommended choice.Please make sure to check 'Allow external access' during installation, as this is essential for the AnqiCMS container to connect to the database.

After MySQL is installed, click the 'Details' link, and you will be able to see and copy MySQL's root password.Please make sure to keep this password safe, as it will be used during the subsequent installation of AnqiCMS.

Step 4: Install AnqiCMS using Docker

All prerequisites are now ready, and we can officially install AnqiCMS.

Similarly in the Baota Docker App Store, search for "anqicms".In the search results, click the "Install" button to enter the installation configuration interface.

  • Website domain:Fill in the domain name you have prepared for AnqiCMS, for examplewww.anqicms.com.
  • Database name:Default toanqicmsIf you plan to deploy multiple AnqiCMS sites on the same server, please set a unique database name for each site to avoid data conflicts.
  • Database Password:Paste the MySQL root password you copied in step three.
  • Port:Default port is8001Similarly, if you want to install multiple AnqiCMS instances, please allocate a different port number for each instance, such as8002/8003etc.

Fill in the details and click "Confirm" to start the installation.The installation process usually takes 1 to 5 minutes, please be patient.After installation, the Docker container list in the Baota panel will display the running status of the AnqiCMS container.

Step 5: Start using your AnqiCMS website

After AnqiCMS is deployed through Docker container, it has pre-installed the default website content and admin account.

  • Default account: admin
  • Default password: 123456
  • Back-end access address:Your domain/system/

For example, if your website domain ishttp://dev.anqicms.com/then the back-end access path ishttp://dev.anqicms.com/system/.

In the browser, access your backend address, log in with the default username and password, and be sure to change the default administrator username and password as soon as possible to ensure website security.Now, you can start experiencing the powerful content management features of AnqiCMS.

Advanced application: Implementing multi-site management through reverse proxy on the same server

AnqiCMS supports multi-site management, which means you can run multiple independent websites on the same Docker container instance. If you need to do this, install an AnqiCMS container first, and then follow the steps below to add more sites:

  1. Add a reverse proxy site on the Baota panel:Select "Website" from the left menu of the Baota panel, then click the "Reverse Proxy" tab, and click "Add Reverse Proxy". In the new pop-up window, enter the domain name of the new site and set the "Target URL" tohttp://127.0.0.1:8001(If the port of your AnqiCMS Docker container is not 8001, please modify it according to the actual situation). Click "OK" to complete the reverse proxy setup.

  2. Add a new site in the AnqiCMS backend:Log in to the backend of AnqiCMS you have installed, find the "Multi-site Management

    • Site Name:Used to distinguish different sites, please fill in according to the actual situation.
    • Site root directory:Start with/app/Adding the domain name replaced by underscores, for example/app/dev_anqicms_comThis is used to store the cache and other data of a new site, make sure the directory name does not repeat with other sites.
    • Website address:The complete URL of a new site, for examplehttp://dev.anqicms.com.
    • Admin account password:Set an independent admin account and password for the new site.
    • Database name:Set a new database name for the new site, for example.dev_anqicms_comDo not use the same name as the existing site database, otherwise it will cause data overwrite.
    • Database information reuse: Tick the box “Reuse default database account information”, because AnqiCMS installed with Docker has all database management permissions and no need to re-enter account password.
    • Select the template to use:Select a template suitable for the new site according to your needs.

    Click the "OK" button to complete the creation of the new site.Now, you can directly access and use it through the domain name of the new site.You can also quickly access the management interface of a new site through the "Visit Backend" button in the multi-site management list.


Frequently Asked Questions (FAQ)

1. Why can't I see the AnqiCMS page after installing according to the steps?This could have several reasons.First, please check if your domain has been correctly resolved to the server's IP address.Next, confirm the Docker container status of the Baota panel, ensure that the AnqiCMS container is running normally.Finally, please check if the reverse proxy rules set for AnqiCMS in the Baota panel are correct, especially whether the IP address and port number in the 'Target URL' match the actual listening address and port of the AnqiCMS Docker container.Sometimes the server firewall may also block port access, please check and allow the relevant ports.

How to upgrade Docker version AnqiCMS on Baota panel?The upgrade of AnqiCMS in Docker version is usually completed by updating the Docker image.You can log in to the Baota panel, go to the Docker management interface, find the AnqiCMS container, and try the 'update image' or 'redeploy' function.anqicms/anqicms:latestLabel the image and back up the database before the operation, in case of emergencies.AnqiCMS itself also provides an online upgrade feature in the background, but updating the underlying image and restarting the container is more recommended for Docker environments.

How to manage the databases of multiple AnqiCMS sites installed?In Docker environment, even if you use the same Dockerized MySQL instance, each AnqiCMS site should specify an independent database name when it is created.This means that their data is stored separately and does not affect each other.You can view and manage these independent databases through the database management feature of the Baota panel, such as performing backup, optimization, or repair operations.In the multi-site management of AnqiCMS backend, you can also clearly see the corresponding database information of each site.