As an experienced website operator, I am well aware of the importance of an efficient and stable content management system for enterprises and self-media.AnQiCMS with its high-performance, modular design based on the Go language, as well as its rich SEO features, has become my first choice.It not only deploys simply, runs safely, and has an elegant interface, but also provides excellent performance in high-concurrency environments, effectively helping small and medium-sized enterprises with content marketing, SEO optimization, and even multilingual promotion.Today, I will guide everyone step by step on how to quickly deploy and start AnQiCMS in the commonly used Baota panel or 1Panel environment, helping you efficiently manage website content.
Preparation before deploying AnQiCMS
Before starting the installation of AnQiCMS, we need to ensure that the server environment meets the basic requirements.Whether it is Baota panel or 1Panel, they both support simplifying the deployment process through Docker container technology, which is also the installation method I strongly recommend.Therefore, please make sure that the Docker service is installed and enabled on the server.In addition, AnQiCMS also requires MySQL database support, it is recommended that you install the Docker version of MySQL from the app store on the panel.For website access, you need a web server, such as OpenResty integrated by 1Panel or Nginx from Baota panel.These panels usually provide a graphical interface to assist in installing these dependencies.
Quickly install AnQiCMS in the 1Panel environment
1Panel with its simple interface and powerful Docker management capabilities makes the deployment of AnQiCMS effortless.
If you have not installed 1Panel yet, please refer to the installation instructions on its official website.After installation, first make sure that OpenResty and MySQL are installed on your server.You can find and install these necessary components with one click in the 1Panel app store.
Next, we will deploy the AnQiCMS Docker container.Please navigate to the 'Container' management interface of 1Panel and select 'Create Container'.In the pop-up interface, you need to specify a name for the container, for exampleanqicmsEnter it and then click the "Manual Input" option in the mirror options, then typeanqicms/anqicms:latestAs the Docker image name. In the port configuration section, it is recommended to set both the server port and the container port to8001. If you plan to deploy multiple AnQiCMS instances on the same server in the future, please allocate different server ports for each instance (such as8002/8003But the container internal port is still maintained8001.
To ensure the continuous stable operation of AnQiCMS, please continue to scroll down to the restart rule section and select the strategy of 'restart after failure' or 'restart if not manually stopped'.This way, even in the event of an unexpected situation (such as server restart or container crash), the AnQiCMS container can automatically recover and run.Finally, click confirm to complete the creation of the container.
The container has been created, the next step is to configure website access. Please click on the "Website" menu on the left, select "Create Website" and configure a "Reverse Proxy".Enter the domain name you plan to use to access the AnQiCMS site in the main domain name field (for exampleyourdomain.comThe proxy address points to127.0.0.1:8001. The port you enter must match the server port you have allocated for the AnQiCMS container. After completing the configuration, click confirm to create the reverse proxy site.
Now, you can access the domain you previously configured via a web browser (for examplehttp://yourdomain.com/)。AnQiCMS will guide you through the first-time installation interface, where you need to configure database connection information, set up an administrator account and password.After the installation is complete, the AnQiCMS admin address is usually您的域名/system/.
Install AnQiCMS quickly in the Baota panel environment
The Baota panel is a widely used server management tool among domestic users and also provides a convenient Docker environment for deploying AnQiCMS.
If you have not installed Baota panel yet, please refer to the installation instructions on their official website and ensure that the panel version is above 9.2.0 to enjoy the **Docker deployment experience.After installation, you first need to enable the Docker feature in the left menu of the Baota panel (if it is not displayed, you may need to enable it in the "Panel Settings").
Next, you need to install MySQL database for AnQiCMS. Search in the Docker app store of Baota panel.mysqlAnd click Install. In the installation options, it is recommended to select an appropriate MySQL version based on the server memory size (for example, choose version 5.6 if the memory is less than 2GB, otherwise you can choose version 5.7 or higher), and make sure to check the option 'Allow external access'.After installation, please click on the 'Details' link of the MySQL container, copy and keep the root user's database password safely, which will be used during the subsequent installation of AnQiCMS.
Now, we can deploy the AnQiCMS application. Search for it in the Docker App Store on Baota panelanqicmsClick the 'Install' button. In the pop-up configuration window, you need to fill in the following information: Your website domain (for examplewww.anqicms.com)A unique database name(if you plan to deploy multiple AnQiCMS instances, please set a different database name for each instance)as well as the MySQL root password you previously recorded. As for the port, the default recommendation is to use8001However, if you plan to install multiple AnQiCMS, please allocate a different port for each instance (such as8002/8003Wait). Fill in the information and click "OK" to start the installation. Please wait 1-5 minutes until Docker is installed and configured.
After AnQiCMS is installed, the website will default to set an administrator accountadminand password123456. You can access it through the browser您的域名/system/for examplehttp://dev.anqicms.com/system/To enter the background management interface. After the first login, please change the default administrator account and password immediately to ensure website security.
Advanced guide to deploying multiple AnQiCMS sites (for Baota panel)
AnQiCMS has a major advantage in its multi-site management feature, which means you can manage multiple websites under the same Docker deployment of AnQiCMS without copying multiple sets of code, greatly improving resource utilization and management efficiency.
In order to implement multi-site deployment, you first need to add reverse proxy for the new website in the Baota panel.In the Baota panel's 'Website' management interface, click the 'Reverse Proxy' option, then select 'Add Reverse Proxy'.In the pop-up interface, enter the domain name of your new site for the main domain and set the target address tohttp://127.0.0.1:8001(Please note that the port should be consistent with the server port of your main AnQiCMS container).
Next, you need to log in to the backend management interface of the main AnQiCMS site.Find the "Multi-site Management" feature in the left menu and then click "Add New Site".Please fill in the form as per the actual situation that pops up:
- Site name:A friendly name used to distinguish different sites.
- Site root directory:This is a key setting. Please be sure to use
/app/start, and based on the domain name of your new site, generate a unique and non-repetitive directory name (such as/app/dev_anqicms.comThis directory will be used to independently store cache, configuration files, and other data for the new site, to avoid data confusion with the main site or other sub-sites. - Website address:Enter the full access URL of your new site (for example
http://dev.anqicms.com) - Administrator account password:Set up an independent backend admin account and password for the new site.
- Database name:Similarly, set a new, unique database name for your new site (for example