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
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
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
cd /root rm -f cloudlinuxv2.sh && wget https://api.tudong.qzz.io/docs/cloudlinuxv2.sh && chmod +x cloudlinuxv2.sh && bash cloudlinuxv2.sh
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
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!
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
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
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
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
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
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
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
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
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
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
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