From first/downloadDownload the AnQiCMS Linux installation package.
Method 1: Use multi-site function to install multiple security CMS
AnQiCMS Installing multiple sites on a server does not require copying multiple AnQICMS codes. Please follow the following procedure to add multiple sites.
- In the menu on the left side of the Pagoda panel, click
网站
Menu, clickPHP项目
, add a PHP site. In the creation site, fill in the domain name that has been resolved to the server. Press the root directory to default. Copy the root directory address. I will use it in the next step. Choose not to create both FTP and database, and choose pure static version. Finally click Submit. As shown in the picture:
- Log in to the site background and click on the menu on the left.
多站点管理
Menu (only the default installed sites have multi-site administration permissions). In the multi-site management interface, click the Add New Site button. In the pop-up window that pops up, fill in the form according to the actual situation. Fill in the site name according to the actual situation to facilitate the distinction between different sites; please fill in a new directory for the site root directory and paste the site root directory copied in the first step, such as:/www/wwwroot/study.ykbh168.com
, the new directory needs to be created on the server in advance; fill in the new URL in the site URL, and this URL needs to be parsed on the server in advance. The administrator account and administrator password are the administrator account passwords of the new site; the database name needs to be a new database. Do not fill in the database of the existing site, otherwise it will cause data overwrite. If the default installation is installed using the root account, you can choose to reuse the database account to avoid filling in the account information. Finally, click the OK button to complete the creation of the new site. As shown in the picture:
- In the pagoda, click Settings in the newly created website operation bar, and in the pop-up interface, select
网站目录
Menu, change the run directory to/public
, click Save. As shown in the picture:
- Pseudo-static settings
- Nginx pseudo-static settings
choose伪静态
Menu, fill in pseudo-static rules and click Save. You can click Save as a template for the next time:
location @AnqiCMS {
proxy_pass http://127.0.0.1:8001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
error_page 404 =200 @AnqiCMS;
location / {
try_files $uri $uri/index.html @AnqiCMS;
}
- Apache pseudo-static configuration
If you use Apache software, pseudostatic rules will be inconsistent. Please leave the pseudo-static column blank, select the reverse proxy, and fill in the target URL.http://127.0.0.1:8001
, as shown in the picture:
This way, the new site is added.
Method 2: Use source code to install multiple security CMS
The Baota Panel version 7.9.3 or above supports faster deployment. It is recommended to upgrade the Baota Panel to the 7.9.3 or above.
Create a directory and upload an installation package
- Click on the menu on the left
文件
Menu, switch directory to/www/wwwroot/
Directory, inwwwroot
Create a new directory under the directory, which is generally named after the domain name, such asanqidemo.com
. As shown in the picture:
- Click
anqidemo.com
,Enteranqidemo.com
Folder, install Linux packageanqicms-linux-v3.x.x.zip
Upload to the current directory. Installing the packageanqicms-linux-v3.x.x.zip
Right-click on the top and select Unzip to unzip the installation package to the current folder. As shown in the picture:
After decompression is completed, rename the root directoryanqicms
foranqidemo
. Note: When multiple CMS source codes are installed on the server, the main program name must not be repeated, otherwise it may not be started.
Configure config.json
When installing multiple CMS source codes for the security enterprise, you need to manually add config.json to make it use different ports. Each program will occupy one port and the port cannot be reused. For example, we install the second CMS with the port8002
, then we create a config.json in the root directory of the website and fill in the content as:
{
"server": {
"site_name": "安企内容管理系统(AnqiCMS)",
"env": "release",
"port": 8002,
"log_level": "info",
"token_secret": ""
}
}
This step can be omitted, and then add the corresponding port to the execution command on the pagoda panel.
Pagoda Panel version 7.9.3 or above deployment:
Click on the menu on the left网站
Menu, clickGo项目
, come to the Go project website creation page, click添加Go项目
button, configure it in the pop-up window that pops up. Project execution file selection/www/wwwroot/anqidemo.com/anqidemo
;Fill in the project nameAnQICMS
; Project port Fill in8002
;This is the port we set in the previous step. Execute the command to fill in/www/wwwroot/anqidemo.com/anqidemo
; Run user selectwww
; and check the startup, and you can fill in the notes as needed, as default; bind the domain name to fill in the domain name you parsed to the server. After filling in, click the Submit button to complete the addition. As shown in the picture:
If you did not manually configure config.json in the previous step, you can also specify the port in the execution command, the format is-port {端口号}
:
Note that the ports filled in here should be the same. For example, if the project port is filled in 8002, the port that executes the command should also be 8002.
For example, the original command is:/www/wwwroot/anqidemo.com/anqidemo
, then execute the command to:/www/wwwroot/anqidemo.com/anqidemo -port 8002
.
Initialize the installation website
In the browser, access the domain name you bind, go to the AnQICMS initialization installation interface, fill in the database information, backend account password information, and website address. As shown in the picture:
If the installation fails, possible situations include: 1. The database account password is incorrect. Please recheck the database account password. 2. The database account permissions are insufficient and the database cannot be created. Please create the database in advance or use an account with higher privileges. 3. The administrator password length is insufficient, please set a more complicated password.
After the installation is successful, visit the foreground and background to check whether everything is normal.
If the installation fails, possible situations include: 1. The database account password is incorrect. Please recheck the database account password. 2. The database account permissions are insufficient and the database cannot be created. Please create the database in advance or use an account with higher privileges. 3. The administrator password length is insufficient, please set a more complicated password.
After the installation is successful, visit the foreground and background to check whether everything is normal.