What is the first-time installation and deployment process of AnQiCMS on a Linux server?

Calendar 👁️ 73

In the digital wave, an efficient and stable content management system (CMS) is the foundation for the success of corporate and personal website operations.AnQiCMS (AnQiCMS), this lightweight system developed based on the Go language boasts excellent performance, flexible customization capabilities, and deep SEO-friendliness, and is gradually becoming the preferred choice for many small and medium-sized enterprises and content operation teams.It is not only easy to deploy, but also has high running efficiency, and can effectively resist many security threats, protecting the website.

If you are preparing to deploy AnQiCMS on your Linux server and are curious about the process of the first installation, then this content will explain it in detail for you, helping you take the first step easily.We will take a perspective from an experienced website operations expert, breaking down each link of installation and deployment clearly, ensuring that you can complete the setup successfully.

The preparation before deployment: being solid and resolute is the key

Before we officially begin the installation, we need to do some basic preparations, which is as important as laying the foundation before building a house.

First, you need a server running a Linux operating system, such as Ubuntu, CentOS, Red Hat, or Debian, etc.At the same time, ensure that your server has a stable network connection and that you are familiar with basic operations such as SSH connections and file transfers on the server.

Secondly, as AnQiCMS requires a database to store content, you need to ensure that the MySQL database service is installed and running on the server.If you choose a graphical management tool like Baota Panel, you can usually install and manage the database directly on the panel, saving a lot of command line operations.

Finally, don't forget to prepare a domain name for your website and correctly resolve it to your server's IP address. This will be the entry point to access the AnQiCMS website.

The selection of installation path: Distinguishing between Baota Panel and Command Line

There are usually two mainstream methods for deploying AnQiCMS under Linux environments:

  1. Deploy visually using Baota panel (or 1Panel and other panels)This method is particularly suitable for those who are not familiar with command line operations or hope to efficiently manage servers through a graphical interface. The Baota panel greatly simplifies the configuration of the environment and the management process of websites.
  2. Deploy manually via command lineFor users familiar with Linux operations, or those who追求极致定制、hope to have a deeper control over the server environment, command-line deployment is a more direct choice.

Next, we will respectively introduce these two deployment methods.

Path one: Deploy AnQiCMS easily with the Baota panel.

The Baota panel greatly reduces the threshold for server management with its friendly graphical interface.Recommend your Baota panel version to be above 7.9.3 for convenient deployment using its "Go project" feature.

  1. Create the site directory and upload the installation package.First, log in to your server via SSH or navigate directly to the file management interface of the Baota panel, and go to/www/wwwroot/Directory. Create a new folder for your AnQiCMS website under this directory, usually named after your domain, such asanqicms.com.

    Next, from the AnQiCMS official website (https://en.anqicms.com/download) Download the latest Linux installation package (usually)anqicms-linux-vX.X.X.zip). Upload this compressed package to the directory you just createdanqicms.comInside the folder, then use the file management feature of the Baota panel, right-click on the compressed package to unzip it, make sure that all the files of AnQiCMS are correctly placed inanqicms.comdirectory.

  2. Add Go project in Baota panelIn the left menu of the Baota panel, click the "Website" option, then select "Go project" (if your Baota version is older, it may be "Other projects" or "General projects"). Click the "Add Go project" button, and in the pop-up configuration window, you need to fill in the following information:

    • Project Execution File: Points to the executable file in the AnQiCMS extraction directory, for example/www/wwwroot/anqicms.com/anqicms.
    • Project Name: You can name it freely, for exampleAnQiCMSUsed to identify the project in the Baota panel.
    • Project port: Default fill8001This is the port where the AnQiCMS program runs itself.If in the future you need to deploy multiple AnQiCMS instances on the same server, each instance needs to use a different port.
    • Execute the command: Same as the path to the project's executable file, for example/www/wwwroot/anqicms.com/anqicms.
    • Running user: Usually selectwww.
    • Boot up: It is recommended to check it to ensure that AnQiCMS can run automatically after the server restarts.
    • Bind domain: Fill in the domain name you have prepared for AnQiCMS.

    After confirming that the information is correct, click 'Submit' to complete the project addition.

  3. Configure Nginx's pseudo-static rulesThis step is crucial, as it determines whether your website can be accessed normally through the domain name.In the "Website" list of the Baota panel, find the site you just added, click the "Settings" button on the right.

    First, in the 'Website Directory' tab, pleaseRunning directoryis modified topublic, that is/www/wwwroot/anqicms.com/publicand save.

    Later, switch to the "Static" tab. Clear the default content and paste the following Nginx rewrite rules:

    location @AnqiCMS {
        proxy_pass https://en.anqicms.com;
        proxy_set_header   Host             $host;
        proxy_set_header   X-Real-IP        $remote_addr;
        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
    }
    error_page 404 =200  @AnqiCMS;
    location / {
       try_files $uri $uri/index.html @AnqiCMS;
    }
    

    The role of this rule is to forward all access requests to your domain through a reverse proxy to the AnQiCMS program running8001Port, and ensure the elegance and compatibility of the URL. After saving the rules, the Nginx configuration is complete.

  4. Initialize installation websiteNow, open your browser and enter the domain you have bound.If everything goes well, you will see the initialization installation interface of AnQiCMS.Here, you need to fill in the database connection information (including database address, port, username, and password), as well as your AnQiCMS backend administrator's account and password.Please remember the administrator account and password you have set, as they will be your credentials for managing the website in the future.Fill in the information, click install, wait a moment, and your AnQiCMS website will be successfully deployed!

Second path: manually deploy AnQiCMS via command line.

For those who prefer to operate directly in the Linux command line, manually deploying AnQiCMS is also direct and efficient.Assuming you have already installed Nginx and MySQL, and have a basic understanding of their configurations.

  1. Download and extract the installation packageConnect to your Linux server via SSH. UsewgetDownload the Linux version installation package from the AnQiCMS official website and place it in the root directory of your desired website, for example/www/wwwroot/anqicms.com.

    cd /www/wwwroot/anqicms.com
    wget https://en.anqicms.com/download/anqicms-linux-vX.X.X.zip # 请替换为最新版本链接
    unzip anqicms-linux-vX.X.X.zip
    

    After unpacking, make sureanqicmsThe executable file and all related resources are located in this directory.

  2. Add a scheduled task to ensure the program runs continuously.To keep the AnQiCMS program running in the background and automatically recover after server restarts, we can set up a scheduled task to monitor and start it.

    First, open the task scheduler editor:

    crontab -e
    

    In the opened editor, add the following command line:

    */1 * * * * /www/wwwroot/anqicms.com/start.sh
    

    The meaning of this command is to check and execute once every minuteanqicms.comUnder the directorystart.shscript.start.shThe script usually contains logic to check the AnQiCMS process and start it as needed.

    save and exitcrontabAfter the editor, execute once manually.start.shThe script starts AnQiCMS immediately:

    cd /www/wwwroot/anqicms.com
    ./start.sh
    
  3. Configure Nginx reverse proxyNext is to configure Nginx, forwarding external requests to the port where AnQiCMS is running. You need to edit the Nginx site configuration file, usually located/etc/nginx/conf.d/or/etc/nginx/sites-available/./www/wwwroot/anqicms.comAs the root directory of the site,dev.anqicms.comFor example, your Nginx configuration may be as follows:

    server
    {
        listen       80; # 监听80端口
        server_name  dev.anqicms.com; # 替换为您的域名
        root         /www/wwwroot/anqicms.com/public; # 网站运行目录指向AnQiCMS的public文件夹
    
        location @AnqiCMS {
            proxy_pass https://en.anqicms.com; # AnQiCMS程序运行的端口
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        }
        error_page 404 =200  @AnqiCMS; # 确保404页面也能被AnQiCMS处理
        location / {
           try_files $uri $uri/index.html @AnqiCMS; # 优先查找静态文件,否则转发给AnQiCMS
        }
        access_log /var/log/nginx/dev.anqicms.com_access.log; # 配置访问日志
        error_log /var/log/nginx/dev.anqicms.com_error.log; # 配置错误日志
    }
    

    Configuration

Related articles

Which operating systems does AnQiCMS support for installation and deployment?

AnQiCMS: Cross-platform deployment, building a secure and efficient website content management system As an experienced website operations expert, I know that the core value of a CMS system is not only in its powerful functions, but also in its flexible deployment and convenient operations.AnQiCMS is a product that performs well in this regard.

2025-11-06

What types of data does the 'Update Cache' feature on AnQiCMS backend mainly clean up?

As an experienced website operations expert, I am well aware of the importance of 'caching' for website performance and data real-time accuracy.In the daily operation of AnQiCMS (AnQi CMS), the background "update cache" function seems simple, but it actually plays a core role, ensuring the timely update of our website content and smooth operation of the system.Then, what types of data does this function mainly clean up?Next, I will explain it to you in detail.

2025-11-06

How to ensure that each AnQiCMS site's data is independent when deploying multiple sites on the same server?

In today's digital age, efficiently managing multiple websites has become a core need for many businesses and individual operators.AnQiCMS (AnQiCMS) is an enterprise-level content management system based on the Go language, providing us with an excellent solution with its high performance, ease of use, and multi-site support.How to ensure that each site's data is completely independent and not interfere with each other when you need to deploy multiple AnQiCMS sites on the same server is a crucial issue in operation and maintenance.As an experienced website operations expert, I will delve deep into this point with you

2025-11-06

After the AnQiCMS program upgrade, if the backend interface does not change, how should I handle it?

After you upgrade AnQiCMS, you eagerly open the background, only to find that the interface is still the same, without any change?This is indeed a confusing scene. As an expert who has been deeply involved in website operations for many years, I can confidently tell you that this is a fairly common phenomenon, not a problem with AnQiCMS itself, and it usually only requires a few simple steps to solve it easily.AnQiCMS is known for its efficiency and simplicity, even the 'illusion' after the program upgrade is often due to some common operational details.We know that AnQiCMS is developed in Go language

2025-11-06

What are the specific recommended steps for installing AnQiCMS using the Baota panel?

Dear reader, hello! As an experienced website operations expert, I am honored to provide you with a detailed explanation of the installation secrets of AnQiCMS (AnQiCMS).AnQi CMS is an enterprise-level content management system developed based on the Go language, with its high performance, high security, and flexible customization features, it is becoming the preferred choice for more and more small and medium-sized enterprises and content operation teams.It is not only easy to deploy and run at high speed, but also effectively avoids many common website security issues, while providing powerful content management, SEO optimization, and multi-site support features

2025-11-06

How to configure Nginx reverse proxy rules when installing AnQiCMS in the Baota panel?

As an experienced website operation expert, I am honored to give you a detailed explanation of the exquisite configuration of Nginx reverse proxy rules when installing AnQiCMS in the Baota panel.AnQiCMS as an enterprise-level content management system developed based on the Go language, with its high efficiency, security, and SEO-friendly features, is gradually becoming the preferred choice for many small and medium-sized enterprises and content operators.To ensure that AnQiCMS runs stably and efficiently in environments like Baota Panel and provides services externally, the correct configuration of Nginx reverse proxy is an indispensable part.

2025-11-06

Why does Baota panel recommend deploying AnQiCMS in the 'Go project' way?

In the practice of website operation, choosing a highly efficient and stable content management system is crucial, and AnQiCMS (AnQiCMS) is gaining popularity among more and more operators with its unique advantages based on the Go language.When talking about deploying AnQiCMS on the Baota panel, a common question arises: why do official and experienced users recommend using Baota's "**Go project**" method instead of traditional "other projects" or Docker container deployment?This lies behind a deep consideration of performance, efficiency, and operational convenience.

2025-11-06

How to deploy AnQiCMS if the Baota panel version is low and does not directly support 'Go project'?

I am glad to elaborate on this common but somewhat tricky issue in website operation.AnQi CMS is an advanced content management system developed based on the Go language, and its deployment method is usually different from the traditional PHP environment.When you are faced with a relatively low version of the Baota panel and find that it does not directly provide deployment options for "Go projects", it indeed requires some clever strategies.Don't worry, this does not mean that you cannot enjoy the efficiency and convenience brought by AnQiCMS. We have a way to make it run stably on your server.

2025-11-06