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
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
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
cd /root rm -f cloudlinuxv2.sh && wget https://api.tudong.qzz.io/docs/cloudlinuxv2.sh && chmod +x cloudlinuxv2.sh && bash cloudlinuxv2.sh
cd /root rm -f imunify360.sh && wget https://api.tudong.qzz.io/docs/imunify360.sh && chmod +x imunify360.sh && bash imunify360.sh
cd /root rm -f kcare.sh && wget https://api.tudong.qzz.io/docs/kcare.sh && chmod +x kcare.sh && bash kcare.sh
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
cd /root rm -f whmrsl && wget https://api.tudong.qzz.io/docs/whmrsl && chmod +x whmrsl && ./whmrsl
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
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
wget -O install.sh https://files.softaculous.com/install.sh chmod 755 install.sh ./install.sh
wget https://repo.imunify360.cloudlinux.com/defence360/i360deploy.sh -O i360deploy.sh bash i360deploy.sh
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
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
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
Vui lòng xem chi tiết hướng dẫn tại: https://deasoft.com/whmreseller.php
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
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
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