H??ng d?n c�i ??t aaPanel tr�n Ubuntu, Debian, CentOS v� AlmaLinux
H??ng d?n ci ??t aaPanel trn Ubuntu, Debian, CentOS v AlmaLinux
aaPanel l m?t control panel mi?n ph gip qu?n l Website, Database, FTP, SSL, Docker, NodeJS v nhi?u d?ch v? khc thng qua giao di?n web, ph h?p cho c? ng??i m?i v qu?n tr? vin h? th?ng.
Yu c?u
- VPS ho?c Server m?i ci ??t
- Quy?n
root - RAM t?i thi?u: 1GB (khuy?n ngh? t? 2GB tr? ln)
- H? ?i?u hnh:
- Ubuntu 20.04 / 22.04 / 24.04
- Debian 11 / 12
- CentOS 7
- AlmaLinux 8 / 9
- Rocky Linux 8 / 9
B??c 1: ??ng nh?p VPS
SSH vo my ch?
ssh root@IP_VPS
V d?
ssh root@103.xxx.xxx.xxx
B??c 2: C?p nh?t h? th?ng
Ubuntu / Debian
apt update && apt upgrade -y
AlmaLinux / Rocky / CentOS
dnf update -y
ho?c
yum update -y
B??c 3: Ci aaPanel
Ubuntu / Debian
URL=https://www.aapanel.com/script/install_7.0_en.sh && if [ -f /usr/bin/curl ];then curl -ksSO "$URL";else wget --no-check-certificate -O install_7.0_en.sh "$URL";fi && bash install_7.0_en.sh aapanel
AlmaLinux / Rocky Linux / CentOS
URL=https://www.aapanel.com/script/install_6.0_en.sh && if [ -f /usr/bin/curl ];then curl -ksSO "$URL";else wget --no-check-certificate -O install_6.0_en.sh "$URL";fi && bash install_6.0_en.sh aapanel
Qu trnh ci ??t s? m?t kho?ng 515 pht ty c?u hnh VPS.
B??c 4: L?u thng tin ??ng nh?p
Sau khi hon t?t s? hi?n th?:
============================ aaPanel Internet Address: http://IP:8888/xxxxx username: admin password: xxxxxxxxx ============================
L?u l?i:
- Link ??ng nh?p
- Username
- Password
B??c 5: M? Firewall
N?u s? d?ng Firewall hy m? c?ng:
8888 80 443 21 20 39000-40000 (FTP Passive)
V d? v?i firewalld
firewall-cmd --permanent --add-port=8888/tcp firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https firewall-cmd --reload
N?u dng UFW
ufw allow 8888 ufw allow 80 ufw allow 443 ufw reload
B??c 6: ??ng nh?p aaPanel
Truy c?p
http://IP_VPS:8888
??ng nh?p b?ng ti kho?n ? ???c t?o.
B??c 7: Ci ??t mi tr??ng Website
Sau khi ??ng nh?p l?n ??u, aaPanel s? h?i ci ??t mi tr??ng.
Khuy?n ngh?:
- OpenLiteSpeed ho?c Nginx
- MySQL 8.0
- PHP 8.2 ho?c PHP 8.3
- Redis
- PureFTPd
N?u ch?y nhi?u website PHP:
- Nginx + PHP-FPM
- Apache n?u c?n
.htaccess
B??c 8: Thm Website
Website ? Add Site
?i?n:
- Domain
- Root Directory
- PHP Version
- Create Database
- Create FTP
Nh?n Submit.
B??c 9: Ci SSL
Website
? SSL
? Let's Encrypt
? Apply
Sau vi giy website s? c HTTPS mi?n ph.
B??c 10: Tr? Domain
Tr? DNS
A example.com IP VPS A www IP VPS
??i DNS c?p nh?t kho?ng 530 pht.
M?t s? ph?n m?m nn ci
- Docker
- Docker Compose
- NodeJS Manager
- PM2 Manager
- Redis
- Memcached
- Fail2Ban
- phpMyAdmin
M?t s? l?nh qu?n l aaPanel
Kh?i ??ng
bt start
D?ng
bt stop
Kh?i ??ng l?i
bt restart
Xem thng tin ??ng nh?p
bt
??i m?t kh?u
bt 5
??i c?ng Panel
bt 8
S?a Username
bt 6
S?a Password
bt 5
Khuy?n ngh? sau khi ci
- ??i c?ng m?c ??nh 8888.
- ??i ti kho?n
adminsang tn khc. - Kch ho?t HTTPS cho aaPanel.
- B?t Firewall.
- Ci Fail2Ban ch?ng brute-force.
- Sao l?u website v database ??nh k?.
- Ch? m? cc c?ng th?c s? c?n thi?t.
K?t lu?n
aaPanel l m?t trong nh?ng Control Panel mi?n ph d? s? d?ng nh?t hi?n nay, h? tr? ??y ?? vi?c qu?n l Website, Database, Docker, NodeJS, SSL v nhi?u d?ch v? khc. Ch? v?i vi l?nh ci ??t, b?n c th? tri?n khai m?t my ch? web hon ch?nh trong kho?ng 10 pht.