This guide explains how to replace cPanel's hardened kernel with a standard third-party kernel. While cPanel provides a preconfigured hardened kernel, you have the flexibility to install an alternative kernel version. Note that this process requires a server reboot and will cause downtime, so plan accordingly.
Prerequisites
Before proceeding, it is recommended to enable symlink protection when removing the hardened kernel. Ensure you have SSH root access to your server.
How to Replace the Kernel
-
Step 1: Remove the cPanel kernel repository
Log in to your server via SSH and remove the cPanel kernel repository file:
rm /etc/yum.repos.d/cPkernel.repo -
Step 2: List available kernels
View all available kernel versions that can be installed:
yum list --showduplicates kernel -
Step 3: Install your chosen kernel
Install the kernel version of your choice by replacing
KERNELNAMEwith the specific version:yum install KERNELNAMEFor example, to install kernel version 2.6.32:
yum install kernel-2.6.32Note: It is recommended to install the most recent stable kernel version available.
-
Step 4: Reboot the server
Once the installation is complete, reboot your server to load the new kernel:
reboot