发布于 

宝塔海外版aaPanel

aaPanel installation script

Centos

1
yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh aapanelCopy

Ubuntu/Deepin

1
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh aapanel

Debian

1
wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh aapanel

Management

Stop

1
service bt stop

Start

1
service bt start

Restart

1
service bt restart

Uninstall

1
service bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel

View current port of control panel

1
cat /www/server/panel/data/port.pl

Change port of control panel,e.g. 8881(centos 6 Operation System)

1
echo '8881' > /www/server/panel/data/port.pl && service bt restart iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT service iptables save service iptables restart

Change port of control panel,e.g. 8881(centos 7 Operation System)

1
echo '8881' > /www/server/panel/data/port.pl && service bt restart firewall-cmd --permanent --zone=public --add-port=8881/tcp firewall-cmd --reload

Force to change MySQL manager (root) Password,e.g. 123456

1
cd /www/server/panel && python tools.py root 123456

Change control Panel login password,e.g. 123456

1
cd /www/server/panel && python tools.py panel 123456

Site Configuration location

1
/www/server/panel/vhost

Delete banding domain of control panel

1
rm -f /www/server/panel/data/domain.conf

Clean login restriction

1
rm -f /www/server/panel/data/*.login

View control panel authorization IP

1
cat /www/server/panel/data/limitip.conf

Stop access restriction

1
rm -f /www/server/panel/data/limitip.conf

View permission domain

1
cat /www/server/panel/data/domain.conf

Turn off control panel SSL

1
rm -f /www/server/panel/data/ssl.pl && /etc/init.d/bt restart

View control panel error logs

1
cat /tmp/panelBoot

View database error log

1
cat /www/server/data/*.err

Site Configuration directory(nginx)

1
/www/server/panel/vhost/nginx

Site Configuration directory(apache)

1
/www/server/panel/vhost/apache

Site default directory

1
/www/wwwroot

Database backup directory

1
/www/backup/database

Site backup directory

1
/www/backup/site

Site logs

1
/www/wwwlogs

Nginx

nginx installation directory

1
/www/server/nginx

Start

1
service nginx start

Stop

1
service nginx stop

Restart

1
service nginx restart

Reload

1
service nginx reload

nginx Configuration

1
/www/server/nginx/conf/nginx.conf

Apache

apache installation directory

1
/www/server/httpd

Start

1
service httpd start

Stop

1
service httpd stop

Restart

1
service httpd restart

Reload

1
service httpd reload

apache Configuration

1
/www/server/apache/conf/httpd.conf

MySQL

mysql installation directory

1
/www/server/mysql

phpmyadmin installation directory

1
/www/server/phpmyadmin

Data storage directory

1
/www/server/data mysql

Start

1
service mysqld start

Stop

1
service mysqld stop

Restart

1
service mysqld restart

Reload

1
service mysqld reload

mysql Configuration

1
/etc/my.cnf

FTP

ftp installation directory

1
/www/server/pure-ftpd

Start

1
service pure-ftpd start

Stop

1
service pure-ftpd stop

Restart

1
service pure-ftpd restart

ftp Configuration

1
/www/server/pure-ftpd/etc/pure-ftpd

PHP

php installation directory

1
/www/server/php

Start(Please modify by PHP version, e.g. service php-fpm-54 start)

1
service php-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} start

Stop(Please modify by PHP version, e.g. service php-fpm-54 stop)

1
service php-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} stop

Restart(Please modify by PHP version, e.g. service php-fpm-54 restart)

1
service php-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} restart

Reload(Please modify by PHP version, e.g. service php-fpm-54 reload)

1
service php-fpm-{52|53|54|55|56|70|71|72|73|74|80|81} reload

Configuration(Please modify by PHP version, e.g. /www/server/php/52/etc/php.ini)

1
/www/server/php/{52|53|54|55|56|70|71|72|73|74|80|81}/etc/php.ini

Redis

redis installation directory

1
/www/server/redis

Start

1
service redis start

Stop

1
service redis stop

redis Configuration

1
/www/server/redis/redis.conf

Memcached

memcached installation directory

1
/usr/local/memcached

Start

1
service memcached start

Stop

1
service memcached stop

Restart

1
service memcached restart

Reload

1
service memcached reload