How to use Baota panel to install AnQiCMS on a Linux server?
As an experienced security CMS website operation personnel, I know that the deployment of the content management system is the foundation of operational success.AnQiCMS with its high performance, security, and ease of use based on the Go language has become the ideal choice for many small and medium-sized enterprises and content operation teams.Install AnQiCMS on a Linux server with the Baota panel can greatly simplify the deployment process, allowing you to quickly immerse yourself in content creation and operation.
This article will detail how to install and configure AnQiCMS on a Linux server using the Docker feature of Baota panel, and provide guidance for multi-site operations.
Install AnQiCMS using Baota panel on a Linux server
Preparation for Baota panel
Before starting the installation of AnQiCMS, please ensure that your Linux server has correctly installed and run Baota Panel. The installation process of Baota Panel is simple, and you can visit its official website (https://www.bt.cn/new/download.htmlGet the latest installation script and follow the instructions.
After the Baota panel is installed, we need to enable the Docker feature.Please log in to your Baota panel and find the "Docker" option in the left menu.If you can't see it, it may be hidden. You can find the 'Panel Menu Hide' option in 'Panel Settings' to make sure Docker is displayed.When you first enter the Docker management interface, the system may prompt you to install the Docker service, please click "Install Now" to complete the deployment of the Docker environment.
Install MySQL database
AnQiCMS needs a database to store its data.In the Docker environment, we recommend installing MySQL through the Baota panel's Docker app store, which ensures compatibility and convenience.
In the Docker management interface, switch to the "App Store" or directly enter "mysql" in the search box to search.After finding the MySQL application, click Install. In the installation settings, you can select the version of MySQL.If your server memory is greater than 2GB, it is recommended to choose MySQL 5.7 or a higher version;If memory is low, such as less than 2GB, it is recommended to choose MySQL 5.6 version.Please make sure to check the "Allow External Access" option, which is the key for AnQiCMS to connect to the database.
After the MySQL installation is successful, click its "Details" link, and you will see the root user password of MySQL.Make sure to copy and keep this password safe, it will be used later when installing AnQiCMS.
Install AnQiCMS using Docker
After installing MySQL, we can install AnQiCMS.Search for 'anqicms' in the Docker app store on Baota panel, find the AnQiCMS app and click the 'Install' button.
In the AnQiCMS installation configuration interface, you need to fill in the following information:
- Website domain:Enter the domain name you plan to use to access the AnQiCMS site, for example
www.anqicms.com. - Database name:AnQiCMS will create its data tables in this database. The default name is usually
anqicms. If you plan to install multiple AnQiCMS instances on the same server, be sure to set a unique database name for each instance to avoid data conflicts. - Database Password:This is the root user password you copied from the MySQL details. Please make sure it is correct.
- Port:This is the port that the AnQiCMS service listens on inside the Docker container, typically it is
8001. If you plan to install multiple AnQiCMS instances on the same server, each instance needs to listen on a different port, for example8001/8002/8003etc., but the port in the container is always filled out8001. The server port can be incremented based on the number of containers you actually deploy.
After filling out, click "OK" to start the installation. The installation process may take 1 to 5 minutes, please be patient.After installation, the Docker container list will display the status that AnQiCMS is running.
The initialization and access of the website
After AnQiCMS is installed and started with Docker, you need to perform the first visit to complete the initial settings.
Enter the website domain configured earlier, for examplehttp://www.anqicms.com/You will be guided to the AnQiCMS initialization installation interface.Here, you need to fill in the database connection information (AnQiCMS will automatically pre-fill most of it, just confirm and modify), and set your admin account and password for the backend.After the initial installation is successful, you can access the AnQiCMS front-end website normally.
To access the AnQiCMS admin interface, please enter in your browser您的域名/system/. For example, if your website domain ishttp://www.anqicms.com/The backend access address ishttp://www.anqicms.com/system/. Please change the default administrator account and password when you first log in to ensure website security.
Deploy multiple AnQiCMS sites on a single server.
AnQiCMS supports multi-site management, which means you do not need to deploy a separate set of AnQiCMS code for each site.To implement multiple sites in the Docker environment of Baota panel, mainly through creating multiple AnQiCMS Docker container instances, and configuring different ports and reverse proxy for each instance.
First, you need to repeat the steps of installing the AnQiCMS application using Docker to install an AnQiCMS Docker container for each new site.Ensure that each new container is configured with a unique server port (such as 8002, 8003, etc.), and points to different database names.
Next, configure reverse proxy for each new site in the Baota panel:
In the left menu of the Baota panel, select 'Website', then click the 'Reverse Proxy' tab, and click the 'Add Reverse Proxy' button.
Enter the new site domain in the pop-up interface, for exampledev.anqicms.comIn the 'Target URL' field, enterhttp://127.0.0.1:端口号. The port number should be the unique server port you assigned when installing the corresponding AnQiCMS Docker container (for example)http://127.0.0.1:8002)
Reverse proxy setup completed