AnQi CMS is an enterprise-level content management system based on the Go language, designed to provide an efficient, customizable, and easy-to-expand content management solution.As a website operator familiar with content creation and optimization, I understand how important a stable and efficient system is.This article will provide a detailed introduction on how to quickly deploy anq CMS by using the Docker function on the aaPanel dashboard, helping you efficiently build and launch your website.
Preparation: Install aaPanel panel and Docker environment
Before starting the deployment of AnQi CMS, please ensure that the aaPanel panel is already installed and running on your server.If you have not installed aaPanel yet, you can visit the official download page of aaPanel to get the latest installation script and follow the instructions to complete the installation.aaPanel is a powerful server management panel that can simplify the deployment and management of various applications including Docker.
After aaPanel is installed, you need to enable and install the Docker environment in the panel.Please log in to your aaPanel panel and navigate to the "App Store" or "App Market" module in the left menu.In the app store, search and install the "Docker" application.This step is the foundation for the subsequent deployment of the Anqi CMS.
Configure database environment: Install MySQL
AnQi CMS needs a database to store its content and configuration information.In Docker environment, we recommend using a Dockerized MySQL database.In the Docker management interface of aaPanel, you can find and install the MySQL container.
In the Docker management interface, click on the "Create Container" or similar option, and then search for imagesmysql. Choose a version that suits your needs, for examplemysql:5.7ormysql:8.0. During the installation process, please be sure to record the MySQL'srootUser password, this will be the database password you need to provide when installing AnQi CMS.At the same time, it is recommended to check the option to allow external access so that the CMS container can connect to the MySQL container.For servers with low memory configuration (such as less than 2GB), consider using MySQL 5.6 version to optimize resource usage.
Install AnQi CMS with aaPanel's Docker one-click installation
After completing the preparation of the Docker environment and MySQL database, you can now start installing AnQi CMS.
Return to the 'App Store' or 'Application Store' module of the aaPanel panel.Enter "AnQiCMS" in the search box, and the system will display the applications of AnQiCMS.Click the 'Install' button in the search results to enter the installation configuration interface.
In the installation configuration interface, you need to fill in the following key information:
- Domain (Domain): Enter the domain name you plan to use to access the Anqi CMS website, for example
your-domain.comMake sure that the domain name has been correctly resolved to your server IP address. - Port (port): The default port is usually
8001. If you plan to deploy multiple AnQi CMS instances on the same server, or if the port is already occupied, please allocate a different unused port number for each instance, such as8002/8003etc.
After filling in, click the "Confirm" button.aaPanel will automatically pull the AnQiCMS Docker image and complete the container creation and basic configuration.This process may take 1 to 5 minutes, please be patient.If any error messages appear during the installation process, you can usually troubleshoot them by checking the error information and try clicking the 'Restart' button to reinstall.
Failed to process installation: Manually configure reverse proxy
In some cases, aaPanel may not be able to automatically configure the reverse proxy for your website.If your AnQi CMS installation fails to access normally through the domain or displays an incorrect page, you may need to manually set up a reverse proxy.
In the aaPanel panel, navigate to the "WebsiteClick the 'Add Reverse Proxy' button to start creating a new reverse proxy rule.
- Main domain: Enter the domain name you use to access AnQi CMS, for example
test.anqicms.com. - Proxy addressHere you should fill in the address and port that your Anqi CMS container is listening on locally. By default, the address inside the container is
127.0.0.1The port is the one you set when installing AnQiCMS (for example8001). So, here you should fill inhttp://127.0.0.1:8001Ensure that the correct port of the corresponding container is filled in if you have installed multiple AnQiCMS containers and used different ports.
After the configuration is complete, click "Confirm" to save the reverse proxy settings.This will redirect HTTP/HTTPS requests from your domain to the running AnQiCMS Docker container.
First use of the website and backend access
The Aanqi CMS is usually pre-installed in the Docker environment and provides default administrator account information.
- Default administrator account:
admin - Default administrator password:
123456 - Background access address: Add your domain name to
/system/. For example, if your website domain ishttp://your-domain.com/, then the backend access address ishttp://your-domain.com/system/.
Now, you can enter your domain in the browser to access the front-end of the Anqi CMS website.To enter the background management interface, please visit the background access address mentioned above.After the first login, it is strongly recommended that you immediately change the default administrator account and password to ensure website security.
Frequently Asked Questions (FAQ)
Question 1: When I installed AnQiCMS on aaPanel, it prompted that the port is occupied, how should I solve this?
Answer 1: This usually means that the port you are trying to use (such as the default 8001) has been occupied by another program on the server or another AnQiCMS instance.You can specify a different, unused port number, such as 8002 or 8003, when installing Anqin CMS.lsof -i:{端口号}Command (in Linux server command line) to check the occupancy status of a specific port.
Question 2: After installation, my AnQiCMS website cannot be accessed through the domain name. The page displays an error or is blank. What could be the reason?
Answer 2: This is likely due to an incorrect or missing reverse proxy configuration. Please check the 'Website' -> 'Reverse Proxy' settings in aaPanel, ensure that your domain is correctly pointing to the internal address and port of the AnQiCMS container (for examplehttp://127.0.0.1:8001Make sure that your domain name is correctly resolved to the server IP address, and that the server firewall allows traffic on ports 80/443.
How to install multiple AnQiCMS sites on a single server?
Answer 3: To install multiple AnQiCMS sites on the same server, you need to deploy an independent AnQiCMS Docker container for each site and ensure that each container listens on a different internal port.Then, set a separate domain for each site in aaPanel and configure reverse proxy to point each domain to the different ports monitored by the corresponding AnQiCMS container.8001Port, use the second site8002Port, and configure the corresponding reverse proxy for each domain.