The Windows version of Anqi CMS is generally only suitable for testing, and it is recommended to use the Linux version in a production environment.
The environment includes: MySQL, Nginx. By default, only MySQL needs to be installed to use it. If it is already installed, you can skip this step.
The ones that haven't downloaded can use Xiao Pi (PHPStudy)https://www.xp.cn/Download Xiao Pi, install it, and install MySQL and Nginx.
Download address:https://en.anqicms.com/download. After downloading, extract to any directory, it is generally recommended that the directory name be related to the domain name, which is convenient for search. For example, extract toD:\wwwroot\dev.anqi.com
Enter the extracted directory, as shown aboveD:\wwwroot\dev.anqi.com. Double-click the folder under the root directory.anqicms.exeIf everything is normal, the browser will automatically open and go to the installation page. If the browser does not open automatically at this step, you need to manually open the browser and enter the address in the browser address barhttp://127.0.0.1:8001Visit. On the installation page, fill in data information, administrator account and password, etc., the database name is generally distinguished by the domain name, for example:dev.anqi.comThe database name isdev_anqi_com. Do not fill in the domain name, as it is used for local testing, keep the default settings.Click the install button to complete the installation. By default, it will install demo data. If you are using it officially or do not need demo data, you can uncheck the installation of demo data.
After installation, you can access the backend and the website frontend. The default backend address is:http://127.0.0.1:8001/systemThe default frontend address is:http://127.0.0.1:8001.
The design of the Windows version only supports running one security CMS at a time, and if multiple security CMS are installed on Windows, it can still only run one at a time.
You need to install multiple AnQi CMS on Windows, the method is very simple, just unzip the installation program and copy multiple copies.If it is copied from an installed website, then config. in the root directory of the new directory needs to be deleted.
Due to Windows version limitations, only one security CMS can be run at a time, and the old site must be exited before running a new site.The exit method is very simple, find the icon of AnQi CMS in the Windows status bar, click it, and select exit.After exiting the old site, come to the new directory. Double-click the items under the new directory.anqicms.exeAt this point, it will be like installing the first site, a setup interface will pop up, and you can fill in the installation information.Remember, the database name here cannot be the same as the previous site, otherwise it will cause data errors.
Follow this method, you can install multiple AnQi CMS sites on a Windows server, but only one can be run at a time. Before running a new AnQi CMS site, you must exit the old AnQi CMS site, otherwise it will not run the new site, and it will always be the old site. Since only one AnQi CMS site is running at a time, the domain name of each site running after ishttp://127.0.0.1:8001.
If you need to access the Anqi CMS site using a domain name in Windows, you need to useNginxIf not necessary, there is no need to hassle.
If you are running AnQi CMS locally and pushing static files to the server to be used as a static website, please follow the steps below.
dev.anqi.comThe root directory can be left as the default generated one, do not check the optionPHPDo not fill in other places. Click confirm to complete the site creation.vhosts.confTab, find the corresponding configuration file in the list, such as the one just generateddev.anqi.com_80Click to open.rootIncrease/publicResult:root "C:/phpstudy_pro/WWW/dev.anqi.com/public";
location /Add the pseudo-static configuration of Anqicms before it, 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;
}
Inlocation /The next line, add the following configuration:
try_files $uri $uri/index.html @AnqiCMS;
Deletelocation /The default configuration of the second last line:
include C:/phpstudy_pro/WWW/dev.anqi.com/public/nginx.htaccess;
Go back to the PhpStudy homepage, restart Nginx, a new site is set up, and open the domain in the browser.
Copy the package to the root directory of the websiteC:/phpstudy_pro/WWW/dev.anqi.comAnd unzip it. Double-click to runanqicms.exeIn the installation interface of the opened browser, enter the database information, as this time a domain name has been set, so enter the website address in the URL fieldhttp://dev.anqi.comand click the install button.