How to deploy multiple AnQiCMS sites on a Linux server?

Calendar 👁️ 52

Deploy multiple AnQiCMS sites on a Linux server: A practical guide to efficient operation and maintenance

As a senior website operations manager, I fully understand the importance of efficiently and flexibly managing multiple websites in an increasingly complex network environment for both enterprises and content operations teams.AnQiCMS as an enterprise-level content management system developed based on the Go language, with its high performance and easy extensibility, provides strong support for multi-site management.This article will detail how to deploy and manage multiple AnQiCMS sites on a single Linux server, helping you to achieve efficient and unified content management.

Preparation for deployment

Before starting the deployment, please ensure that your Linux server meets the following basic requirements:

  • Operating systemSupports mainstream Linux distributions such as CentOS, Ubuntu, Debian, etc.
  • Web server: Nginx, Apache, or OpenResty have been installed and configured as reverse proxy servers.
  • Database: The MySQL or MariaDB database service is installed and running.
  • Domain resolutionAll the AnQiCMS site domain names scheduled for deployment have been correctly resolved to your server IP address.
  • Server management tool (optional)As panel software like Baota, 1Panel, or aaPanel, etc., it can greatly simplify the deployment and management process.

Core deployment concept: one instance, multiple sites

AnQiCMS is built with powerful multi-site management features.This means you do not need to copy a set of AnQiCMS program code for each site.On the contrary, you can run an AnQiCMS application instance on the server (usually listening on a specific port, such as 8001), and create and manage multiple independent websites through its management backend.The web server (Nginx/Apache) will act as a reverse proxy, forwarding requests to this AnQiCMS instance based on the different domain names accessed by users, and AnQiCMS will then identify and respond with the corresponding site content according to the domain name.This way not only saves server resources, but also greatly simplifies the later maintenance and upgrade work.

Detailed deployment process

The process of deploying multiple AnQiCMS sites mainly consists of three core steps: installing and initializing the first AnQiCMS instance, configuring the web server reverse proxy for new sites, and adding new sites in the AnQiCMS backend.

Step 1: Install and initialize the first AnQiCMS instance

If you have not installed AnQiCMS on the server yet, please complete the deployment and initialization of the first (main) site first. Here, we briefly illustrate the method of Baota panel Docker and manual command line as an example:

Install using the Taobao Panel Docker method (recommended)

  1. Install Taobao Panel and DockerEnsure your Baota panel version is above 9.2.0 and install Docker from the Baota panel app store.
  2. Install MySQL databaseIn the Docker app store, search for and install MySQL (recommended version 5.7 or above), and note the database root password.
  3. Install AnQiCMS applicationIn the Docker app store, search for 'anqicms', click to install. Fill in the main site domain and a unique database name (such asanqicms_main) MySQL's root password, and specify a port (for example)8001)
  4. Initialize installationAfter installation, access your main site domain through a web browser, enter the AnQiCMS initial installation interface, and complete the database connection and administrator account settings.

Install using the manual command line

  1. Download and extract: Download the Linux-compatible installation package from the AnQiCMS official website and extract it to the specified directory, for example/www/wwwroot/anqicms_main.
  2. Configure and run AnQiCMS: Enter the extracted directory and run./start.shScript starts AnQiCMS service. It is recommended to configure to ensure that AnQiCMS runs continuously and automatically starts after server restart.crontabTask, check and start AnQiCMS every minute.
    
    # 编辑crontab任务
    crontab -e
    # 添加以下行,确保路径正确
    */1 * * * * /www/wwwroot/anqicms_main/start.sh
    
  3. Configure Nginx reverse proxyConfigure Nginx for your main site domain:serverBlock. Reverse proxy the request to the port listened by AnQiCMS (for examplehttps://en.anqicms.com),androotCommand points to the main instance of AnQiCMSpublicCatalog. “`nginx server { listen 80; server_name your-main-domain.com;# Replace with the main site domain

Related articles

What are the detailed steps for installing AnQiCMS using Docker (such as 1Panel or aaPanel)?

As a senior security CMS website operation personnel, I am well aware that the ease of deployment of the content management system (CMS) is crucial for efficient operation.The AnQi CMS, developed with Go language, brings high performance, security, and SEO-friendly features, becoming the preferred choice for many small and medium-sized enterprises and content operation teams.Today, I will give you a detailed introduction on how to use Docker container technology to quickly and stably install and run AnQiCMS through mainstream server panels such as 1Panel or aaPanel.

2025-11-06

How to quickly install and deploy AnQiCMS on the Baota panel?

Hello! As an experienced website operations manager, I fully understand the importance of an efficient and easy-to-use content management system for business development.AnQiCMS with its high-performance, modular, and comprehensive SEO features has become an indispensable tool for our content operations team.Now, let me explain to you in detail how to quickly install and deploy AnQiCMS on the Baota panel, so that you can also easily have a powerful and stable website.--- ### A detailed guide on quickly installing and deploying AnQiCMS on the Baota panel In the wave of today's digital marketing

2025-11-06

How to configure the online message and custom message field functions of AnQiCMS?

As a senior security CMS website operator, I am well aware of the importance of the online message function for user interaction and business development.A well-configured, easy-to-use message system not only enhances user experience but also is an effective channel for collecting user feedback and mining potential customers.AnQi CMS provides flexible online message and custom message field functions, allowing the website to easily build an efficient user communication bridge according to its own needs. I will introduce in detail how to configure the online message and custom message field function in AnQiCMS.###

2025-11-06

How to implement automatic replacement and keyword extraction for the anchor text feature of AnQiCMS v2.0.0-alpha2?

As an experienced website operator who is well-versed in AnQiCMS, I am delighted to delve deeply into the automated implementation of the anchor text feature in AnQiCMS v2.0.0-alpha2 version.In today's increasingly important era of content marketing and search engine optimization, an efficient and intelligent content management tool is the key to enhancing website competitiveness.The anchor text automation feature introduced in this version of AnQiCMS is to empower operators, making content optimization easier and more efficient.

2025-11-06

How to troubleshoot and resolve the issue of port occupation during AnQiCMS installation?

As a senior AnQiCMS website operation staff, I am well aware of the importance of the stable operation of the content management system to the business of the website.The installation process is the starting point of the AnQiCMS lifecycle, any oversight in any stage may affect the subsequent operational efficiency.Among them, port occupation is a common installation obstacle, especially in environments where server resources are tight or management is poor.Solving this problem can not only ensure the smooth startup of AnQiCMS, but also lay a good foundation for future system maintenance

2025-11-06

How to customize the pseudo-static rules in AnQiCMS to achieve a friendly URL structure?

As a senior security CMS website operation personnel, I know that a friendly URL structure is crucial for the website's search engine optimization (SEO) and user experience (UX).A clear, concise, and descriptive URL not only helps search engines better understand page content, but also allows users to have an expectation of the page content before accessing it.The AnQi CMS provides powerful pseudo-static rule customization functions, allowing us to flexibly configure the website URL according to specific needs.

2025-11-06

How to connect AnQiCMS link push function to Baidu and Bing search engines?

As a website operator who deeply understands the operation of AnQiCMS, is proficient in content optimization and search engine rules, and is happy to provide you with a detailed explanation of how AnQiCMS's link push function effectively connects with Baidu and Bing search engines.In today's highly competitive online environment, ensuring that new content is discovered and indexed by search engines in a timely manner is crucial for enhancing website visibility and attracting traffic.The AnQiCMS built-in link push tool is designed for this purpose, aiming to simplify this complex process.### AnQiCMS

2025-11-06

How to perform detailed settings for global functions, content, contact information, TDK, and navigation in the AnQiCMS backend?

As an experienced security CMS website operator, I know that an efficient system configuration is crucial for the success of website operation.AnQiCMS with its concise and efficient architecture, provides us with powerful content management capabilities.To fully tap its potential, understanding and properly configuring all the background settings is the foundation.Today, I will take you in-depth to understand how to perform detailed settings of global functions, content, contact information, TDK, and navigation on the AnQiCMS backend, ensuring that your website meets operational needs and has excellent user experience and search engine performance.###

2025-11-06