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

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

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

Cài đặt lần đầu

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

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):

yum -y update

Cài đặt License Cpanel VPS

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

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

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!

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

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 Imunify360 unlimited

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

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

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!

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

Cài đặt License WHMreseller - 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

Cách cài 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

Chạy lệnh bên dưới để cài đặt 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

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

Cài đặt Imunify360

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

Cài đặt 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

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

Cách cài Backuply

Chạy lệnh dưới đây để cài đặt 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

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

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

Cách cài WHMreseller

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

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

Cài đặt FIX License Cpanel VPS 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.

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

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:

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

Hướng dẫn khác

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

Chạy lệnh này nếu muốn cron 2,12,22,32,42,52 * * * * cho 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