CentOS Linux was discontinued at the end of 2021 in favor of CentOS Stream. CentoS 7 will continue to be supported through the remainder of the RHEL 7 life cycle, which will end on June 30, 2024. If you are using CentOS 7 server with cPanel, it is better to upgrade to AlmaLinux 8, which is a clone of RHEL 8 supported by cPanel.
cPanel provides an open-source script to upgrade your CentOS 7 installation to AlmaLinux.
https://github.com/cpanel/elevate
Download elevate-cpanel
To download elevate-cpanel, run
wget -O /scripts/elevate-cpanel https://raw.githubusercontent.com/cpanel/elevate/release/elevate-cpanel
chmod 700 /scripts/elevate-cpanel
Update the server
yum update
/scripts/upcp
Reboot the server
reboot
Check for upgrade blockers
You need to run this script to see if any software installed on your server is compatible or not.
/scripts/elevate-cpanel --check
If there is no problem detected, you can run the upgrade script.
Upgrade to AlmaLinux 8
To upgrade to AlmaLinux, run
/scripts/elevate-cpanel --start
Server will auto restart during the upgrade process. Once it is finished, you will have AlmaLinux 8.
During upgrade process, you can ssh into the server and run following command to see current upgrade status
/scripts/elevate-cpanel --status
To view the upgrade process logs, run
/scripts/elevate-cpanel --log
Back to Cpanel
Leave a Reply