Original link: https://www.wjcms.net/archive...
When we use linux server, it is all command operations, many people will be confused, so using this panel software is a very convenient and wise choice. Let's take a look at how to install and use it.
In fact, the editor has been using centos7 until recently and replaced centos8. Generally speaking, there is not much difference, except that version 8 supports the latest software version, while version 7 is backward compatible with php5.4, etc. There is no specific use. There are too many relationships, but version 8 is still recommended here, after all, the new version.
First, use ssh software or workbench to log in to the virtual machine and enter the password
Then it will enter the system.
Then run the install command.
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
Then, the system will download the relevant files and prompt to ask for the installation directory
Do you want to install Bt-Panel to the /www directory now?(y/n):
Type y, then press Enter, and wait for the system to install.
Wait for a few minutes, and it will prompt Congratulations! Installed successfully!, which means the installation is successful.
At this time, there will be a panel access path, account password information, please record and save it.
Of course, it is better to perform security settings; for example, change the port, and set up BasicAuth authentication.
You must use and understand this feature before deciding whether to enable it!
Once enabled, accessing the panel in any way will first ask for a BasicAuth username and password
After opening, it can effectively prevent the panel from being found by scanning, but it cannot replace the account password of the panel itself
Please remember the BasicAuth password, if you forget it, you will not be able to access the panel
If you forget your password, you can disable BasicAuth authentication via bt command in SSH
As a php developer, I chose the LNMP environment without hesitation, which is very convenient and saves a lot of troublesome installation and configuration.
Note: Here php selects the latest, and the other defaults.
1. The installation is complete, but the panel cannot be accessed?
In this case, generally speaking, the cloud server does not have an open port, and you only need to open the port.
The specific operations are as follows:
First click More on the right side of the server, then click Security Group Configuration
Then go to the security group configuration.
Then add rules.
Then add a port 8888.
2. Forgot password, reset password
Enter the command in the server connection window
Then there is a shortcut prompt, and the corresponding operation can be completed by entering the number, which is quite convenient.
Enter 5 to change the password, enter 6 to change the username.
3. The panel has released the port, and the newly created website still cannot be accessed
This is a pit. It is impossible to release the light panel. It is also necessary to check whether the security configuration of the cloud service has released the port.
Pagoda Toolbox (including most of the following functions, execute bt commands directly in ssh, only for panels above 6.x)
/etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel
View current panel ports
Modify the panel port, if you want to change it to 8881 (centos 7 system)
echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart firewall-cmd --permanent --zone=public --add-port=8881/tcp firewall-cmd --reload
Forcibly modify the MySQL management (root) password, if you want to change it to 123456
cd /www/server/panel && python tools.py root 123456
Modify the panel password, if you want to change it to 123456
cd /www/server/panel && python tools.py panel 123456
View Pagoda Log
View software installation logs
Site configuration file location
Delete Domain Binding Panel
rm -f /www/server/panel/data/domain.conf
Clear login restrictions
rm -f /www/server/panel/data/*.login
View panel authorized IP
Turn off access restrictions
rm -f /www/server/panel/data/limitip.conf
View Licensed Domains
Turn off panel SSL
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart
View panel error log
View the database error log
Site configuration file directory (nginx)
Site configuration file directory (apache)