Installation of Anqi CMS - Baota panel deployment

Calendar 👁️ 0

Applicable version: Baota panel 7.9.3+. Baota panel deployment is divided into two methods: traditional deployment (uploading the installation package, configuring reverse proxy) and Docker one-click deployment. This chapter introduces the traditional deployment method first.


Preparation

  1. A Linux server (CentOS / Ubuntu / Debian are all available) that has Baota panel installed
  2. A domain name that has been resolved to the server (such aswww.anqicms.com)
  3. MySQL 5.6.35+ has been installed (recommended 5.7+ or 8.0)
  4. Download the AnQiCMS Linux installation package from the official website or GitHub

Method 1: Deploy Go project using Baota 7.9.3+

Step 1: Upload the installation package

  1. Enter Baota panel →File→ Enter/www/wwwroot/Table of contents
  2. Create a directory named after the domain, such asanqicms.com
  3. Enter the directory, upload the Linux installation package (such asanqicms-linux-v3.6.2.zip)
  4. Right-click on the installation packageUnzip, unzip to the current directory

install-bt1.png

install-bt2.png

Step 2: Create Go project site

  1. Baota panel →websiteGo projectAdd Go project
  2. Fill in the following configuration:
Configuration item Fill in the content
Project Execution File /www/wwwroot/anqicms.com/anqicms
Project Name AnQiCMS(Customizable)
Project port 8001
Execute the command /www/wwwroot/anqicms.com/anqicms
Running user www
Boot up ✅ Check
Bind domain Enter the resolved domain

install-bt3.png

  1. ClickSubmit, complete the addition

Step 3: Initialize installation

  1. Access the bound domain in the browser
  2. Enter the AnQiCMS initialization installation interface
  3. Enter database information, administrator account password

install-bt4.png

field Description
Database host Generally127.0.0.1
Database port Generally3306
Database username MySQL username (it is recommended to use root or a user with the privilege to create databases)
Database password The corresponding password
Database name Automatically created, such asanqicms
Administrator account Backstage login account
Administrator password Backstage login password (it is recommended to use a complex password of more than 8 characters)
website address Bound domain, such ashttps://en.anqicms.com
  1. Access after installation域名/system/Enter the backend

Supplement to method one: Use 'Other Projects' to deploy in the old Baota (before version 9.0)

If your Baota panel version is below 7.9.3, there is noGo projectMenu, you can useOther Projects → Add Common ProjectDeploy in the same way, the configuration items are completely consistent with the Go project.

Step 1: Upload the installation package

Same as Step 1 of method one, create a directory and upload, unzip and install the package.

Step 2: Create a common project site

  1. Baota panel →websiteOther ProjectsAdd Common Project
  2. Fill in the following configuration:
Configuration item Fill in the content
Project Execution File /www/wwwroot/anqicms.com/anqicms
Project Name AnQiCMS(Customizable)
Project port 8001
Execute the command /www/wwwroot/anqicms.com/anqicms
Running user www
Boot up ✅ Check
Bind domain Enter the resolved domain
  1. ClickSubmit, complete the addition

Step 3: Initialize installation

Same as Step 3 in Method 1, access the bound domain in the browser to enter the initialization installation interface.


Method 2: Baota versions before 7.9.0 (Nginx Reverse Proxy)

Step 1: Upload the installation package and start.

Same as Step 1 in Method 1, upload and unzip the installation package.

Start AnQiCMS:

# 进入站点目录
cd /www/wwwroot/anqicms.com
# 执行启动脚本
./start.sh

Step 2: Create a PHP static site.

  1. Baota panel →websiteAdd Site
  2. Enter the domain name,PHP versionSelectstatic
  3. Do not create FTP and database.
  4. ClickSubmit

Step 3: Set the running directory.

  1. Click in the site list operation bar.setting
  2. Selectsite directoryTag
  3. toRunning directoryis set to/public
  4. ClickSave

bt-dir.png

Step 4: Configure Nginx Reverse Proxy

  1. SelectStaticTag
  2. Enter the following pseudo-static rules:
location @AnqiCMS {
    proxy_pass http://127.0.0.1:8001;
    proxy_set_header   Host             $host;
    proxy_set_header   X-Real-IP        $remote_addr;
    proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
}
location / {
    try_files $uri $uri/index.html @AnqiCMS;
}

bt-rewrite.png

  1. ClickSave

Step 5: Add a task to keep the service alive

To make AnQiCMS automatically run after the server restart, a scheduled task needs to be added.

Add a startup detection task that runs every minute:

  1. Baota panel →Schedule Task
  2. Task type: Shell Script
  3. Execution Schedule: Every minute (* * * * *)
  4. Task Name:AnQiCMS 启动检测
  5. Script content:
#!/bin/bash
### check and start AnQiCMS
BINNAME=anqicms
BINPATH=/www/wwwroot/anqicms.com

# 检查进程是否存在
exists=`ps -ef | grep '\<anqicms\>' |grep -v grep |wc -l`
if [ $exists -eq 0 ]; then
    echo "$BINNAME NOT running, starting..."
    cd $BINPATH && nohup $BINPATH/$BINNAME >> $BINPATH/running.log 2>&1 &
fi

Note:BINPATHReplace it with your actual site path.

bt-start.png

Add a monthly execution stop script (optional):

#!/bin/bash
### stop anqicms
BINNAME=anqicms
BINPATH=/www/wwwroot/anqicms.com

exists=`ps -ef | grep '\<anqicms\>' |grep -v grep |awk '{printf $2}'`
if [ -n "$exists" ]; then
    kill -9 $exists
    echo "$BINNAME stopped"
fi

bt-stop.png

Step 6: Initialize installation

Same as Step 3 of Method 1.


Verify Installation

After installation is complete, verify it in the following way:

  1. Front-end access: Open the bound domain in the browser, the home page of the website should be displayed
  2. Background access: Open in the browser域名/system/, the backend login page should be displayed
  3. Default account: Set the administrator account password during installation

❓ Baota has two deployment methods: 'Go Project' and 'Static+Nginx', which one should I choose?

The final effect of the two methods is the same, the main difference is the complexity of the configuration:

Comparison item Go Project Deployment (Method 1) Static+Nginx (Method 2)
Baota version applicable 7.9.3+ (recommended 9.x) 7.x / 8.x / 9.x are all available
Configuration steps 3 steps to complete 6 steps to complete
Keep alive automatically ✅ Baota automatic process management ❌ Need to manually configure the scheduled task
Project management Baota interface can view the running status Need to manually check the process
Cost of learning Lower Slightly higher

SuggestionIf your Baota panel version supports (7.9.3+),Prefer method one (Go project deployment)Easier and more convenient.

❓ When deploying a Go project, it prompts 'The project execution file does not exist', but the file is clearly in the directory?

This situation is generally becauseconfig.jsonconfiguredenvWithdevelopmentordebugmode, or the port configuration is inconsistent with the Baota settings.

Troubleshooting steps.:

  1. Checkconfig.jsonIs the port consistent with the 'Project Port' filled in Baota?
  2. Check if the executable file has execution permission:chmod +x /www/wwwroot/你的域名/anqicms
  3. Check if the path of 'Project Execution File' in Baota panel ispointing accuratelyExecutable file (not pointing to a directory)
  4. If it is a Windows server, make sure to select.exeFile

❓ The task is to check the anqicms process every minute, will it be too frequent and affect performance?

Don't worry at all.ps -ef | grep anqicms | wc -lThe execution time of this command is approximately0.01 secondsIt has almost no impact on the server's performance, almost negligible.

In fact, even if it is changed to every 5 seconds, there will be no significant impact. Setting it to once a minute is considered to be the minimum granularity limit of crontab, which is enough to detect abnormal process exit.

If the process exits, the detection script will restart it within 1 minute, and a 1-minute service interruption is negligible to search engines and users.

❓ How to configure HTTPS? Can it be configured directly in the external site settings?

Yes, you can configure it directly in the Baota site management.HTTPS is the responsibility of Nginx, AnQiCMS itself does not need to configure certificates.

Operation steps:

  1. Baota panel → Site Management → Site List → Find your site → ClickSSL
  2. SelectLet’s Encryptor other free certificates
  3. Check the domain, clickApply
  4. After the application is successful, enableEnforce HTTPS

Note: After configuring HTTPS, remember to go to the AnQiCMS backend →Set → Global SettingsChange the website address fromhttp://changed tohttps://. Otherwise, the links generated by the backend may still use HTTP.

Related articles

Download and install AnQi CMS

Introduce the various download channels of AnQi CMS installation package (official website, GitHub, mirror site), the method of version selection for different operating systems and architectures, and the file verification method of the installation package to ensure that the correct and complete version is downloaded.

2026-07-10

Understand AnQi CMS - Official Resources and Support Channels

Summarize the technical resources and support channels such as the official website of AnQiCMS, online demos, development documentation, template manuals, API documentation, GitHub repository, and user communication groups. When encountering issues, you can quickly find the corresponding help according to your needs.

2026-07-05

Understand AnQi CMS - System file structure

Understand the complete directory structure of AnQi CMS after installation, master the specific functions of each key directory and file such as the main program, configuration files, template directories, attachment directories, runtime data, etc., convenient for subsequent daily maintenance and secondary development. AnQi CMS complete directory structure overview, introducing the use of each directory and file.

2026-07-05

Understand AnQi CMS - Version System

Understand the version number rules (main version.minor version.revision number) of AnQi CMS, the history of version evolution, and the functional differences between community version and authorized version, to help users choose the appropriate version for installation and use according to their own needs.

2026-07-05

Installation of Anqi CMS - Deployment with PHPStudy (Xiao Pi panel)

The application scenario: Windows local development environment or Windows server. PHPStudy (Xiao Pi panel) integrates components such as Nginx, MySQL, PHP, and AnQiCMS runs through Nginx reverse proxy.Preparation has been completed PHPStudy (Xiaopi Panel) software running mode has been switched to Nginx + MySQL package A local test domain (such as dev.anqicms.com) or access using IP + port AnQiCMS Windows installation package has been downloaded Installation steps Step 1: Create a site Open PHPStudy

2026-07-18

Manual deployment of AnQi CMS on the server

Use case: Linux servers without a panel (such as CentOS / Ubuntu), suitable for users familiar with command-line operations.Deployed by downloading the package, configuring Nginx reverse proxy, and MySQL database. Preparations A Linux server (CentOS 7+ or Ubuntu 20.04+) with Nginx and MySQL 5.6.35+ installed (recommended to use the LNMP one-click installation package) A domain name resolved to the server Downloaded AnQiCMS Linux installation package Installation steps Step 1: Download and unzip # Log in to the server ssh

2026-07-18

Docker deployment of AnQi CMS

Docker deployment is the fastest installation method for AnQiCMS, suitable for quick experience and testing environments. Docker image address: https://hub.docker.com/r/anqicms/anqicms Method one: Docker command line deployment Suitable for environments where Docker is already installed (any operating system).Quick Start # Pull the latest image docker pull anqicms/anqicms:latest # Run the container docker run -d --name anqicms -p 8001:8001

2026-07-18

Source code compilation installation of AnQi CMS

Target audience: Developers who need secondary development, customization features, or whose needs cannot be met by the official binary packages. Difficulty: ⭐⭐⭐⭐ (requires familiarity with GoLang and command line operations) Prerequisites Software version requirements Description GoLang 1.13+ (recommended 1.25+) Compile Go source code Git any version Clone code repository MySQL 5.6.35+ Run database If GoLang has not been installed, please visit https://go.dev/dl/ to download and install.Clone from GitHub (recommended) git clone https://github

2026-07-18