Hello!As an experienced website operations expert, I fully understand the importance of efficiently and conveniently utilizing existing resources when managing multiple websites.Auto CMS (AutoCMS) is born for such needs with its powerful multi-site management capabilities.It can not only help us reduce operating costs, but also significantly improve management efficiency.

What are the steps to install and manage multiple AnQiCMS sites on the same Linux server?This topic provides a detailed explanation of every step from deployment strategy to specific operations, striving to present complex technical information to you in the most intuitive and practical way possible.


Manage multiple AnQiCMS sites efficiently on Linux servers: A practical guide

In the increasingly popular era of digital marketing, many companies, self-media or individuals often need to manage multiple brand sites, product display pages, or content special topics.How to implement the centralized and efficient management of these sites under limited server resources, while ensuring their independence and stability, is a major challenge facing operators.The 'Multi-site Management' core advantage of AnQiCMS provides us with a perfect solution.

The AnQi CMS adopts a lightweight architecture based on the Go language, which means it is inherently capable of handling high concurrency and excellent performance. What is even more impressive is that it allows us toThe same AnQiCMS application instanceBelow, easily create and manage multiple independent websites.This greatly reduces resource consumption, avoiding the麻烦 of deploying a separate CMS for each site, and truly realizes the vision of 'one system, multiple deployments'.

Understand the core principles of AnQiCMS multi-site management

Before starting actual operations, we first need to clarify the basic concept of AnQiCMS multi-site management. It is not about installing multiple copies of the AnQiCMS program on the server, but through aA single-running AnQiCMS applicationRespond to requests from different domains and route the requests to the corresponding logical sites according to the domain.Each logical site has an independent website configuration, content, database, and file storage path, but shares the core program code and runtime environment of AnQiCMS.

This design pattern brings significant advantages:

  • Resource efficient utilization:Only one program needs to be run, saving a lot of CPU, memory, and disk space.
  • Centralized and unified management:All site management entries (multi-site management) are in the main site's backend, making it convenient for overall control.
  • Deployment and maintenance simplified:Program upgrade, application of security patches, and other operations need to be performed only once, and they will benefit all sites.
  • Data isolation and securityEnglish: Although shared programs, the data (databases, cache files, etc.) of each site are stored independently, without affecting each other.

Preparation before deployment: Basic environment and domain configuration

Deploy multiple AnQiCMS sites on a Linux server, you need to prepare the following:

  1. A server running the Linux operating system:Ensure that the system environment is stable and Docker or your preferred web server (such as Nginx/Apache) and MySQL database are installed.The document recommends using Baota Panel for visual management, which will greatly simplify the operation.
  2. Multiple independent domainsEach AnQiCMS site needs to be bound to a unique domain name, such aswww.site1.com,www.site2.cometc. Make sure these domains are correctly resolved to your Linux server IP address.
  3. MySQL Database ServiceEnglish: AnQiCMS requires MySQL database to store data.If you use Docker, consider installing the Docker version of MySQL; if you are manually deploying, make sure that MySQL is installed and running.

Practical Deployment: Taking Baota Panel as an Example (Recommended Method)

The panel is the preferred choice for many operators due to its friendly graphical interface.The following will take the Baota panel as an example to illustrate how to install and manage multiple AnQiCMS sites on the same server.

Step 1: Install Baota Panel and Configure Basic Services

If you have not installed Baota Panel yet, please visitbt.cnGet the installation tutorial. Log in to the Baota panel after installation:

  1. Install DockerIn the left menu of the Baota panel, find "Docker
  2. Install Docker version of MySQLIn the Docker app store, search for 'mysql' and install.Suggest selecting version 5.7 and check the box for 'Allow external access'.rootThe password of the user, which will be used during the installation of AnQiCMS later.
  3. Install the first AnQiCMS application using Docker:In the Docker container page, click 'Create container'.
    • Name:Fill inanqicms.
    • Image:Enter manuallyanqicms/anqicms:latest.
    • PortEnglish: Server port and container port are both filled8001(This is the default internal running port of AnQiCMS).
    • Restart policy:Select "Restart after failure" or "Restart if not manually stopped". Click Confirm to complete the container creation.

Step 2: Configure reverse proxy and initialize the first AnQiCMS site.

After the container is created, the AnQiCMS program is already running in Docker, but it cannot be accessed directly through the domain name. We need to configure reverse proxy:

  1. Create Reverse Proxy WebsiteIn the Baota panel, click on "Website" in the left menu, then click on "Reverse Proxy" and then click on "Add Reverse Proxy".
    • Main DomainEnter your first AnQiCMS site domain, for examplewww.site1.com.