As an experienced website operation expert, I am well aware of the importance of an efficient and user-friendly content management system for both enterprises and individual operators.The AnQiCMS (AnQiCMS) has become the first choice of many users with its high performance brought by the Go language, rich SEO tools, and excellent multi-site management capabilities.When AnQiCMS meets a modern server operation and maintenance panel like 1Panel, the convenience of deployment has reached a new height.Today, let's delve into how to easily install AnQiCMS using the Docker feature of 1Panel.
The powerful functions of Anqi CMS, such as flexible content models, multi-language support, intelligent SEO optimization (including static, 301 redirection, Sitemap, keyword library, etc.), and unique anti-crawling and watermark management, all make it stand out in the content operation field.It can not only help small and medium-sized enterprises improve the efficiency of content marketing, but also provide a one-stop solution for self-media and multi-site managers.Now, let's deploy this efficient CMS step by step on the 1Panel.
1. Ready to go: 1Panel installation and basic environment configuration
Firstly, we need to make sure that 1Panel is successfully installed on your server. If you have not installed it, you can visit the 1Panel official websitehttps://1panel.cn/EnglishAccording to its detailed installation guide, the installation process of 1Panel is usually very simple, it will provide you with an intuitive graphical interface to manage your server.
After 1Panel is installed, in order for AnQiCMS to run smoothly, we still need to install several necessary配套 software in the 1Panel App Store. Specifically, you need to find and installOpenRestyandMySQL.OpenResty will be used as the reverse proxy server for our AnQiCMS, and MySQL is the relational database for storing data of AnQiCMS.Ensure that both of these applications are successfully installed and running.
2. Container creation: Deploy AnQiCMS core service
Next, we will create AnQiCMS container in 1Panel using Docker.
Open your 1Panel panel, select from the left navigation menu“Container”options, then switch to“Container”the tab. Here, you will see a“Create container”Button, click it to start the configuration.
In the pop-up container creation interface, first specify a friendly name for your AnQiCMS container.NameFor example, you can fill inanqicms.
In"Image"Part, please selectEnter manuallyThen, enter the Docker image address of AnQiCMS in the input box below:anqicms/anqicms:latestThis will ensure that the system pulls the latest stable version of the AnQiCMS image.
Continue configurationPortThe AnQiCMS container listens by default.8001Port. Therefore,“Container Port”Enter in a column8001. And in“Server Port”In a column, you can fill in similarly8001。It is worth noting that if you plan to deploy multiple AnQiCMS containers on the same server, each AnQiCMS container must have a unique server port exposed to the outside, for example, the second container can be set to8002,Third one is set to8003Continue as such, but the internal port of the container remains8001.
Keep scrolling downwards, find“Restart Policy”Options. To ensure the continuous and stable operation of AnQiCMS service, it is recommended that you choose.“Restart after failure”or“Restart if not manually stopped”. Thus, even if the service is unexpectedly interrupted, the system can automatically attempt to recover.
After completing the above configuration, click the“Confirm”Button. 1Panel will automatically pull the Docker image and create an AnQiCMS container. This process may take a few minutes, please be patient.
3. Reverse proxy configuration: Allow AnQiCMS site to be accessed
The AnQiCMS container has been successfully created and is running internally on the server, but external users cannot access it via the domain name.This is where we need to use the reverse proxy feature of 1Panel to forward domain requests to the port of the AnQiCMS container.
Go back to the left navigation menu of 1Panel, click“Website”then select“Website”tab, and click“Create website”button.
In the pop-up create website interface, selectReverse Proxytype.
In“Primary Domain”column, fill in the website domain name you have prepared for AnQiCMS, for example:test.anqicms.comPlease ensure that this domain name has been resolved to your server IP address.
InProxy addressIn the column, fill in the access address of the AnQiCMS container on your server, which is usually127.0.0.1:8001. Please remember, if you have previously set a different server port for the AnQiCMS container (such as8002), you also need to modify it accordingly127.0.0.1:8002.
Finally, click“Confirm”Button. 1Panel will configure OpenResty for you and set up reverse proxy rules.
4. Website Initialization: Start your journey with AnQiCMS
English translation: Until now, the deployment of AnQiCMS has been basically completed. Now, you can enter the domain name you set previously (for example:http://test.anqicms.com/) to visit.
First time access, you will enter the initial installation interface of AnQiCMS.Please fill in the necessary database connection information according to the interface prompts (such as MySQL's IP, port, database name, username, password, etc.) as well as the administrator account and password you wish to set for the backend.After completing these steps, click Install, and the AnQiCMS website will be officially launched!
You can access your domain name followed by/system/to enter the AnQiCMS backend management interface, for example:http://test.anqicms.com/system/. The default administrator account is usuallyadmin,the password is123456(Strongly recommended to change it immediately after the first login!).
With the powerful support of 1Panel and the excellent performance of AnQiCMS, your content management work will become unprecedentedly easy and efficient.
Common Questions (FAQ)
What is the default username and password for AnQiCMS? How should I change it?AnQiCMS after completing the initialization installation, will set a default admin account of
adminThe initial password is123456.For the security of your website, it is strongly recommended that you immediately enter the "Administrator Management" or "Profile" and related setting pages after your first login to the backend, and change the default password to a complex and difficult-to-guess new password.Why can't the website be accessed or display a 502 error after installing AnQiCMS on 1Panel?This is usually due to issues with the reverse proxy configuration or the Docker container itself. You can investigate from the following aspects:
- Check the Docker container statusIn the 'Container' page of 1Panel, confirm that the AnQiCMS container is running without any abnormal exit.
- Check port mappingEnsure that the mapping of 'server port' to 'container port' is correct when creating the container, and that the 'server port' is not occupied by other applications.
- Check the reverse proxy configurationCheck if the 'Proxy address' filled in 'Website' -> 'Reverse Proxy' matches the 'Server port' of the AnQiCMS container (for example, if the container server port is 8001, the proxy address should be
127.0.0.1:8001). - Check OpenResty statusEnsure that the OpenResty service is running normally in 1Panel.
- View logsCheck the AnQiCMS container logs and the OpenResty error logs, which usually provide more specific error information.
I want to deploy multiple AnQiCMS sites on the same server, how should I operate?How many strategies are there to implement multiple AnQiCMS site deployments on 1Panel?
- English Docker container solution:You can create an independent Docker container for each AnQiCMS site.Each container needs to use a different "server port" (such as 8001, 8002, 8003, etc.) when deployed, but the internal container port remains unchanged at 8001.Then, configure a separate domain name and reverse proxy rule for each container, proxying to the respective server ports.
- AnQiCMS multi-site management feature:AnQiCMS itself supports powerful multi-site management.You can log in to the backend after the AnQiCMS container is deployed and add new sites using the "Multi-site Management" feature.Each new site can be bound to a different domain, have an independent database and content management.This method is usually more resource-saving, but all sites share the same AnQiCMS program instance.
127.0.0.1:8001(or any other port you set), and then perform detailed configuration in the AnQiCMS background.