As a senior website operator, I am well aware of the importance of an efficient and easy-to-manage content system for both enterprises and individual operators.AnQiCMS (AnQiCMS) is an ideal choice for many users seeking stable, flexible content solutions with its high-performance, modular design based on the Go language and rich built-in features.It not only deploys easily, has a beautiful interface, but also performs excellently in terms of security and SEO-friendliness, and can well meet the content management needs of corporate websites, marketing websites, and even personal blogs.
Today, I will guide you step by step on how to quickly install and deploy AnQiCMS using Docker container technology on the 1Panel panel, allowing you to easily set up your own website.
Start the Docker deployment journey of AnQiCMS
Before starting the installation of AnQiCMS, we need to ensure that your 1Panel panel has been successfully installed and running.If you have not installed 1Panel yet, please refer to the instructions on its official website.In the 1Panel app store, we also need to ensure that the necessary supporting software is installed, such as OpenResty and MySQL.These are the web server and database environment required for AnQiCMS to run.
Create AnQiCMS container on 1Panel
The first step to install AnQiCMS is to create its Docker container in 1Panel.We first need to log in to your 1Panel management interface and click on the 'Container' option in the left menu bar.On the container management page, switch to the "Container
In the new pop-up window, you need to specify a name for this AnQiCMS instance, for example, "anqicms". In the image selection section, select "Enter manually", and then enter the official Docker image address of AnQiCMS:anqicms/anqicms:latest. This is the key to obtaining the latest stable version of AnQiCMS.
Next, it is the port settings. The AnQiCMS Docker container is set to use internally by default.8001Port. Therefore, in the 'Port' settings, select 'Expose Port' and fill in both 'Container Port' and 'Server Port' with8001It is worth noting that if you plan to deploy multiple AnQiCMS instances on the same server, the server port for each instance must be unique, for example8002/8003But the "container port" still remains8001Unchanged.
Continue scrolling down, in the "Reboot RulesAfter completing the above configuration, click the "Confirm" button, 1Panel will start creating the Docker container for AnQiCMS.
Configure reverse proxy site
After the container is successfully created, in order for external users to access your AnQiCMS website through a domain name, we still need to set up a reverse proxy in 1Panel.Reverse proxy can forward external HTTP requests to the AnQiCMS service running inside the Docker container we just created.
Please go back to the 1Panel management interface, click the 'Website' option in the left menu bar, then switch to the 'Website' tab, and click the 'Create Website' button.In the pop-up selection of website type creation, select "Reverse Proxy".
On the reverse proxy configuration page, you need to fill in the domain name you want to use to access the AnQiCMS website in the "Main Domain" field, for exampletest.anqicms.com. Then, fill in the "Proxy Address".127.0.0.1:8001. Here,8001It is the "server port" you set when creating a Docker container. If you have assigned a different server port for the AnQiCMS instance (such as8002Please fill in the corresponding port number here.
Check all information is correct and then click the "Confirm" button to complete the creation of the reverse proxy site.Now, your AnQiCMS website can be accessed via the domain you have set.
Website initialization and background access
After all deployment work is completed, it's time to launch your AnQiCMS website. Enter the domain name you have previously configured in your browser (for examplehttp://test.anqicms.com/),You will see the initial installation interface of AnQiCMS. Please follow the page prompts to complete the database configuration, administrator account setup, and other steps.
After installation, your website will be up and running. To access the AnQiCMS admin interface, simply add your domain name followed by/system/The path is sufficient. For example, if your website domain ishttp://test.anqicms.com/then the back-end access path ishttp://test.anqicms.com/system/. During the first login, please use the default administrator account and password (usuallyadminand123456), and modify these default credentials immediately to ensure website security.
Deploying AnQiCMS through the combination of Docker and 1Panel becomes extremely simple and efficient, allowing you to focus more energy on content creation and operation, fully leveraging the advantages of AnQiCMS in multi-site management, flexible content model, SEO optimization, and helping your website achieve success.
Frequently Asked Questions (FAQ)
How to install multiple AnQiCMS instances on the same 1Panel server?
It is completely feasible to install multiple AnQiCMS instances on the same 1Panel server.The key is to assign different 'server ports' to each instance.When creating a new Docker container, ensure that each AnQiCMS container is mapped to a unique server port (for example, the first is 8001, the second is 8002, and so on).Next, configure a separate domain for each AnQiCMS instance and set the proxy address to the corresponding "127.0.0.1:server port" in its reverse proxy settings.Such that each domain can independently access its corresponding AnQiCMS instance.
2. What are the default username and password after the AnQiCMS installation?
AnQiCMS will set up a set of default backend login credentials after the first installation and initialization is successful. In most cases, the default administrator account isadmin, and the default password is123456It is strongly recommended that you change these default account and password immediately after your first login to the backend to enhance the security of the website.
3. If the AnQiCMS website cannot be accessed after visiting the domain name, how should I troubleshoot the problem?
When the AnQiCMS website cannot be accessed through the domain name, you can troubleshoot the following steps:
- Check the status of the Docker container:Log in to 1Panel, enter the 'Container' management page, and confirm that the AnQiCMS container is running.If the container is not running, try to start it and check the log output for any error messages.
- Check port occupancy:Ensure that the "server port" allocated to the AnQiCMS container is not occupied by other services. You can check the port usage in 1Panel or directly use the command on the server (such as
netstat -tulnp | grep 端口号Check for errors. - Check the reverse proxy configuration:Confirm that the reverse proxy rules set in 1Panel are correct, especially the domain spelling and proxy address(
127.0.0.1:服务器端口Does it match your Docker container configuration? - Check the firewall settings:Ensure that the firewall (or security group of your cloud service provider) has opened the corresponding HTTP/HTTPS ports (usually 80 and 443), as well as the 'server port' of your AnQiCMS container.
- Domain resolution:Confirm that your domain has been correctly resolved to the server's IP address. You can use
ping 您的域名ornslookup 您的域名commands to verify the domain resolution status.