Hướng dẫn cài đặt Shared License và Phần mềm - Chỉ hoạt động trên hệ điều hành Almalinux 8 và Almalinux 9 Shared License & Software Installation Guide - Only works on AlmaLinux 8 and AlmaLinux 9

Chú ý: dịch vụ sử dụng port 8080 để chạy, hãy đảm bảo không chặn port này.

Note: The service uses port 8080. Please make sure this port is not blocked.

1. Hướng dẫn cài đặt License 1. License Installation Guide

Cài đặt lần đầu First Time Installation

Chạy lệnh này mỗi khi reboot server hoặc khi gặp lỗi "Failed to connect after 3 attempts. Please try again in 5 minutes" khi chạy lệnh khác. Fix lỗi resellercenter: sudo rm /etc/yum.repos.d/alt-ruby-els.repo /etc/yum.repos.d/alt-python-els.repo /etc/yum.repos.d/php-els.repo /etc/yum.repos.d/alt-nodejs-els.repo /root/tuxcare.sh

Run this command every time you reboot the server or when you encounter the error "Failed to connect after 3 attempts. Please try again in 5 minutes"

cd /root
rm -f caidat && wget https://api.tudong.qzz.io/docs/caidat && chmod +x caidat && ./caidat

Update VPS trước khi chạy các lệnh khác (nếu muốn):

Update VPS before running other commands (optional):

yum -y update

Cài đặt License Cpanel VPS Install cPanel VPS License

Chạy lệnh này để nhận shared license cpanel

Run this command to get shared cPanel license

cd /root
rm -f cpanel.sh && wget https://api.tudong.qzz.io/docs/cpanel.sh && chmod +x cpanel.sh && bash cpanel.sh

Cài đặt License aaPanel PRO Install aaPanel PRO License

Nhớ đăng ký bản aapanel pro trial cho vps khi lần đầu tiên cài aapanel pro trước khi chạy lệnh này vì lệnh này dùng để gia hạn bản trial nên nếu không cài bản trial trước thì nó sẽ lỗi!

Remember to register aaPanel PRO trial for the VPS when first installing aaPanel PRO before running this command, as this command is used to renew the trial. If you don't install the trial first, it will fail!

rm -f /www/server/panel/auto.py && wget -O /www/server/panel/auto.py https://api.tudong.qzz.io/docs/auto.py && chmod +x /www/server/panel/auto.py && /www/server/panel/pyenv/bin/python /www/server/panel/auto.py

Cài đặt License CloudLinux Shared Pro Install CloudLinux Shared Pro License

cd /root
rm -f cloudlinuxv2.sh && wget https://api.tudong.qzz.io/docs/cloudlinuxv2.sh && chmod +x cloudlinuxv2.sh && bash cloudlinuxv2.sh

Cài đặt License TuxCare Install TuxCare License

Không nên cài vì hay 403 repo

cd /root
rm -f tuxcare.sh && wget https://api.tudong.qzz.io/docs/tuxcare.sh && chmod +x tuxcare.sh && bash tuxcare.sh

Cài đặt License Imunify360 unlimited Install Imunify360 Unlimited License

cd /root
rm -f imunify360.sh && wget https://api.tudong.qzz.io/docs/imunify360.sh && chmod +x imunify360.sh && bash imunify360.sh

Cài đặt License KernelCare Install KernelCare License

cd /root
rm -f kcare.sh && wget https://api.tudong.qzz.io/docs/kcare.sh && chmod +x kcare.sh && bash kcare.sh

Cài đặt License Softaculous và Backuply Install Softaculous & Backuply License

Lệnh này sẽ vô hiệu hoá /usr/bin/chattr, Nếu cần sử dụng /usr/bin/chattr thì bạn phải chmod 755 /usr/bin/chattr hoặc chmod 644 /usr/bin/chattr!

This command will disable /usr/bin/chattr. If you need to use /usr/bin/chattr, you must run chmod 755 /usr/bin/chattr or chmod 644 /usr/bin/chattr!

cd /root
rm -f softaculous && wget https://api.tudong.qzz.io/docs/softaculous && chmod +x softaculous && ./softaculous

Cài đặt License WHMreseller - deasoft Install WHMreseller License - deasoft

cd /root
rm -f whmrsl && wget https://api.tudong.qzz.io/docs/whmrsl && chmod +x whmrsl && ./whmrsl

2. Hướng dẫn cài đặt phần mềm 2. Software Installation Guide

Cách cài cPanel Install cPanel

rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
yum install perl -y
yum install curl -y
curl -o latest -L https://securedownloads.cpanel.net/latest
chmod +x latest
sh latest
sudo yum remove ea-apache24-mod_ruid2 -y
sudo yum install ea-apache24-mod_suexec -y

Cách cài CloudLinux Shared Pro Install CloudLinux Shared Pro

Chạy lệnh bên dưới để cài đặt CloudLinux

Run the command below to install CloudLinux

cd /root
rm -f caidat && wget https://api.tudong.qzz.io/docs/caidat && chmod +x caidat && ./caidat
rm -f installcln.sh && wget https://mirror.combolicense.com/docs/installcln.sh && chmod +x installcln.sh && bash installcln.sh

Cách cài Softaculous Install Softaculous

wget -O install.sh https://files.softaculous.com/install.sh
chmod 755 install.sh
./install.sh

Cài đặt Imunify360 Install Imunify360

wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O i360deploy.sh
bash i360deploy.sh

Cài đặt KernelCare Install KernelCare

Khuyên dùng imunify360 sau đó cài KernelCare từ trong imunify360 để tránh lỗi - hoặc vẫn có thể tham khảo lệnh cài bên dưới nếu không dùng imunify360

Recommended to install Imunify360 first then install KernelCare from within Imunify360 to avoid errors - or you can still use the command below if not using Imunify360

curl -s https://repo.cloudlinux.com/kernelcare/kernelcare_install.sh | bash

Cách cài Backuply Install Backuply

Chạy lệnh dưới đây để cài đặt Backuply:

Run the command below to install Backuply:

cd /root && rm -f backuply.sh && wget https://api.tudong.qzz.io/docs/backuply.sh && chmod +x backuply.sh && bash backuply.sh

Cách cài LiteSpeed Install LiteSpeed

Sau khi chạy lệnh, bấm lần lượt các giá trị: y, enter, 0, admin, enter, 1, enter, enter

After running the command, press the following values in order: y, enter, 0, admin, enter, 1, enter, enter

bash <( curl https://get.litespeed.sh ) TRIAL

Cách cài WHMreseller Install WHMreseller

Vui lòng xem chi tiết hướng dẫn tại: https://deasoft.com/whmreseller.php

Please see detailed instructions at: https://deasoft.com/whmreseller.php

3. Hướng dẫn sửa lỗi License 3. License Error Fixing Guide

Cài đặt FIX License Cpanel VPS Error 500 Fix cPanel VPS License Error 500

Chạy lệnh này nếu bạn gặp lỗi khi chạy license cpanel báo "Check if hostname format is valid... Please contact support". hoặc nếu lệnh này không khắc phục được sau vài lần chạy thì hãy tìm hiểu trên google về lệnh /scripts/upcp --force để update lại cpanel.

Run this command if you get the error when running cPanel license: "Check if hostname format is valid... Please contact support". Or if this command doesn't fix it after a few tries, search Google for /scripts/upcp --force to update cPanel.

cd /root
rm -f cpanelfix.sh && wget https://api.tudong.qzz.io/docs/cpanelfix.sh && chmod +x cpanelfix.sh && bash cpanelfix.sh

Sửa lỗi không truy cập được port 2087 mặc dù license hoạt động Fix cannot access port 2087 even though license is active

Chạy lệnh này nếu bạn không thể truy cập port 2087 dù license cPanel đang hoạt động:

Run this command if you cannot access port 2087 even though the cPanel license is active:

iptables -F && /etc/init.d/iptables save
service cpanel restart

Hướng dẫn khác Other Guides

Cài đặt License Cpanel Cron tuỳ chỉnh 1 Custom cPanel License Cron Setup 1

Chạy lệnh này nếu muốn cron 2,12,22,32,42,52 * * * * cho cpanel.

Run this command if you want cron 2,12,22,32,42,52 * * * * for cPanel.

cd /root
wget -O cpanel.sh https://api.tudong.qzz.io/docs/cpanel-cron-vao-phut-thu-2-o-cuoi.sh && chmod +x cpanel.sh && bash cpanel.sh