Quay lại
H??ng d?n

H??ng d?n c�i ??t aaPanel tr�n Ubuntu, Debian, CentOS v� AlmaLinux

28/06/2026 17:01 92 lượt xem

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 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: 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 admin sang 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.

Hosting của tôi Thuê Hosting mới VPS của tôi Thuê VPS mới Hoá đơn dịch vụ Tiếp thị liên kết