What are the configuration points for installing AnQiCMS using the BaotaGo project features?
As a website operator who has been deeply involved in content operations and has a deep understanding of AnQiCMS (AnQiCMS), I am fully aware of the importance of a stable and efficient content management system for the operation of a website.AnQiCMS with its high performance, security, and scalability based on the Go language, has become our powerful assistant for managing content, optimizing SEO, and expanding multi-site business.When it comes to installing AnQiCMS using the Go project feature on the Baota panel, there are several key configuration points that we need to pay special attention to in order to ensure that the system can be smoothly deployed and run efficiently.
Firstly, before starting the installation, we need to ensure that the Baota panel version meets the functional requirements of the AnQiCMS Go project.According to the official document, the Baota panel version must be above 9.2.0, and it is usually recommended to upgrade to the latest stable version, such as the 9.5.0 version mentioned in the document, to obtain **compatibility and feature support.In addition, since AnQiCMS requires database support, we need to install and configure the MySQL database in the Baota Docker App Store in advance, it is recommended to choose version 5.7, and make sure to check the option to allow external access during the installation, and keep the MySQL root password safe, which will be used during the initialization installation of AnQiCMS.
After completing the preliminary preparation, you can deploy AnQiCMS through the Go project feature of Baota.Find the "Website" option in the left menu of the Baota panel, enter the "Go Project" interface, and click the "Add Go Project" button.Here, we need to fill in the configuration items in detail. The project execution file path should point to the executable file of the AnQiCMS program that you have uploaded and unzipped, for example/www/wwwroot/yourdomain.com/anqicms. The project name can be filled in with "AnQICMS" for identification. The project port is usually set to default8001If the same server needs to deploy multiple AnQiCMS instances, each instance must use a different port (such as8002/8003Avoid conflicts. Run the command with the path to the project executable, and choose the user to run.wwwCheck the "Boot with OS" option to ensure that AnQiCMS can run automatically after the server restarts.Finally, bind the domain name you have parsed to the server, and submit the addition of the Go project.
Successfully added Go project, the next step is to perform the initialization installation of AnQiCMS.You need to access the previously bound domain through the browser, the system will guide you to the initial installation interface.At this stage, you need to enter database information, including the database password obtained during the installation of MySQL, and create a new database name for AnQiCMS.At the same time, you also need to set up the background administrator account and password. Please ensure the accuracy of the database account and password, and use a sufficiently complex administrator password to ensure system security.If you encounter installation failure, common reasons include incorrect database account password, insufficient database account permissions to create a database, or the administrator password length does not meet the requirements.
To allow external users to access your AnQiCMS site via a domain name, you need to configure Nginx or Apache reverse proxy.For example, using Nginx, find the settings of your website in the Baota panel, and enter the 'Virtual Host' tab.Need to configure the website's running directory to the unzipped directory of AnQiCMS program/publicFolder. Then, add specific Nginx reverse proxy rules that will forward all requests to your domain to the port where AnQiCMS is running (for examplehttps://en.anqicms.comThis usually involveslocation @AnqiCMS/proxy_pass/proxy_set_header/error_pageandtry_filesWait for instructions. For Apache users, you need to configure a reverse proxy to point to the same running port of AnQiCMS.Properly configuring a reverse proxy is a critical step to ensure that the website can be accessed normally.
If your operational strategy involves managing multiple websites on the same server, AnQiCMS provides powerful multi-site management features.It should be clear that a Go project instance typically runs on a specific port through the Baota Go project feature.To implement multi-site management for AnQiCMS, you do not need to deploy an independent AnQiCMS codebase for each site.On the contrary, you can add a "PHP project" for each additional site in Baota (even if it does not run PHP code), and use it as a reverse proxy.These new "PHP project" sites will be forwarded to the port of the Go project running AnQiCMS via Nginx or Apache's pseudo-static rules.Then, you log in to the AnQiCMS backend, use its "Multi-site Management" feature to add a new site, and specify an independent site name and root directory for each new site, usually/app/域名_comThe form), website address, administrator account password, and database name.This approach allows a single AnQiCMS instance to efficiently manage multiple independent sites, greatly simplifying deployment and maintenance work.
Problems may arise during the entire installation and configuration process. For example, port conflicts are a common issue that can be resolved usinglsof -i:{端口号}Command to check port occupancy and usekill -9 {PID}Terminate the process. Incorrect configuration of pseudo-static rules may also lead to the website being inaccessible, please carefully check the Nginx or Apache configuration.By following detailed steps and understanding these configuration points, you will be able to successfully utilize the BaotaGo project features to deploy and manage AnQiCMS.
Frequently Asked Questions
How should the port for the AnQiCMS Go project be selected, and can it be modified?
AnQiCMS default usage8001Port. If you plan to deploy multiple AnQiCMS instances on the same server, each instance must use a different port to avoid conflicts.You can specify different ports when configuring the BaotaGo project, for example8002/8003Also, if you are manually deploying AnQiCMS in a non-Go project, you can also change the port configuration by modifying the file in the program's root directory.config.jsonFile to change port configuration.
How to implement multi-site management after installing AnQiCMS on Baota panel?
You need to install an AnQiCMS instance through the Go project feature to use the multi-site management feature on the Baota panel.For each subsequent new site, you can add a "PHP project" in the Baota panel and use it as a reverse proxy to forward the requests of the new domain to the port where your AnQiCMS instance is running.Then, log in to the AnQiCMS backend, go to the "Multi-site Management" interface, where you can add and configure the detailed information of each new site, such as site name, root directory, database, etc., to manage multiple independent websites with one AnQiCMS core program.
What are the possible causes and troubleshooting steps if the website cannot be accessed after installing AnQiCMS?
If the AnQiCMS website cannot be accessed after installation, first check if the Go project is running normally, you can check the status through the Baota Go project interface. Secondly, confirm that the reverse proxy rules of Nginx or Apache are correctly configured, including the proxy target address (https://en.anqicms.com)and website root directory settings. If there are no problems with these, you can check if the server firewall has opened the ports for AnQiCMS operation as well as the 80/443 ports.Finally, check if the database information filled in during AnQiCMS initialization is correct, as well as whether the database user has sufficient permissions.Check the running log of AnQiCMS program (usually in the program directory below)running.log) It can also help locate specific errors.