Updated: 30 November 2026 · Applies to: cPanel and WHM on AlmaLinux, Rocky Linux, CloudLinux and Ubuntu (root); kernel checks tested on AlmaLinux 9.8
When WHM or cPanel shows an old kernel version, there are two usual reasons: the server has not been rebooted into the new kernel yet, or cPanel's cached system information in /var/cpanel/sysinfo.config is out of date. Compare uname -r with the newest installed kernel first. If the server already runs the new kernel, rebuild the cache with /usr/local/cpanel/scripts/gensysinfo.
Step 1: compare the running kernel with the installed one
Log in over SSH as root. Show the kernel that is running now:
uname -r
List the installed kernels, newest first, on AlmaLinux, Rocky Linux or CloudLinux 8 and later:
rpm -q --last kernel-core
On CentOS 7 or CloudLinux 7 the package is called kernel instead of kernel-core. On Ubuntu use:
dpkg -l 'linux-image-*' | grep ^ii
In a lab test on AlmaLinux 9.8 the two did not match, because a newer kernel had been installed after the last boot:
5.14.0-503.16.1.el9_5.x86_64
kernel-core-5.14.0-741.22.1.el9_9.x86_64 Wed Nov 18 10:10:35 2026
On AlmaLinux and Rocky Linux, needs-restarting -r (from dnf-utils) gives a plain answer and exits with code 1 when a reboot is needed:
needs-restarting -r
Output from the same lab test:
Core libraries or services have been updated since boot-up: * glibc * linux-firmware * systemd Reboot is required to fully utilize these updates.
cPanel has its own check. According to cPanel, the WHM API function system_needs_reboot returns needs_reboot 1 and, for a kernel update, the boot and running kernel versions:
whmapi1 system_needs_reboot
Step 2: reboot into the new kernel
If uname -r shows the old kernel, WHM is reporting correctly: the new kernel is installed but not running. Reboot the server at a quiet time:
reboot
After it comes back, run uname -r again. If it still boots the old kernel, check which kernel GRUB starts by default (AlmaLinux, Rocky Linux and CloudLinux):
grubby --default-kernel
On a VPS whose kernel is set by the host, or on a server that boots a kernel from the provider's network, the installed package has no effect until that setting changes; open a ticket in that case.
Step 3: rebuild cPanel's system information
If uname -r shows the right kernel but WHM still shows the old one (or the wrong operating system version), the cached file is stale. Keep a copy and let cPanel build a new one:
mv /var/cpanel/sysinfo.config /root/sysinfo.config.bak
/usr/local/cpanel/scripts/gensysinfo
Then restart the cPanel service so WHM reads the new file:
/usr/local/cpanel/scripts/restartsrv_cpsrvd
Reload WHM in your browser. If gensysinfo reports that it cannot work out the distribution or its version, the problem is in the operating system release files (for example /etc/os-release), not in cPanel. Check them with hostnamectl before you change anything else.
Servers with KernelCare
KernelCare patches the running kernel without a reboot, but it does not change what uname -r prints, so WHM keeps showing the original version. According to TuxCare, this is deliberate: install scripts rely on the original version string. To see the patched (effective) kernel, run:
kcarectl --uname
If WHM asks for a reboot while KernelCare is active, see WHM/cPanel is asking for a reboot while KernelCare is used.
Related articles
If you would rather not handle kernel updates and reboots yourself, our cPanel server management team can do it for you.