As an experienced CMS website operation personnel in the security industry, I know that the deployment of the content management system is the cornerstone of successful operation.AnQiCMS has become the ideal choice for many small and medium-sized enterprises and content operation teams with its high performance, security, and ease of use based on the Go language.Installing AnQiCMS on a Linux server using the Baota panel can greatly simplify the deployment process, allowing you to quickly get involved in content creation and management.
This article will introduce you in detail how to install and configure AnQiCMS on a Linux server using the Docker function of Baota panel, and provide guidance for multi-site operation.
Install AnQiCMS on Linux server using Baota Panel
Preparation for Baota Panel
Before starting the installation of AnQiCMS, please ensure that your Linux server has correctly installed and is running Baota Panel. The installation process of Baota Panel is simple, you can visit its official website (Download the latest installation script and follow the instructions.)Get 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 look for 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 ensure 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 "App Store" or directly enter "mysql" in the search box to search.Find the MySQL application and click Install.In the installation configuration, you can select the version of MySQL.If your server memory is greater than 2GB, it is recommended to choose MySQL 5.7 or higher versions; if the memory is lower, such as less than 2GB, then it is recommended to choose MySQL 5.6 version.Please make sure to check the 'Allow External Access' option, which is crucial for AnQiCMS to connect to the database.
After MySQL installation is successful, click its 'Details' link, and you will see the MySQL root user password.Please make sure to copy and keep this password safely, as it will be used when installing AnQiCMS later.
Use Docker to install AnQiCMS application
After installing MySQL, we can install AnQiCMS.Search for 'anqicms' in the Docker App Store on the Baota panel, find the AnQiCMS app and click the 'Install' button.
On 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
anqicmsIf you plan to install multiple AnQiCMS instances on the same server, please make 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 to enter it correctly.
- Port:This is the port that the AnQiCMS service listens on within the Docker container, usually it is
8001If you plan to install multiple AnQiCMS instances on the same server, each instance needs to listen on a different port, for example,8001/8002/8003but the port within the container is always filled in,8001The server port can be incremented based on the actual number of containers you deploy.
After filling in, 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 show the status of AnQiCMS running.
Website initialization and access
After AnQiCMS is installed and started with Docker, you need to perform the first visit to complete the initial setup.
Enter the configured website domain in your browser, for examplehttp://www.anqicms.com/You will be directed to the initialization installation interface of AnQiCMS.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 backend administrator account and password.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/Then the admin 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.Implement multiple sites in the Docker environment of the Baota panel, mainly by creating multiple AnQiCMS Docker container instances and configuring different ports and reverse proxies for each instance.
Firstly, you need to repeat the steps of "Using Docker to install the AnQiCMS application" mentioned above 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 a different database name.
Next, configure reverse proxy for each new site in the Baota panel:
Select 'Website' from the left menu of the Baota panel, then click the 'Reverse Proxy' tab, and click the 'Add Reverse Proxy' button.
In the pop-up interface, enter the domain name of the new site, for example,dev.anqicms.com. In the 'Target URL' field, enterhttp://127.0.0.1:端口号The 'port number' here should be the unique server port you assigned when installing the corresponding AnQiCMS Docker container (for example)http://127.0.0.1:8002).
Complete the reverse proxy setup