AnQi CMS is a high-efficiency, secure, and SEO-friendly enterprise-level content management system, and its deployment process is usually greatly simplified when配合 such operation and maintenance panels as 1Panel or Baota.It is crucial for our website operations staff to understand the initialization process after system installation, as it directly relates to the initial configuration and subsequent stable operation of the website.
Prepare the panel environment and deploy AnQi CMS
Before formally initializing the website, you need to ensure that the operation and maintenance panel (such as 1Panel, Baota Panel, etc.) is installed on the server, and the necessary running environment is installed through the app store of the panel, especially the MySQL database service.The AnQi CMS is usually deployed in the form of a Docker container, which requires the panel's Docker feature to be enabled and capable of running containers.
The steps to deploy the AnQi CMS container are relatively direct. You will create a new container in the panel's container management interface, specify the container name (for exampleanqicmsEnter the official Docker image address manually, which is usuallyanqicms/anqicms:latest.In terms of port settings, the Anqi CMS container internally listens on port 8001 by default, and you need to expose it to the server, usually the server port is also set to 8001.If you plan to run multiple security CMS instances on the same server, you need to allocate different server ports for each instance.After completing these configurations, create and start the container.
After the container is running, the next step is to set up reverse proxy.In the panel's website management feature, you will create a new reverse proxy site.test.anqicms.comSet the proxy address to the internal address and port of the Docker container, i.e.127.0.0.1:8001(If the server port is set to other, then the corresponding modification should be made). This step ensures that when users access through the domain name, the request can be correctly forwarded to the running AnQi CMS container.
Website initialization installation process
After the Docker container and reverse proxy are properly configured, you can access the domain name you have bound through the browser (for examplehttp://test.anqicms.com/Start the website initialization installation process.When first accessed, Anqi CMS detects that the database and administrator information have not been configured, and automatically jumps to the guided initial installation interface.
This initialization interface will ask you to fill in a series of key information. First isDatabase connection information. You need to provide the connection details of the MySQL database installed through the panel, including the database address (usually127.0.0.1orlocalhost)、database port(MySQL default 3306)、database name, username, and password。Make sure to verify the accuracy of this information, especially the database password, as incorrect database configuration is a common cause of installation failure.
Next, you need to setThe administrator account information of the website backend.This includes creating an administrator username and corresponding password.It is recommended to set a password with a high level of security to ensure the safety of accessing the website backend.Website access addressThis is usually the domain name you are currently visiting.
After filling out all the information, click the confirm button, AnQi CMS will start executing the installation script, create database tables, write initial data, and save your configuration.If everything goes well, the system will prompt the installation to be successful, and guide you to the front desk page of the website or the back-end login interface.
First-time backend access and security enhancement
After installation, you can access it by adding it to the domain name./system/Visit the AnQi CMS admin interface, for examplehttp://test.anqicms.com/system/. Log in with the administrator account and password you set during initialization.
Frequently Asked Questions
Q1: After installing Anqi CMS on the panel, if the domain does not display the initialization interface when accessed, but instead shows the website content or login interface directly, what is the situation?
This usually indicates that your operation and maintenance panel (such as some one-click deployment functions of aaPanel) has automatically handled the initialization process of AnQi CMS.In this case, the website has been pre-installed and configured with the default administrator account and password.adminDefault password123456Then proceed您的域名/system/Access the backend and modify these default information immediately to ensure website security.
Q2: How to resolve the problem of database connection error or insufficient permissions during initialization?
Database connection errors are usually caused by incorrect input of database address, port, username, or password.Please carefully check the information you set when installing MySQL on the panel.If the permission is insufficient, it may be that the database account you are using does not have enough permissions to create databases and tables.You can try to use the MySQL root account (whose password can be found in the MySQL details on the panel) for initialization, or create a new database and user with full permissions in MySQL in advance, and then install using the new account information.
Q3: How to install and manage multiple AnQi CMS websites on the same server?
Install multiple AnQi CMS instances on the same server, you do not need to copy the AnQi CMS code multiple times.The core idea is to allocate an independent Docker container for each security CMS instance and ensure they use different internal ports.For example, the first instance uses port 8001, the second uses port 8002, and so on.Then, create a separate reverse proxy site for each instance in the panel, pointing different domain names to the server ports of their respective Docker containers.Finally, each instance will undergo an independent initialization installation upon its first visit, or a new site can be created through the "Multi-site Management" feature in the AnqiCMS backend, pointing to the directory and database already configured for the new domain name.