Hello everyone, welcome to the problem handling of AnQi CMS on Linux servers
The processing method described below refers to the method on Linux servers and is not applicable to Windows servers.
Question one, cannot start,提示port is occupied
At this time, there are generally two situations
Situation one: There is a port conflict with other security CMS websites, which usually occurs when multiple security CMS are installed on the server
This is when you need to edit config. and change it to a new unused port
Navigate to the root directory of the website and edit config.
Modify the port to 8002, or another unused port
Save and exit
Rerun the startup script
Situation two, the program has started but needs to be restarted, for example, after the AnQi CMS upgrade.
In this situation, we need to check the port usage first, and the command used is:
lsof -i:port number, for example, if the port is 8002, the command is lsof -i:8002
You can view the program ID that is occupying the port and then use the kill command to terminate the process
The usage of the kill command is kill -9 process ID, for example, if the process ID is 70049, then the command is kill -9 70049
If multiple process IDs are detected, they can be killed together, with process IDs separated by spaces
In addition to viewing the process ID through the port number, you can also view the process ID by executing the filename.
Using the command is pidof to execute the filename, for example, if the filename is anqibin1, then the command is pidof anqibin1
You can see the process ID of the executable file during execution, use the same kill command to terminate the process
If neither of the above two commands can find the process ID, it means the program has not started, and the error may be caused by other reasons.
Question two, the MySQL account password is incorrect.
If you have migrated a website, such as moving from a local test website to a server, or from an old server to a new server
There will be a problem with the MySQL account password being incorrect, at this time you need to modify the config. to change it to the correct MySQL account password
Otherwise, the program cannot start normally
Open config.
Modify the user field
Modify the password field
Modify the host field
If the database name has also been changed, the 'database' field also needs to be modified
Save and exit
Rerun the startup script
Question three, cannot find the security CMS startup file
This situation is usually caused by downloading the wrong installation package
For example, if a Windows computer downloads the Linux installation package, it cannot find anqicms.exe
Downloaded Windows installation package on Linux server, unable to find anqicms
or after debugging the website on a Windows computer, it needs to be uploaded to a Linux server for use
In this case, you need to redownload the Linux version installation package and copy the anqicms file over to use it; other files do not need to change
Question four, automatic detection of abnormal execution of scheduled tasks
The general case is due to the incorrect naming of the executable file, for example, we have changed the executable file name to anqibin2
And if the BINNAME in the start.sh script file is still anqicms, then it needs to be changed to the correct name
The start.sh script file has two instances of anqicms, which both need to be changed to anqibin2
After changing, try to start the script again