Install pagoda
Centos installation script
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
Ubuntu/Deepin installation script
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh
Debian installation script
wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh
Fedora installation script
wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh
Management pagoda
Pagoda toolbox (including most of the following functions, directly execute bt command in ssh, only for panels with versions above 6.x)
bt
stop it
/etc/init.d/bt stop
start-up
/etc/init.d/bt start
restart
/etc/init.d/bt restart
uninstall
/etc/init.d/bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel
View current panel port
cat /www/server/panel/data/port.pl
Modify the panel port, such as 8881 (centos 6 system)
echo '8881' > /www/server/panel/data/port.pl && /etc/init.d/bt restart iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT service iptables save service iptables restart
Modify the panel port, such as 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
Force to change the MySQL Management (root) password, such as 123456
cd /www/server/panel && python tools.py root 123456
Change the panel password, such as 123456
cd /www/server/panel && python tools.py panel 123456
View pagoda log
cat /tmp/panelBoot.pl
View software installation log
cat /tmp/panelExec.log
Site profile location
/www/server/panel/vhost
Delete domain name binding panel
rm -f /www/server/panel/data/domain.conf
Clear login restrictions
rm -f /www/server/panel/data/*.login
View panel authorization IP
cat /www/server/panel/data/limitip.conf
Turn off access restrictions
rm -f /www/server/panel/data/limitip.conf
View license domain name
cat /www/server/panel/data/domain.conf
Turn off panel SSL
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart
View panel error log
cat /tmp/panelBoot
View database error log
cat /www/server/data/*.err
Site profile directory (nginx)
/www/server/panel/vhost/nginx
Site profile directory (apache)
/www/server/panel/vhost/apache
Site default directory
/www/wwwroot
Database backup directory
/www/backup/database
Site backup directory
/www/backup/site
Site log
/www/wwwlogs
Nginx service management
nginx installation directory
/www/server/nginx
start-up
/etc/init.d/nginx start
stop it
/etc/init.d/nginx stop
restart
/etc/init.d/nginx restart
Loading
/etc/init.d/nginx reload
nginx configuration file
/www/server/nginx/conf/nginx.conf
Apache service management
apache installation directory
/www/server/httpd
start-up
/etc/init.d/httpd start
stop it
/etc/init.d/httpd stop
restart
/etc/init.d/httpd restart
Loading
/etc/init.d/httpd reload
apache configuration file
/www/server/apache/conf/httpd.conf
MySQL service management
mysql installation directory
/www/server/mysql
phpmyadmin installation directory
/www/server/phpmyadmin
Data storage directory
/www/server/data
start-up
/etc/init.d/mysqld start
stop it
/etc/init.d/mysqld stop
restart
/etc/init.d/mysqld restart
Loading
/etc/init.d/mysqld reload
mysql configuration file
/etc/my.cnf
FTP service management
ftp installation directory
/www/server/pure-ftpd
start-up
/etc/init.d/pure-ftpd start
stop it
/etc/init.d/pure-ftpd stop
restart
/etc/init.d/pure-ftpd restart
ftp profile
/www/server/pure-ftpd/etc/pure-ftpd.conf
PHP service management
php installation directory
/www/server/php
Start (please make changes according to the installed PHP version number, for example: / etc/init.d/php-fpm-54 start)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} start
Stop (please make changes according to the installed PHP version number, for example: / etc/init.d/php-fpm-54 stop)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} stop
Restart (please make changes according to the installed PHP version number, for example: / etc/init.d/php-fpm-54 restart)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} restart
Load (please change according to the installed PHP version number, for example: / etc/init.d/php-fpm-54 reload)
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} reload
Configuration file (please change it according to the installed PHP version number, for example: / www/server/php/52/etc/php.ini)
/www/server/php/{52|53|54|55|56|70|71|72|73|74}/etc/php.ini
Redis service management
redis installation directory
/www/server/redis
start-up
/etc/init.d/redis start
stop it
/etc/init.d/redis stop
redis profile
/www/server/redis/redis.conf
Memcached service management
memcached installation directory
/usr/local/memcached
start-up
/etc/init.d/memcached start
stop it
/etc/init.d/memcached stop
restart
/etc/init.d/memcached restart
Loading
/etc/init.d/memcached reload