{"id":2473,"date":"2025-07-30T08:56:01","date_gmt":"2025-07-30T08:56:01","guid":{"rendered":"https:\/\/hostrago.com\/knowledge-base\/?p=2473"},"modified":"2025-07-30T08:56:03","modified_gmt":"2025-07-30T08:56:03","slug":"replace-the-hardened-kernel-of-cpanel","status":"publish","type":"post","link":"https:\/\/hostrago.com\/knowledge-base\/replace-the-hardened-kernel-of-cpanel\/","title":{"rendered":"How to Replace the Hardened Kernel of cPanel with a Standard Kernel?"},"content":{"rendered":"\n<p>If you&#8217;re running <strong><a href=\"https:\/\/cpanel.net\/\" target=\"_blank\" rel=\"noopener\">cPanel <\/a>on a CentOS or CloudLinux server<\/strong>, you might have noticed that it installs a <strong>hardened kernel<\/strong> by default when KernelCare or related security tools are enabled. While this adds an extra layer of protection, there are times when system administrators may prefer to <strong>replace the hardened kernel<\/strong> with a standard one \u2014 especially during troubleshooting, updates, or compatibility concerns with certain software or modules.<\/p>\n\n\n\n<p>In this guide by <strong><a href=\"https:\/\/hostrago.com\/\">Hostrago<\/a><\/strong>, we\u2019ll walk you through the steps to <strong>replace the hardened kernel<\/strong> of cPanel with a standard kernel safely and effectively. We&#8217;ll also touch on why you might want to make the switch, and precautions to keep your server stable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Replace the Hardened Kernel?<\/h2>\n\n\n\n<p>Before diving into the technical steps, let\u2019s understand why you might need to switch from a hardened kernel to a standard one:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Compatibility Issues<\/strong>: Some modules or software may not function properly under a hardened kernel.<\/li>\n\n\n\n<li><strong>Kernel Panic or Crashes<\/strong>: In rare cases, hardened kernels may trigger system instability.<\/li>\n\n\n\n<li><strong>Custom Kernel Requirements<\/strong>: You may need specific kernel builds for performance tuning or hardware support.<\/li>\n\n\n\n<li><strong>Troubleshooting Needs<\/strong>: Diagnosing certain low-level issues is easier with the standard kernel.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Replace the Hardened Kernel in cPanel<\/h2>\n\n\n\n<p>Follow these steps carefully to replace your existing hardened kernel with the standard kernel:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Verify the Current Kernel<\/h3>\n\n\n\n<p>Before making any changes, it\u2019s important to verify which kernel is currently in use.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>uname -r<br><\/code><\/pre>\n\n\n\n<p>If the output contains <code>kcare<\/code> or <code>kernelcare<\/code>, you\u2019re using a hardened kernel.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Disable KernelCare (If Installed)<\/h3>\n\n\n\n<p>KernelCare is often responsible for loading a hardened kernel. Disable it first.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>kcarectl --unload<br><\/code><\/pre>\n\n\n\n<p>Stop it from restarting automatically on boot:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chkconfig kcare on<br><\/code><\/pre>\n\n\n\n<p>Or remove it completely:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>yum remove kernelcare<br><\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Install the Standard Kernel<\/h3>\n\n\n\n<p>Now, install the standard kernel package for your Linux distribution:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">For CentOS 7:<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>yum install kernel<br><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">For AlmaLinux or Rocky Linux:<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\">ashCopyEd<code>dnf install kernel<br><\/code><\/pre>\n\n\n\n<p>Make sure the standard kernel gets added to GRUB boot entries.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Set Standard Kernel as Default in GRUB<\/h3>\n\n\n\n<p>After installing the standard kernel, update GRUB and make the new kernel the default:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>grub2-set-default 0<br>grub2-mkconfig -o \/boot\/grub2\/grub.cfg<br><\/code><\/pre>\n\n\n\n<p>You can also check the available kernel entries with:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>awk -F\\' '$1==\"menuentry \" {print $2}' \/etc\/grub2.cfg<br><\/code><\/pre>\n\n\n\n<p>Ensure the latest standard kernel is set to boot by default.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Reboot Your Server<\/h3>\n\n\n\n<p>Now, reboot the server to load the new kernel:bashCopyEdit<code>reboot<br><\/code><\/p>\n\n\n\n<p>Once rebooted, verify the active kernel:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>uname -r<br><\/code><\/pre>\n\n\n\n<p>This should now show the standard kernel version (without any &#8220;kcare&#8221; reference).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verifying Kernel Status in WHM<\/h2>\n\n\n\n<p>After logging into WHM, go to:<\/p>\n\n\n\n<p><strong>Home \u00bb Server Status \u00bb Server Information<\/strong><\/p>\n\n\n\n<p>Here, you can check the current kernel version. Make sure it reflects the standard kernel and no longer includes the hardened version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Replacing the hardened kernel with a standard kernel in cPanel\/WHM is a straightforward but sensitive process. At <strong>Hostrago<\/strong>, we always recommend understanding the implications of such changes, especially on production servers. If you&#8217;re looking for optimal server performance or troubleshooting issues, the switch to a <strong>standard kernel<\/strong> can be the right step.<\/p>\n\n\n\n<p>For more tutorials like this, check out our <a href=\"https:\/\/hostrago.com\/knowledge-base\">Knowledge Base<\/a> or explore our <strong><a href=\"https:\/\/hostrago.com\/self-managed-vps\/\">VPS Hosting Plans<\/a><\/strong> that offer full root access and kernel control.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re running cPanel on a CentOS or CloudLinux server, you might have noticed that it installs a hardened kernel by default when KernelCare or&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[708,710,707,709,706],"class_list":["post-2473","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","tag-cpanel-kernel-replacement","tag-cpanel-tips","tag-kernel-upgrade-whm","tag-replace-kernel","tag-standard-kernel"],"menu_order":0,"_links":{"self":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=2473"}],"version-history":[{"count":1,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2473\/revisions"}],"predecessor-version":[{"id":2474,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2473\/revisions\/2474"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media\/2472"}],"wp:attachment":[{"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=2473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=2473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostrago.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=2473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}