{"id":20681,"date":"2025-07-14T10:05:49","date_gmt":"2025-07-14T10:05:49","guid":{"rendered":"https:\/\/www.webhosting.uk.com\/kb\/?p=20681"},"modified":"2026-03-03T11:28:19","modified_gmt":"2026-03-03T11:28:19","slug":"how-to-activate-http-2-for-apache-through-whm-and-cmd","status":"publish","type":"post","link":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/","title":{"rendered":"How to activate HTTP\/2 for Apache through WHM and CMD"},"content":{"rendered":"<p>In this article, we will delve into the process of activating HTTP\/2 for Apache through WHM and the command line.<\/p>\n<p><strong>Let us discuss the two methods for activating HTTP\/2:<\/strong><\/p>\n<p><strong>Method 1:<br \/>\n<\/strong>The graphical user interface makes it easy to activate HTTP\/2 if you are using WHM with EasyApache 4.<\/p>\n<ol>\n<li>Log in to <strong>WHM<\/strong> using root credentials.<\/li>\n<li>Choose the<strong> \u201cSoftware\u201d<\/strong> section and click on the <strong>\u201cEasyApache 4\u201d\u00a0<\/strong>sub-option.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8242d32b.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-20683 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8242d32b.png\" alt=\"EasyApache4\" width=\"297\" height=\"333\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8242d32b.png 297w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8242d32b-268x300.png 268w\" sizes=\"auto, (max-width: 297px) 100vw, 297px\" \/><\/a><\/li>\n<li>Click on the <strong>\u201cCustomise\u201d<\/strong> button.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_82440012.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-20684 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_82440012.png\" alt=\"customise\" width=\"1185\" height=\"334\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_82440012.png 1185w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_82440012-300x85.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_82440012-1024x289.png 1024w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_82440012-768x216.png 768w\" sizes=\"auto, (max-width: 1185px) 100vw, 1185px\" \/><\/a><\/li>\n<li>Select the <strong>\u201cApache Modules\u201d<\/strong> section.<\/li>\n<li>Search for the <strong>\u201cmod_http2\u201d<\/strong> module.<\/li>\n<li>Check the box to enable HTTP2.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_824528f2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-20685 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_824528f2.png\" alt=\"apache modules\" width=\"1196\" height=\"649\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_824528f2.png 1196w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_824528f2-300x163.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_824528f2-1024x556.png 1024w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_824528f2-768x417.png 768w\" sizes=\"auto, (max-width: 1196px) 100vw, 1196px\" \/><\/a><\/li>\n<li>If prompted with a warning, click <strong>\u201cYes\u201d<\/strong> to confirm.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8245e780.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-20686 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8245e780.png\" alt=\"yes\" width=\"878\" height=\"597\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8245e780.png 878w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8245e780-300x204.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8245e780-768x522.png 768w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/a><\/li>\n<li>Go to the <strong>\u201cReview\u201d<\/strong> tab.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8246369a.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-20687 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8246369a.png\" alt=\"review\" width=\"764\" height=\"147\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8246369a.png 764w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8246369a-300x58.png 300w\" sizes=\"auto, (max-width: 764px) 100vw, 764px\" \/><\/a><\/li>\n<li>Click the \u201cProvision\u201d button to apply changes.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_82467846.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-20688 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_82467846.png\" alt=\"provision\" width=\"727\" height=\"247\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_82467846.png 727w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_82467846-300x102.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/a><\/li>\n<li>Wait for EasyApache to complete the build process.<\/li>\n<li><strong>\u201cRestart\u201d<\/strong> Apache to apply the HTTP\/2 configuration.<br \/>\n<a href=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8247b6c1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-20689 size-full\" src=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8247b6c1.png\" alt=\"restart\" width=\"994\" height=\"626\" srcset=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8247b6c1.png 994w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8247b6c1-300x189.png 300w, https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8247b6c1-768x484.png 768w\" sizes=\"auto, (max-width: 994px) 100vw, 994px\" \/><\/a><\/li>\n<\/ol>\n<p><strong>Method 2:<br \/>\n<\/strong> If you are handling Apache directly on a Linux server without WHM, you will need to switch your Apache Multi-Processing Module (MPM) to one compatible with HTTP\/2, such as <strong>\u201cmod_mpm_event.\u201d<\/strong> This method is suitable for advanced or CLI-based setups.<\/p>\n<ol>\n<li>Access the server by logging in as the root user.<\/li>\n<li>Check the currently installed MPM module to determine which one is active. Execute one of the following commands depending on your system:\n<pre>httpd -M | grep mpm<\/pre>\n<p>Or, if apache2ctl is available:<\/p>\n<pre>apache2ctl -M | grep mpm<\/pre>\n<p>Look for output such as <strong>\u201cmpm_prefork_module\u201d, \u201cmpm_itk_module,\u201d<\/strong> or other MPM modules.<\/li>\n<li>Uninstall the incompatible MPM modules using the <strong>\u201cyum\u201d<\/strong> package manager. This is necessary because modules like <strong>\u201cprefork\u201d<\/strong> and <strong>\u201citk\u201d<\/strong> are not well-suited with HTTP\/2.<br \/>\nRun the following commands:<\/p>\n<pre>yum remove ea-apache24-mod_mpm_prefork\r\nyum remove ea-apache24-mod_mpm_itk<\/pre>\n<p>Confirm the removal when prompted by typing <strong>\u201cy\u201d<\/strong> and pressing<strong> Enter.<\/strong><\/li>\n<li>Now, install the required modules for HTTP\/2 support:\n<pre>yum install ea-apache24-mod_mpm_event ea-apache24-mod_http2<\/pre>\n<p>This ensures Apache uses the event MPM and loads the <strong>\u201cmod_http2\u201d<\/strong> module.<\/li>\n<li>To implement the changes, \u201cRestart\u201d Apache with the following command:\n<pre>systemctl restart httpd<\/pre>\n<\/li>\n<\/ol>\n<p>By following this simple guide, you will successfully replace unsuitable MPM modules, activate HTTP\/2, and expand your server for better performance. Hope you liked the two methods of activating HTTP\/2 for Apache through WHM and CMD. If you still find issues in your hosting experience, feel free to contact our 24\/7 technical support team.<\/p>\n<p style=\"text-align: center;\"><em><strong> Managing databases too? Learn <a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-a-mysql-profile-in-whm\/\">How to activate a MySQL Profile in WHM<\/a><\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will delve into the process of activating HTTP\/2 for Apache through WHM and the command line. Let us discuss the two methods for activating HTTP\/2: Method&hellip;<\/p>\n<p><a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/\" class=\"more-link\">Read More<\/a><\/p>\n<div class='heateorSssClear'><\/div><div  class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' data-heateor-sss-href='https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/'><div class='heateor_sss_sharing_title' style=\"font-weight:bold\" >Spread the love<\/div><div class=\"heateor_sss_sharing_ul\"><a aria-label=\"Facebook\" class=\"heateor_sss_facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-activate-http-2-for-apache-through-whm-and-cmd%2F\" title=\"Facebook\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#0765FE;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"X\" class=\"heateor_sss_button_x\" href=\"https:\/\/twitter.com\/intent\/tweet?text=How%20to%20Enable%20HTTP%2F2%20for%20Apache%20via%20WHM%20%26%20CMD&url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-activate-http-2-for-apache-through-whm-and-cmd%2F\" title=\"X\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_x\" style=\"background-color:#2a2a2a;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg width=\"100%\" height=\"100%\" style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M21.751 7h3.067l-6.7 7.658L26 25.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L6 7h6.328l4.37 5.777L21.75 7Zm-1.076 16.242h1.7L11.404 8.74H9.58l11.094 14.503Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Linkedin\" class=\"heateor_sss_button_linkedin\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-activate-http-2-for-apache-through-whm-and-cmd%2F\" title=\"Linkedin\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_linkedin\" style=\"background-color:#0077b5;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path d=\"M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><\/div><div class=\"heateorSssClear\"><\/div><\/div><div class='heateorSssClear'><\/div>","protected":false},"author":28,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1849],"tags":[778],"class_list":["post-20681","post","type-post","status-publish","format-standard","hentry","category-cpanel-and-whm","tag-apache-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.7 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Enable HTTP\/2 for Apache via WHM &amp; CMD<\/title>\n<meta name=\"description\" content=\"Learn step-by-step how to activate HTTP\/2 for Apache using WHM and command line to improve website speed, security and performance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Enable HTTP\/2 for Apache via WHM &amp; CMD\" \/>\n<meta property=\"og:description\" content=\"Learn how to activate HTTP\/2 on a Linux server by switching Apache&#039;s MPM module using WHM amd command line interface.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/\" \/>\n<meta property=\"og:site_name\" content=\"Webhosting UK Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhostingukcom\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-14T10:05:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-03T11:28:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/How-to-activate-HTTP2-for-Apache-through-WHM-and-CMD-1200.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Victor G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Enable HTTP\/2 for Apache via WHM &amp; CMD\" \/>\n<meta name=\"twitter:description\" content=\"Learn how to activate HTTP\/2 on a Linux server by switching Apache&#039;s MPM module using WHM amd command line interface.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/How-to-activate-HTTP2-for-Apache-through-WHM-and-CMD-1200.png\" \/>\n<meta name=\"twitter:creator\" content=\"@WebhostingUKcom\" \/>\n<meta name=\"twitter:site\" content=\"@WebhostingUKcom\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/\"},\"author\":{\"name\":\"Victor G\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\"},\"headline\":\"How to activate HTTP\\\/2 for Apache through WHM and CMD\",\"datePublished\":\"2025-07-14T10:05:49+00:00\",\"dateModified\":\"2026-03-03T11:28:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/\"},\"wordCount\":362,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Snag_8242d32b.png\",\"keywords\":[\"Apache server\"],\"articleSection\":[\"cPanel &amp; WHM\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/\",\"name\":\"How to Enable HTTP\\\/2 for Apache via WHM & CMD\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Snag_8242d32b.png\",\"datePublished\":\"2025-07-14T10:05:49+00:00\",\"dateModified\":\"2026-03-03T11:28:19+00:00\",\"description\":\"Learn step-by-step how to activate HTTP\\\/2 for Apache using WHM and command line to improve website speed, security and performance.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Snag_8242d32b.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Snag_8242d32b.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-activate-http-2-for-apache-through-whm-and-cmd\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to activate HTTP\\\/2 for Apache through WHM and CMD\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"name\":\"Webhosting UK Knowledge Base\",\"description\":\"Expert Insights on Hosting, Development, Security, Marketing, and SEO\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"alternateName\":\"WHUK\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\",\"name\":\"Webhosting UK\",\"alternateName\":\"WHUK\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"width\":1200,\"height\":628,\"caption\":\"Webhosting UK\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webhostingukcom\",\"https:\\\/\\\/x.com\\\/WebhostingUKcom\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/webhostinguk\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/webhosting-uk-com-ltd\\\/\",\"https:\\\/\\\/www.instagram.com\\\/webhosting_uk\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@webhostinguk\"],\"description\":\"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.\",\"email\":\"sales@webhosting.uk.com\",\"telephone\":\"0800 862 0890\",\"legalName\":\"Webhosting UK\",\"foundingDate\":\"2001-02-07\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"51\",\"maxValue\":\"200\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\",\"name\":\"Victor G\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"caption\":\"Victor G\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Enable HTTP\/2 for Apache via WHM & CMD","description":"Learn step-by-step how to activate HTTP\/2 for Apache using WHM and command line to improve website speed, security and performance.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/","og_locale":"en_GB","og_type":"article","og_title":"How to Enable HTTP\/2 for Apache via WHM & CMD","og_description":"Learn how to activate HTTP\/2 on a Linux server by switching Apache's MPM module using WHM amd command line interface.","og_url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/","og_site_name":"Webhosting UK Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/webhostingukcom","article_published_time":"2025-07-14T10:05:49+00:00","article_modified_time":"2026-03-03T11:28:19+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/How-to-activate-HTTP2-for-Apache-through-WHM-and-CMD-1200.png","type":"image\/png"}],"author":"Victor G","twitter_card":"summary_large_image","twitter_title":"How to Enable HTTP\/2 for Apache via WHM & CMD","twitter_description":"Learn how to activate HTTP\/2 on a Linux server by switching Apache's MPM module using WHM amd command line interface.","twitter_image":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/How-to-activate-HTTP2-for-Apache-through-WHM-and-CMD-1200.png","twitter_creator":"@WebhostingUKcom","twitter_site":"@WebhostingUKcom","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/#article","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/"},"author":{"name":"Victor G","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297"},"headline":"How to activate HTTP\/2 for Apache through WHM and CMD","datePublished":"2025-07-14T10:05:49+00:00","dateModified":"2026-03-03T11:28:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/"},"wordCount":362,"publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8242d32b.png","keywords":["Apache server"],"articleSection":["cPanel &amp; WHM"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/","url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/","name":"How to Enable HTTP\/2 for Apache via WHM & CMD","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/#primaryimage"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8242d32b.png","datePublished":"2025-07-14T10:05:49+00:00","dateModified":"2026-03-03T11:28:19+00:00","description":"Learn step-by-step how to activate HTTP\/2 for Apache using WHM and command line to improve website speed, security and performance.","breadcrumb":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/#primaryimage","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8242d32b.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2025\/07\/Snag_8242d32b.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-activate-http-2-for-apache-through-whm-and-cmd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhosting.uk.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to activate HTTP\/2 for Apache through WHM and CMD"}]},{"@type":"WebSite","@id":"https:\/\/www.webhosting.uk.com\/kb\/#website","url":"https:\/\/www.webhosting.uk.com\/kb\/","name":"Webhosting UK Knowledge Base","description":"Expert Insights on Hosting, Development, Security, Marketing, and SEO","publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"alternateName":"WHUK","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhosting.uk.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization","name":"Webhosting UK","alternateName":"WHUK","url":"https:\/\/www.webhosting.uk.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","width":1200,"height":628,"caption":"Webhosting UK"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhostingukcom","https:\/\/x.com\/WebhostingUKcom","https:\/\/www.youtube.com\/c\/webhostinguk","https:\/\/www.linkedin.com\/company\/webhosting-uk-com-ltd\/","https:\/\/www.instagram.com\/webhosting_uk\/","https:\/\/www.tiktok.com\/@webhostinguk"],"description":"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.","email":"sales@webhosting.uk.com","telephone":"0800 862 0890","legalName":"Webhosting UK","foundingDate":"2001-02-07","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"51","maxValue":"200"}},{"@type":"Person","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297","name":"Victor G","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","caption":"Victor G"}}]}},"_links":{"self":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/20681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/comments?post=20681"}],"version-history":[{"count":12,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/20681\/revisions"}],"predecessor-version":[{"id":20704,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/20681\/revisions\/20704"}],"wp:attachment":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/media?parent=20681"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/categories?post=20681"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/tags?post=20681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}