H??ng d?n c�i ??t aaPanel tr�n Ubuntu, Debian, CentOS v� AlmaLinux
H??ng d?n c�i ??t aaPanel tr�n Ubuntu, Debian, CentOS v� AlmaLinux
aaPanel l� m?t control panel mi?n ph� gi�p qu?n l� Website, Database, FTP, SSL, Docker, NodeJS v� nhi?u d?ch v? kh�c th�ng qua giao di?n web, ph� h?p cho c? ng??i m?i v� qu?n tr? vi�n h? th?ng.
Y�u c?u
- VPS ho?c Server m?i c�i ??t
- Quy?n
root - RAM t?i thi?u: 1GB (khuy?n ngh? t? 2GB tr? l�n)
- H? ?i?u h�nh:
- 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 v�o m�y ch?
ssh root@IP_VPS
V� d?
ssh [email protected]
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: C�i 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� tr�nh c�i ??t s? m?t kho?ng 5�15 ph�t t�y c?u h�nh VPS.
B??c 4: L?u th�ng tin ??ng nh?p
Sau khi ho�n 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 h�y 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 d�ng 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 t�i kho?n ?� ???c t?o.
B??c 7: C�i ??t m�i tr??ng Website
Sau khi ??ng nh?p l?n ??u, aaPanel s? h?i c�i ??t m�i 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: Th�m Website
Website ? Add Site
?i?n:
- Domain
- Root Directory
- PHP Version
- Create Database
- Create FTP
Nh?n Submit.
B??c 9: C�i SSL
Website
? SSL
? Let's Encrypt
? Apply
Sau v�i gi�y 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 5�30 ph�t.
M?t s? ph?n m?m n�n c�i
- 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 th�ng 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 c�i
- ??i c?ng m?c ??nh 8888.
- ??i t�i kho?n
adminsang t�n kh�c. - K�ch ho?t HTTPS cho aaPanel.
- B?t Firewall.
- C�i Fail2Ban ch?ng brute-force.
- Sao l?u website v� database ??nh k?.
- Ch? m? c�c 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? kh�c. Ch? v?i v�i l?nh c�i ??t, b?n c� th? tri?n khai m?t m�y ch? web ho�n ch?nh trong kho?ng 10 ph�t.