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

Calendar 👁️ 0

Applicable scenarios: Local development environment or Windows server. PHPStudy (Xiao Pi Panel) integrates components such as Nginx, MySQL, and PHP, and AnQiCMS runs through Nginx reverse proxying.


Preparation

  1. PHPStudy (Xiao Pi Panel) is installed
  2. Switch the software running mode toNginx + MySQLPlan
  3. A local test domain name (such asdev.anqicms.com) or access using IP + port
  4. The AnQiCMS Windows installation package has been downloaded

Installation steps

Step 1: Create a site

  1. Open the PHPStudy software interface
  2. ClickCreate a site
  3. Enter the domain name (such asdev.anqicms.com)
  4. Record the site root directory (for exampleC:/phpstudy_pro/WWW/dev.anqicms.com)
  5. Add the root directory/public, the final root directory isC:/phpstudy_pro/WWW/dev.anqicms.com/public
  6. ClickConfirm

xp-site.png

Step 2: Adjust the Nginx configuration

  1. PHPStudy →settingconfiguration filevhosts.conf
  2. Find the configuration file corresponding to the site created in the previous step (such asdev.anqicms.com_80)
  3. Findlocation / {this line (about the 5th line)
  4. Replace it with the following reverse proxy configuration:
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;
}

xp-rewrite.png

  1. Save the file
  2. Restart Nginx

Step 3: Place AnQiCMS files

  1. Click on the PHPStudy website interface,ManageOpen the root directory of the website
  2. It will open toC:/phpstudy_pro/WWW/dev.anqicms.com/publicTable of contents
  3. Return to the parent directory
  4. Copy all files after unpacking the AnQiCMS Windows installation package to this directory

xp-dir.png

Step 4: Start AnQiCMS

  1. Enter the AnQiCMS directory
  2. Double-clickanqicms.exeRun

Note: No window will appear after running, AnQiCMS will run in the background process mode.

Step 5: Verify the run

  1. Open the browser
  2. Accesshttp://dev.anqicms.com(i.e. the domain set in Step 1)
  3. If you see the initial installation interface, it means the deployment was successful

Step 6: Exit AnQiCMS

No stop script is provided on Windows, you need to exit through Task Manager:

  1. Right-click on the taskbar →Task Manager
  2. toDetailsmode
  3. InBackground process.anqicms.exe
  4. Select andEnd task

xp-stop.png


Initialize installation

When you visit the domain for the first time, you will enter the initialization installation interface and need to fill in the following information:

field Description
Database host 127.0.0.1(PHPStudy built-in MySQL)
Database port 3306
Database username root
Database password Root password of PHPStudy MySQL
Database name Automatically created, such asanqicms
Administrator account Custom background login account
Administrator password Custom background login password
website address http://dev.anqicms.com

After installation is complete, visithttp://dev.anqicms.com/system/Enter the background.


❓ Double-click anqicms.exe and there are no windows or prompts. How can you determine if it has started successfully?

AnQiCMS isa background service program. It will not display any windows or icons when running on Windows, which is normal behavior. You can confirm whether it has started successfully in the following ways:

Method one: Check the task manager

  1. Ctrl + Shift + EscOpen Task Manager
  2. ClickDetails(if only the simplified view is displayed)
  3. toDetailsTab
  4. Find it in the listanqicms.exe→ This means it has started successfully

Method two: Directly access the browserOpen the browser to accesshttp://dev.anqicms.com. If it can display the installation interface or home page normally, it means it has started successfully.

Method three: Check the port

netstat -ano | findstr :8001
# 如果输出了一行包含 LISTENING 的记录,说明 anqicms 正在监听

❓ How to make AnQiCMS automatically start with Windows boot?

Plan one (recommended): Add the startup command toTask Scheduler

  1. Open.Task Scheduler(Win+R →taskschd.msc)
  2. Right-clickCreate a basic task
  3. Name:AnQiCMS AutoStart
  4. Trigger:When the computer starts
  5. Operation:Start the program
  6. Program or script: Browse selectionC:\你的路径\anqicms.exe
  7. Done

Option two: Create a startup script

Create astart.vbsFile, content is:

CreateObject("WScript.Shell").Run "C:\你的路径\anqicms.exe", 0, False

Place the file in the Windows startup directory (Win+R →shell:startup)to do so.

❓ Can you access it locally directly through IP + port without a domain name?

Can.Local development does not require a domain name. Operation method:

  1. When creating a site in PHPStudy,DomainEnterlocalhostor127.0.0.1
  2. Or you can start anqicms.exe directly without creating a PHPStudy site, and then accesshttp://127.0.0.1:8001
  3. When initializing the installation, fill in the 'Website address'http://127.0.0.1:8001

Use directly127.0.0.1:8001AccessNo need to configure NginxAnQiCMS is its own Web server. This method is suitable for development and debugging. However, it is still recommended to use domain name + Nginx in the production environment.<|end▁of▁thinking|>

Common questions

Q: There is no response after double-clicking anqicms.exe?

AnQiCMS is a background service program that does not display any windows. You can access the domain directly through the browser. If you still cannot access it, please check:

  1. Is the firewall allowing the 8001 port
  2. Is the Nginx reverse proxy configuration correct
  3. Is there another program using the 8001 port

Q: Does the service stop after closing the command line window?

Double-clickanqicms.exeNo command line window appears when running. If running through the command line, closing the window will stop the service. It is recommended to write a vbs script to hide the execution.

Related articles

Installation of Anqi CMS - Baota panel deployment

2.2 Tower Panel Deployment Applicable Version: Tower Panel 7.9.3+. Tower Panel Deployment is divided into two methods: traditional deployment (uploading installation packages, configuring reverse proxy) and Docker one-click deployment. This chapter will introduce the traditional deployment method first.Preparation A Linux server with Baota panel installed (CentOS / Ubuntu / Debian are all okay) A domain name resolved to the server (such as www.anqicms.com) MySQL 5.6.35+ installed (recommended 5.7+ or 8.0) Download AnQiCMS Linux package from the official website or GitHub Method one: Baota 7

2026-07-18

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

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

Deployment of multiple sites on the same server for AnQi CMS

The AnQiCMS supports running multiple independent sites on the same server, each with its own domain name, database, template, and administrator. This chapter details the complete steps and注意事项 for multi-site configuration.Plan one: Multi-site management (recommended) Eligibility: A main AnQiCMS site that is already installed and running. This plan uses the built-in multi-site management feature of AnQiCMS, where all sites share the same AnQiCMS program but run independently.Do not copy the code multiple times. Preparations Have deployed and run a AnQiCMS main site (port 8001) The main station background has Multi-site management Menu permissions (default installed sites have it)

2026-07-18