How to Change the cPanel Hardened Kernel with a Standard Kernel

October 10, 2022 / cPanel & WHM

This guide illustrates how to change the cPanel Hardened Kernel with a standard Kernel.


A ready kernel is provided together with the control panel when you host on a cPanel server. The hardened kernel that comes with cPanel can be swapped out for any typical third-party kernel, though.


Important note- The hardened kernel from cPanel & WHM version 68 is now obsolete. They don’t longer update this kernel. For this reason, after removing the hardened kernel, we strongly advise that you enable the symlink protection options. We also advise you to schedule downtime for this procedure because a server reboot is required.


The steps are as follows

  1. Make use of SSH to access your server.
  2. Execute this command: Using the below command the server’s cPkernel or cPanel kernel will be deleted by the system.
    rm /etc/yum.repos.d/cPkernel.repo
  3. Then run this command right away after entering it.
    yum list –showduplicates kernel
    All the available kernels will then appear that you can install on the system.
  4. Go on and then execute the following command to install a kernel: Substitute KERNELNAME with the name of the version of the kernel you would like to deploy.
    yum install KERNELNAME
    The most recent kernel version currently available will be installed using this command.
  5. Finally, once the installation is finished, restart your server.

In this way, you can change the cPanel Hardened Kernel with a standard Kernel. Hope you found this article to be useful. If you have a question, you can just post it in our WHUK forum discussion and you will receive many responses.

Dominos Search