Firstly, before starting the installation, we need to ensure that the Baota panel version meets the requirements of the AnQiCMS Go project features.According to the official documentation, 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, make sure to check the option to allow external access during the installation process, and keep the MySQL root password securely, as it 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 'Website' in the left menu of the Baota panel and enter the 'Go Project' interface, click the 'Add Go Project' button.Here, we need to fill in the configuration items in detail./www/wwwroot/yourdomain.com/anqicmsThe project name can be filled in as 'AnQICMS' for identification. The project port is usually set to default as8001If multiple AnQiCMS instances need to be deployed on the same server, each instance must use a different port (such as8002/8003[en] Avoid conflicts by using the same) Execute the command with the path to the project's executable file, and the user's choice runs.www[and check "Start up automatically" to ensure that AnQiCMS can run automatically after the server restarts.Finally, bind the domain name you have parsed to the server and submit to complete the addition of the Go project.
After successfully adding the Go project, the next step is to perform the initialization and 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, which includes the database password obtained when installing MySQL, and create a new database name for AnQiCMS.Additionally, you also need to set the background administrator account and password.Please ensure the accuracy of the database account password and use a sufficiently complex administrator password to ensure system security.If installation fails, common reasons include incorrect database account password, insufficient database account privileges to create a database, or the length of the administrator password does not meet the requirements.
To allow external users to access your AnQiCMS site via domain name, you also need to configure Nginx or Apache reverse proxy.For example, using Nginx, find your website settings in the Baota panel and enter the 'URL Rewrite' tab./publicFolder. Then, add specific Nginx reverse proxy rules that will forward all requests to your domain to the port where AnQiCMS is running (for examplehttp://127.0.0.1:8001This usually involveslocation @AnqiCMS/proxy_pass/proxy_set_header/error_pageandtry_filesissue instructions.For Apache users, you need to configure reverse proxy to point to the same port where AnQiCMS is running.Properly configuring 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 clarified that a Go project instance typically runs on a specific port through the BaotaGo project features.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' to Baota for each additional site (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./app/域名_comThe form of it), website address, administrator account password, and database name.This approach allows a single AnQiCMS instance to efficiently manage multiple independent sites, greatly simplifying the deployment and maintenance work.
Some issues may arise during the entire installation and configuration process. For example, port conflicts are a common problem, which can be addressed usinglsof -i:{端口号}Check port occupation status using command, andkill -9 {PID}Terminate the process occupied.Incorrect configuration of pseudo-static rules may also cause the website to be inaccessible, and it is necessary to 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 be selected for the Go project of AnQiCMS, and is it possible to modify it?
AnQiCMS uses by default8001Port.If you plan to deploy multiple AnQiCMS instances on the same server, each instance must use a different port to avoid conflicts.8002/8003[en] Moreover, if you are manually deploying AnQiCMS in a non-Go project manner, you can also change the port configuration by modifying the file in the root directory of the program.config.json[en] file to change the port configuration.
How to achieve multi-site management after installing AnQiCMS on the Baota panel?
To use the multi-site management feature of AnQiCMS on the Baota panel, you first need to install an AnQiCMS instance through the Go project feature.For each subsequent new site, you can add a 'PHP Project' in the Baota panel and use it as a reverse proxy to forward requests for 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 the site name, root directory, database, etc., to manage multiple independent websites with a single AnQiCMS core program.
What are the possible reasons and troubleshooting steps if the website cannot be accessed after installing AnQiCMS?
If the website is inaccessible after AnQiCMS installation, first check if the Go project is running normally, which can be viewed through the status on the Baota Go project interface. Next, confirm that the reverse proxy rules of Nginx or Apache are correctly configured, including the proxy target address (http://127.0.0.1:8001and the root directory settings.If there are no problems with these, check if the firewall on the server is open for the ports where AnQiCMS is running as well as ports 80/443.Finally, check if the database information filled in during AnQiCMS initialization is correct, as well as whether the database user has sufficient permissions.running.log) Can also help locate specific errors.