As a senior website operations manager, I am well aware of the importance of an efficient and stable content management system for both enterprises and self-media.AnQiCMS with its high-performance, modular design based on the Go language and 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 you step by step on how to quickly deploy and start AnQiCMS using Docker container technology in common panels like Baota or 1Panel, helping you manage website content efficiently.
Preparation work before deploying AnQiCMS
Before starting the installation of AnQiCMS, we need to ensure that the server environment meets the basic requirements.Whether it is the Baota panel or 1Panel, they both support deploying through Docker container technology to simplify the deployment process, which is also the installation method I strongly recommend.Therefore, please ensure that the Docker service is installed and enabled on the server.Additionally, AnQiCMS requires MySQL database support, it is recommended that you install the Docker version of MySQL from the panel's app store.For website access, you also need a web server, such as OpenResty or Nginx integrated by 1Panel, or Baota panel.These panels usually provide a graphical interface to assist in installing these dependencies.
Install AnQiCMS quickly 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'.anqicms,and select "Manual input" in the mirror options, then enteranqicms/anqicms:latestas the Docker image name. In the port configuration section, it is recommended to set both the server port and the container port to8001If you plan to deploy multiple AnQiCMS instances on the same server in the future, please allocate different server ports for each instance (such as8002/8003English"), but the container internal port still remains8001.
To ensure the continuous and stable operation of AnQiCMS, please continue to scroll down to the restart rules section and select the strategy of 'restart after failure' or 'restart if not manually stopped'.Even if unexpected situations occur (such as server restarts or container crashes), 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 "Websiteyourdomain.com), the proxy address points to127.0.0.1:8001. The port filled here must be consistent with the server port you allocated for the AnQiCMS container. After completing the configuration, click confirm to create the reverse proxy site.
Now, you can access the domain name you previously configured through the browser (for examplehttp://yourdomain.com/)。AnQiCMS will guide you to the first installation interface, where you need to configure the database connection information, set up the administrator account and password.您的域名/system/.
Quickly install AnQiCMS in the Baota panel environment
The Baota panel, as a widely used server management tool among domestic users, also provides a convenient Docker environment for deploying AnQiCMS.
If you have not installed Baota Panel yet, please refer to the installation instructions on its official website and ensure that the panel version is above 9.2.0 to enjoy the **Docker deployment experience.After installation, the first thing you need to do is 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 "Panel Settings").
Next, you need to install MySQL database for AnQiCMS. Search in the Baota panel's Docker App Store.mysqlAnd click to install.In the installation options, it is recommended to select an appropriate MySQL version based on the size of the server memory (for example, choose version 5.6 when the memory is less than 2GB, otherwise you can choose version 5.7 or higher), and make sure to check 'Allow external access'.After installation, please be sure to 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 in the Docker application store of Baota panelanqicms,then click the “Install” button. In the popped-up configuration interface, you need to fill in the following information: your website domain (for examplewww.anqicms.com)、an English 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 recorded earlier. As for the port, the default recommendation is to use8001If you plan to install multiple AnQiCMS, please allocate a different port for each instance (such as8002/8003Wait for 1-5 minutes until Docker installation and configuration are completed. Please click 'OK' to start the installation after filling in the form.
AnQiCMS installation is complete, the website will default to set the administrator accountadminand password123456. You can access it through the browser您的域名/system/[for example]http://dev.anqicms.com/system/To enter the background management interface, please use the default account and password. It is essential to change the default administrator account and password immediately after the first login to ensure website security.
Deploying Multiple AnQiCMS Sites Advanced Guide (Taking Baota Panel as an Example)
AnQiCMS's major advantage lies in its multi-site management feature, which means you can manage multiple websites under the same Docker deployment of AnQiCMS without copying multiple copies of code, greatly improving resource utilization and management efficiency.
To implement multi-site deployment, you first need to add reverse proxy for the new website in the Baota panel.In the "Websitehttp://127.0.0.1:8001(Please note that the port here should be consistent with the port of your main AnQiCMS container server).
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".
- Site Name:A friendly name used to distinguish between different sites.
- Site Root Directory:This is a key setting. Please make sure to use
/app/Start with, and generate a unique and non-repetitive directory name based on your new site's domain (for example/app/dev_anqicms.comThis directory is used for independent storage of new site cache, configuration files, and other data to avoid confusion with the main site or other sub-sites. - Website address:Enter the complete access URL of your new site (for example
http://dev.anqicms.com). - Administrator account password:Set an independent backend administrator account and password for the new site.
- Database name:Similarly, set a new, unique database name for the new site (for example