How to Switch the Hardened Kernel of cPanel with a Standard Kernel

July 26, 2023 / cPanel & WHM

In this article, we will explain how to switch the Hardened Kernel of cPanel with a Standard Kernel. A ready kernel is offered with the control panel. However, you can switch the hardened cPanel kernel with any other third party kernel.

It is advised to enable symlink protection option when hardened kernel is removed. You should plan downtime for this process as it reboot’s server.

Follow the steps:

  1. Log in to SSH and execute the following command to remove the cPkernel or cPanel kernel from the server.
    rm /etc/yum.repos.d/cPkernel.repo
  2. Enter the below command to view the list of available kernels to install.
    yum list –showduplicates kernel
  3. Now, to install a kernel, execute the following command-
    yum install KERNELNAME
    Note- Replace the name of the kernel with the version you wish to install.
  4. It is recommended to install the latest kernel version, using the following command-
    yum install kernel-2.6.32
  5. Once installation done, reboot your server.

That is it! Hope you liked our article. For more information, do visit our KB section regularly.

Spread the love