How Can You Replace The Hardened Kernel Of cPanel With A Standard Kernel?

June 21, 2022 / cPanel

When you host on a cPanel server, you will receive a ready kernel along with the control panel. However, you can replace the hardened cPanel kernel with any standard third-party kernel.

Note: The hardened kernel from cPanel & WHM version 68 is now deprecated. This kernel no longer receives updates. As a result, we strongly advise you to enable symlink protection options after removing the hardened kernel.

We also recommend that you schedule downtime for this process because it necessitates a server reboot.

To replace cPanel’s Hardened Kernel with a Standard Kernel

We begin by removing the hardened kernel provided by cPanel, followed by kernel installation.

  1. Log into your server with SSH
  2. Run this command
    rm /etc/yum.repos.d/cPkernel.repo

    The cPkernel or cPanel kernel will be removed from the server by the system.

  3. Now, run this command too
    yum list --showduplicates kernel

    You will see a list of available kernels that you can install on the system.

  4. Run this command to install a kernel
    yum install KERNELNAME

    Remember to replace KERNEL NAME with the name of the kernel version you want to install.

    We recommend you run:

    1 yum install kernel-2.6.32

    This command will install the most recent kernel version available.

  5. Once the installation is complete, restart your server.

Conclusion

We hope that you now have a good understanding of How Can You Replace The Hardened Kernel Of cPanel With A Standard Kernel. If you continue to have problems with the protocol outlined above, please contact the bodHOST Team for constructive assistance 24×7

Leave a Reply

Your email address will not be published. Required fields are marked *