As an experienced website operation expert, I know how important it is to clearly understand the file structure and key paths when managing and maintaining the AnQiCMS website.Especially when performing configuration adjustments, template modifications, troubleshooting, or multi-site management, quickly locating the installation root directory path of AnQiCMS can greatly enhance our work efficiency.

AnQiCMS as a modern content management system developed based on the Go language, its deployment methods are flexible and diverse, ranging from running directly on the server, to management through Baota, 1Panel, and other panels, to containerized deployment. Under each method, the strategy for finding the root directory path is different.Next, I will explain in detail how to quickly and accurately view the installation root directory path of AnQiCMS according to different deployment environments.

一、Direct installation and running environment (Linux/Windows/macOS)

If you are downloading the AnQiCMS installation package directly to the server or local machine and unzipping it to run, finding its root directory path will be relatively straightforward.

In this case, the installation root directory of AnQiCMS is usually the folder where you unpack the installation package.In this folder, you will see some iconic files and directories that together constitute the core of AnQiCMS.anqicms, on Windows,anqicms.exe).

In addition, you will also find the following important files and directories:

  • config.json: This is the AnQiCMS configuration file, which includes key settings such as ports and databases.
  • template/Directory: Stores website template files.
  • public/Directory: Stores static resources, such as CSS, JS, images, etc.
  • start.shandstop.sh(Linux/macOS):用于启动和停止AnQiCMS服务的脚本文件,这些脚本中往往会明确定义AnQiCMS的运行路径(English)BINPATH).

Therefore, if your AnQiCMS is installed directly/www/wwwroot/anqicms.com/The directory, then this directory is the installation root directory of AnQiCMS. You just need to navigate to the directory containing these files through the file manager or command line.

English: Through Baota/1Panel and other panels to manage the environment

For users who deploy AnQiCMS through panel management tools like Baota Panel or 1Panel, you need to use the panel's management interface to locate the root directory path.

If you installed AnQiCMS through the "Go projectYou can log in to the Baota panel, click the "WebsiteHere, you will see the list of AnQiCMS projects you have deployed./www/wwwroot/yourdomain.com/anqicmsThe directory where this executable file is located,/www/wwwroot/yourdomain.com/It is the root directory path of AnQiCMS. It is also often directly pointed out in the execution of commands.

If you are deploying AnQiCMS via Docker in Baota Panel or 1Panel:This situation is a bit more complex because it involves container isolation.Under Docker deployment, the AnQiCMS application itself runs inside the container, and the root directory path is fixed inside the container./app/.

For example, if you create a new site in the multi-site management of AnQiCMS, the recommended format for the "site root directory" is/app/your_domain_underscored. This means inside the Docker container,anqicmsThe executable file and its related configuration files and directories are located/app/under.

To view the actual path mappings of Docker containers on the host machine, you may need to log in to the host machine and usedocker inspect <容器ID或名称>command to view the container's details, especially itsMounts(Mount point)part, to determine which path on the host machine is mapped to the container/apppath. However, for daily operations, it is important to understand the internal structure of the container/appAs the root directory of the application is usually sufficient.

Section 3: General Troubleshooting and Verification Methods

If the above methods still cannot determine the issue, or if you want to further verify, you can try the following general troubleshooting techniques:

  1. Searchconfig.jsonfile:No matter how AnQiCMS is deployed,config.jsonfiles usually exist in the root directory of their application. Log in to your server using SSH,find / -name "config.json"Command (may take some time) to search for the file. Once found,config.jsonthe directory is the installation root directory of AnQiCMS.
  2. Check the startup script or runtime log:If you have permission to access the server, you can view the script file used to start AnQiCMS (such asstart.sh)or its generated run logs. These files often contain path information when the program starts. For example,start.shis defined inBINPATHVariable, it explicitly points out the path of the executable file, that is, the root directory.
  3. View running processes:On a Linux server, you can useps -ef | grep anqicmsCommand to view the running processes of the AnQiCMS program. The process information will usually display the full path of the executable file, such as/www/wwwroot/anqicms.com/anqicms, which directly reveals its root directory.

Define the root directory path of AnQiCMS, which is the foundation for your efficient website management.Whether it is modifying the configuration, debugging the template, or performing fault diagnosis, this core information is indispensable.