As an experienced website operations expert, I am well aware of the importance of an efficient and user-friendly content management system for both enterprises and individual operators.AnQiCMS (AnQiCMS) has become the preferred choice for many users with its high performance brought by the Go language, rich SEO tools, and excellent multi-site management capabilities.When AnQiCMS encounters a modern server operation and maintenance management 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, multilingual support, intelligent SEO optimization (including static redirection, 301 redirection, Sitemap, keyword library, etc.), as well as 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 one-stop solutions for self-media and multi-site managers.Now, let's deploy this efficient CMS step by step on 1Panel.
1. Ready: 1Panel installation and basic environment setup
Firstly, we need to ensure that 1Panel is successfully installed on your server. If you have not installed it yet, you can visit the 1Panel official websitehttps://1panel.cn/Operate according 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 installing 1Panel, in order for AnQiCMS to run smoothly, we still need to install several necessary supporting software in the 1Panel app store. Specifically, you need to find and install in the app storeOpenRestyandMySQL。OpenResty will act as the reverse proxy server for our AnQiCMS, while MySQL is the relational database used to store data for AnQiCMS.Make sure these two applications have been successfully installed and are running properly.
2. Container creation: Deploy AnQiCMS core service
Next, we will create a container for AnQiCMS in 1Panel using Docker.
Open your 1Panel panel and select from the left-hand 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"Select part, pleaseManual inputThen enter the Docker image address of AnQiCMS in the input box below:anqicms/anqicms:latest. This will ensure that the system pulls the latest stable version of the AnQiCMS image.
Continue configuringPort. AnQiCMS container internally listens on the default port.8001Port. Therefore, in“Container Port”Fill in a column8001And“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 expose a unique server port to the outside, for example, the second container you can set to8002, the third is set to8003and so on, but the container internal port is always8001.
Keep scrolling down to find“Reboot Policy”Options. It is recommended to choose to ensure the continuous and stable operation of AnQiCMS services“Reboot after failure”or“Reboot if not manually stopped”. Even if the service is interrupted unexpectedly, the system can automatically try to recover.
After completing the above configuration, click the bottom of the interface.“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: Make the AnQiCMS site accessible
After the AnQiCMS container is created, it is already running internally on the server, but external users cannot access it via the domain name.At this time, we need to use the reverse proxy function of 1Panel to forward domain requests to the port of the AnQiCMS container.
Return to the left navigation menu of 1Panel, click“Website”and then select“Website”Tab and click“Create website”button.
In the pop-up website creation interface, selectReverse ProxyType.
In“Primary Domain”column, enter the website domain name you have prepared for AnQiCMS, for example:test.anqicms.comEnsure that this domain has been resolved to your server IP address.
InProxy addressIn the field, enter the access address of the AnQiCMS container inside your server, which is usually127.0.0.1:8001Remember that if you previously set a different server port for the AnQiCMS container (for example8002), you also need to modify it here127.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 AnQiCMS journey.
As of now, the deployment work of AnQiCMS has been basically completed. Now, you can enter the domain name you previously set in your browser (for example:http://test.anqicms.com/) for access.
When you first visit, you will enter the initialization installation interface of AnQiCMS.Please fill in the necessary database connection information according to the interface prompt (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 background.After completing these steps, click install, the AnQiCMS website will be officially launched!
You can access your domain name by adding/system/to enter the AnQiCMS admin panel, for example:http://test.anqicms.com/system/. The default admin account is usuallyadmin, and the password is123456(Strongly recommended to change 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.
Frequently Asked Questions (FAQ)
What is the default administrator account and password of AnQiCMS? How should I change it?AnQiCMS will set a default administrator account after completing the initial installation
adminThe initial password is123456. It is strongly recommended that you change the default password to a complex and hard-to-guess new one immediately after your first login to the admin backend or to related settings pages such as 'Administrator Management' or 'Profile'.Why is my website inaccessible or showing a 502 error after installing AnQiCMS on 1Panel?This is usually due to the reverse proxy configuration or the Docker container itself. You can check from the following aspects:
- Check Docker container statusIn the 'Container' page of 1Panel, confirm whether the AnQiCMS container is running and there are no abnormal exits.
- Check port mappingMake sure that the mapping of 'server port' to 'container port' is correct when creating a container, and that the 'server port' is not occupied by other applications.
- Check the reverse proxy configurationCheck if the 'Website' -> 'Reverse Proxy' filled 'Proxy Address' 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 OpenResty service is running normally in 1Panel.
- View logCheck the AnQiCMS container logs and the OpenResty error logs, as this usually provides more specific error information.
How can I deploy multiple AnQiCMS sites on the same server?How many strategies are there to deploy multiple AnQiCMS sites on 1Panel?
- Multiple Docker container solutions: 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.Then, configure a separate domain and reverse proxy rule for each container, proxying to their respective server ports.
- AnQiCMS multi-site management feature:AnQiCMS itself supports powerful multi-site management.You can log in to the backend after deploying an AnQiCMS container and add a new site 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.If you choose this method, you just need to configure multiple domain name reverse proxies for this AnQiCMS container in 1Panel, and direct all these domains to the same
127.0.0.1:8001(or any other port you set), then go to the AnQiCMS background for detailed configuration.