What are the detailed steps for installing AnQiCMS with Docker on Baota panel?
As an experienced CMS website operation person in the security industry, I know that a smooth deployment process is crucial for the quick launch and stable operation of the website.Our team loves AnQi CMS for its lightweight and efficient Go language and powerful SEO features.Deploying AnQi CMS combined with Docker technology via Baota panel, which has also enhanced the convenience and flexibility to a new level.
The following is a detailed explanation of the complete steps to install AnQi CMS using Docker on the Baota panel:
Important preparation work before deployment
Before the formal installation of Anqicms, we need to ensure that your Baota panel environment is ready.
First, please confirm that your Baota panel version meets the requirements, the document clearly states that Docker deployment is applicable to Baota panel version 9.2.0 and above, and demonstrates it with version 9.5.0.If your panel version is too low, it is recommended that you upgrade it first.
The Baota panel has been installed and logged in, you need to activate and check the Docker function.The Docker entry is usually located in the left menu, if not found, please go to the 'Panel Settings' to enable 'Docker Display'.When you first use the Docker feature, the Baota panel will prompt you to 'install immediately' the Docker engine, please make sure to complete this installation step.
Before installing the AnQi CMS container, a crucial prerequisite is to install the Docker version of MySQL database.Search and install MySQL in the Docker App Store of the Baota panel.According to your server memory situation, you can choose version 5.6 or 5.7 (recommend choosing 5.6 for less than 2G memory).During the installation process, please be sure to check "Allow external access" and remember or copy the root password displayed on the MySQL details page after installation. This is the necessary information for the CMS to connect to the database later on.
Install Anqicms through the Docker App Store
After completing the above preparation, you can now start installing the Anqi CMS application.
In the Docker interface of the Baota panel, click the 'App Store' tab.Enter 'anqicms' in the search box, and the system will list the Docker images of Anqicms CMS.Click the 'Install' button in the search results to enter the installation configuration interface.
In the configuration interface, you need to fill in several key pieces of information:
- Website domain:Enter the domain name you want to bind to AnQi CMS, for example
www.yourdomain.comMake sure that this domain has been resolved to your server IP address in advance. - Database name:Default to
anqicms. If you plan to deploy multiple AnQi CMS instances on the same server, please set a different database name for each instance to avoid data conflicts. - Database Password:Enter the root password you obtained when installing the Docker version of MySQL in the previous step.
- Port:Default to
8001Similarly, if you need to install multiple security CMS, please allocate an unoccupied port number for each instance, such as8002/8003etc.
Check for accuracy and then click the "OK" button to start the installation. The installation process for the Docker container may take 1 to 5 minutes, please be patient and wait until the installation is complete.After installation, you will see the container named in the Docker container listanqicmsor a container with a custom name, and the status should be running.
The first use and management of the website
After installation, the Baota panel usually automatically configures the Nginx reverse proxy, forwarding the requests bound to your domain to the specified port of the Anqi CMS Docker container.
Now, you can enter the domain name you previously set in your browser (for examplehttp://www.yourdomain.com/Access by doing this. AnQi CMS will guide you to the website's initial installation interface.On this page, you may need to confirm the database information again, set up an administrator account and password (please make sure to use a complex password), and configure the website address and other basic information.
After completing the initial installation, your secure CMS website can be used normally.
The backend management address of AnQi CMS is unified as:您的域名/system/. For example, if your website domain ishttp://www.yourdomain.com/Then the backend access path ishttp://www.yourdomain.com/system/.
When you first log in to the background, the system will provide a default administrator account and password:
- Default account:
admin - Default password:
123456
It is strongly recommended that you change the default administrator account and password immediately after your first login to ensure website security.
Successfully deployed AnQi CMS through Docker on Baota panel, you can start enjoying the efficient content management experience it brings.
Frequently Asked Questions (FAQ)
How to install multiple AnQiCMS instances on the same Baota panel server?
To run multiple AnQiCMS instances on the same server, the core is to allocate independent resources for each instance. When installing AnQiCMS through the Docker app store, you need to:
- Allocate different ports:Specify a different Docker container port for each AnQiCMS instance (e.g., 8001, 8002, 8003, etc.).
- Use different databases:Set a unique database name for each instance.
- Bind different domain names:Bind an independent website domain to each AnQiCMS instance in the Baota panel.The Baota panel's Docker application store automatically handles the corresponding Nginx reverse proxy configuration during installation, forwarding requests to the corresponding Docker container ports for different domain names.
2. After installation, if the website or backend is inaccessible, how should I troubleshoot?
When the website or backend is inaccessible, you can troubleshoot by following these steps:
- Domain name resolution check:Make sure your domain is correctly resolved to the server IP address. You can use
ping 您的域名ornslookup 您的域名Command check. - Docker container status:Log in to Baota panel, enter the Docker management interface, check
anqicmsIs the container running. If not running or in an abnormal state, check the logs for troubleshooting. - Port conflict check:Confirm that the port assigned to the Docker container (for example, 8001) is not occupied by other services on the server. You can use it on a Linux server.
lsof -i:端口号Check the command. If the port is occupied, you may need to terminate the occupying process or change the port of AnQiCMS container. - BaoTa website configuration:Check the site configuration under the "Website" menu of the Baota panel. Confirm that the target address and port of the reverse proxy are consistent with the port of your AnQiCMS Docker container (for example
https://en.anqicms.com) - Firewall settings:Check the server firewall and Baota panel security group settings to ensure that your website access ports (usually 80 and 443) and AnQiCMS Docker container ports (such as 8001) are open.
What are the default administrator account and password of AnQiCMS?
After the first installation and initialization of AnQiCMS, the default administrator account isadmin, and the default password is123456. To ensure the security of your website, it is strongly recommended that you change these default credentials immediately after logging into the backend.