{"id":49001,"date":"2018-05-10T13:18:57","date_gmt":"2018-05-10T18:18:57","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=49001"},"modified":"2018-05-10T13:18:57","modified_gmt":"2018-05-10T18:18:57","slug":"introducing-mod_cpanel","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/","title":{"rendered":"Introducing mod_cpanel"},"content":{"rendered":"

As of the second cPanel & WHM Targeted Security Release of 2018 (<\/span>TSR-2018-0002<\/a>), the\u00a0<\/span>Optimize .htaccess\u00a0<\/a>feature was<\/span>\u00a0removed<\/span>\u00a0from all supported cPanel & WHM versions<\/span>. This difficult decision was the result of some security concerns with its implementation. In its place, we have released the\u00a0mod_cpanel<\/a>\u00a0Apache module. This module will begin to improve upon the features that\u00a0Optimize .htaccess\u00a0provided.<\/p>\n

What is Optimize .htaccess and why is cPanel replacing it?<\/h2>\n

When we released it, Optimize .htaccess was a function that\u00a0<\/span>was intended<\/span>\u00a0to boost server performance<\/span>.\u00a0It accomplished that using the\u00a0<\/span>AllowOverride directive<\/a>\u00a0to reduce the number of paths that Apache checks for .htaccess files<\/span>. Unfortunately, the functionality was not safe enough for shared hosting customers. There was a\u00a0possibility of breaking rewrite\/redirects, PHP inheritance, among many other things.<\/p>\n

We’ve been working to replace the Optimize .htaccess feature with an Apache module (<\/span>mod_cpanel<\/a>)<\/span>.<\/p>\n

What does mod_cPanel give me as a hosting provider?<\/h2>\n

mod_cpanel provides a speed boost in two ways.\u00a0Like\u00a0Optimize .htaccess, it skips directory paths (\/.htaccess, \/home\/.htaccess, \/home\/$user\/.htaccess, etc) that have already\u00a0<\/span>been checked by<\/span>\u00a0Apache<\/span>. New to cPanel is Negative Stat Caching. The mod_cpanel module will perform caching of .htaccess files that do not exist.<\/p>\n

Based on our testing, the new style of .htaccess caching enabled by mod_cpanel provides a small performance improvement of about 2-4% faster response times in serving static content<\/span>.<\/p>\n

In mod_cpanel’s current iteration, newly created .htaccess files may not get picked up immediately. The cache is refreshed when any of the Apache child processes are restarted. If\u00a0<\/span>Apache has already read from that directory,\u00a0it may be necessary to perform a graceful restart of the Apache service. Once that has been done, Apache will process this\u00a0<\/span>newly<\/span>\u00a0added file<\/span>. Future releases of mod_cpanel will improve that integration, preventing the need to restart Apache.<\/p>\n

How do I take advantage of mod_cpanel?<\/h2>\n

To install mod_cpanel,\u00a0<\/span>simply<\/span>\u00a0add ‘ea-apache24-mod_cpanel’ to your EasyApache 4 profiles. You can do this by installing the module via the WHM EasyApache 4 interface, or via yum<\/span>. There are further instructions and explanations included in the\u00a0mod_cpanel Apache module documentation<\/a>.<\/p>\n

If you have any questions leave a comment below or reach out to us via the\u00a0cPanel Forum<\/a>, or\u00a0open a support ticket<\/a>\u00a0with our technical support team!<\/p>\n

If you’d rather talk in-person, you can join us at this year’s cPanel Conference<\/a>, from October 1st – 3rd in Houston, Texas.<\/p>\n","protected":false},"excerpt":{"rendered":"

As of the second cPanel & WHM Targeted Security Release of 2018 (TSR-2018-0002), the\u00a0Optimize .htaccess\u00a0feature was\u00a0removed\u00a0from all supported cPanel & WHM versions. This difficult decision was the result of some security concerns with its implementation. In its place, we have released the\u00a0mod_cpanel\u00a0Apache module. This module will begin to improve upon the features that\u00a0Optimize .htaccess\u00a0provided. What […]<\/p>\n","protected":false},"author":77,"featured_media":64925,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[49],"tags":[1621,661,2009,2013],"class_list":["post-49001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-products","tag-ea4","tag-easyapache","tag-mod_cpanel","tag-optimize-htaccess"],"acf":[],"yoast_head":"\nIntroducing mod_cpanel | cPanel<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introducing mod_cpanel | cPanel\" \/>\n<meta property=\"og:description\" content=\"As of the second cPanel & WHM Targeted Security Release of 2018 (TSR-2018-0002), the\u00a0Optimize .htaccess\u00a0feature was\u00a0removed\u00a0from all supported cPanel & WHM versions. This difficult decision was the result of some security concerns with its implementation. In its place, we have released the\u00a0mod_cpanel\u00a0Apache module. This module will begin to improve upon the features that\u00a0Optimize .htaccess\u00a0provided. What […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"cPanel\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cpanel\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-10T18:18:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/devel.www.cpanel.net\/wp-content\/uploads\/2018\/05\/2018.05.10.mod_cpanel.png\" \/>\n\t<meta property=\"og:image:width\" content=\"3858\" \/>\n\t<meta property=\"og:image:height\" content=\"1527\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"cPanel Community\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cPanel\" \/>\n<meta name=\"twitter:site\" content=\"@cPanel\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"cPanel Community\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/\",\"url\":\"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/\",\"name\":\"Introducing mod_cpanel | cPanel\",\"isPartOf\":{\"@id\":\"https:\/\/devel.www.cpanel.net\/#website\"},\"datePublished\":\"2018-05-10T18:18:57+00:00\",\"dateModified\":\"2018-05-10T18:18:57+00:00\",\"author\":{\"@id\":\"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/8cf97408aad4fb70cf55d11a1d4f57f8\"},\"breadcrumb\":{\"@id\":\"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/devel.www.cpanel.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introducing mod_cpanel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/devel.www.cpanel.net\/#website\",\"url\":\"https:\/\/devel.www.cpanel.net\/\",\"name\":\"cPanel\",\"description\":\"Hosting Platform of Choices\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/devel.www.cpanel.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/8cf97408aad4fb70cf55d11a1d4f57f8\",\"name\":\"cPanel Community\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e1949945083b5526bb95711bd3d616b3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e1949945083b5526bb95711bd3d616b3?s=96&d=mm&r=g\",\"caption\":\"cPanel Community\"},\"description\":\"The web hosting industry's most reliable management solution since 1997. With our first-class support and rich feature set, it's easy to see why our customers and partners make cPanel & WHM their hosting platform of choice. For more information, visit cPanel.net.\",\"sameAs\":[\"https:\/\/cpanel.net\"],\"url\":\"https:\/\/devel.www.cpanel.net\/blog\/author\/cpadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Introducing mod_cpanel | cPanel","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:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/","og_locale":"en_US","og_type":"article","og_title":"Introducing mod_cpanel | cPanel","og_description":"As of the second cPanel & WHM Targeted Security Release of 2018 (TSR-2018-0002), the\u00a0Optimize .htaccess\u00a0feature was\u00a0removed\u00a0from all supported cPanel & WHM versions. This difficult decision was the result of some security concerns with its implementation. In its place, we have released the\u00a0mod_cpanel\u00a0Apache module. This module will begin to improve upon the features that\u00a0Optimize .htaccess\u00a0provided. What […]","og_url":"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/","og_site_name":"cPanel","article_publisher":"https:\/\/www.facebook.com\/cpanel\/","article_published_time":"2018-05-10T18:18:57+00:00","og_image":[{"width":3858,"height":1527,"url":"https:\/\/devel.www.cpanel.net\/wp-content\/uploads\/2018\/05\/2018.05.10.mod_cpanel.png","type":"image\/png"}],"author":"cPanel Community","twitter_card":"summary_large_image","twitter_creator":"@cPanel","twitter_site":"@cPanel","twitter_misc":{"Written by":"cPanel Community","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/","url":"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/","name":"Introducing mod_cpanel | cPanel","isPartOf":{"@id":"https:\/\/devel.www.cpanel.net\/#website"},"datePublished":"2018-05-10T18:18:57+00:00","dateModified":"2018-05-10T18:18:57+00:00","author":{"@id":"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/8cf97408aad4fb70cf55d11a1d4f57f8"},"breadcrumb":{"@id":"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/devel.www.cpanel.net\/blog\/products\/introducing-mod_cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/devel.www.cpanel.net\/"},{"@type":"ListItem","position":2,"name":"Introducing mod_cpanel"}]},{"@type":"WebSite","@id":"https:\/\/devel.www.cpanel.net\/#website","url":"https:\/\/devel.www.cpanel.net\/","name":"cPanel","description":"Hosting Platform of Choices","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devel.www.cpanel.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/8cf97408aad4fb70cf55d11a1d4f57f8","name":"cPanel Community","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/devel.www.cpanel.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e1949945083b5526bb95711bd3d616b3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e1949945083b5526bb95711bd3d616b3?s=96&d=mm&r=g","caption":"cPanel Community"},"description":"The web hosting industry's most reliable management solution since 1997. With our first-class support and rich feature set, it's easy to see why our customers and partners make cPanel & WHM their hosting platform of choice. For more information, visit cPanel.net.","sameAs":["https:\/\/cpanel.net"],"url":"https:\/\/devel.www.cpanel.net\/blog\/author\/cpadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/posts\/49001"}],"collection":[{"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/comments?post=49001"}],"version-history":[{"count":0,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/posts\/49001\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/media\/64925"}],"wp:attachment":[{"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/media?parent=49001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/categories?post=49001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devel.www.cpanel.net\/wp-json\/wp\/v2\/tags?post=49001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}