{"id":8775,"date":"2023-03-31T12:59:40","date_gmt":"2023-03-31T12:59:40","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=8775"},"modified":"2023-03-31T12:59:40","modified_gmt":"2023-03-31T12:59:40","slug":"apache-vhosts-are-not-segmented-or-chrooted-enable-mod_ruid2-in-the-easyapache-4-area","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2023\/03\/31\/apache-vhosts-are-not-segmented-or-chrooted-enable-mod_ruid2-in-the-easyapache-4-area\/","title":{"rendered":"Apache vhosts are not segmented or chroot()ed. Enable \u201cmod_ruid2\u201d in the \u201cEasyApache 4\u201d area"},"content":{"rendered":"\n<p>When running the Security Advisor in cPanel at Home \/ Security Center \/ Security Advisor, I received this error:<\/p>\n\n\n\n<p>Apache vhosts are not segmented or chroot()ed. Enable \u201cmod_ruid2\u201d in the \u201cEasyApache 4\u201d area, enable \u201cJail Apache\u201d in the \u201cTweak Settings\u201d area, and change users to jailshell in the \u201cManage Shell Access\u201d area. Consider a more robust solution by using \u201cCageFS on CloudLinux\u201d. Note that this may break the ability to access mailman via Apache.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Let&#8217;s dig into the error and the solution.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-37-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"210\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-37-14-1024x210.png\" alt=\"\" class=\"wp-image-8776\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-37-14-1024x210.png 1024w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-37-14-300x62.png 300w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-37-14-768x158.png 768w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-37-14-1536x316.png 1536w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-37-14.png 1601w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>To correct this, check EasyApache 4 for mod_ruid2. In EasyApache 4, you can search for the module:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-46-54.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"572\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-46-54-1024x572.png\" alt=\"\" class=\"wp-image-8778\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-46-54-1024x572.png 1024w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-46-54-300x168.png 300w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-46-54-768x429.png 768w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-46-54.png 1077w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>In my case it was enabled, but if not, you can enable it with the slider and then build it.<\/p>\n\n\n\n<p>For the other message &#8211; &#8220;enable \u201cJail Apache\u201d in the \u201cTweak Settings\u201d area, and change users to jailshell in the \u201cManage Shell Access\u201d area.&#8221;<\/p>\n\n\n\n<p>Go to tweak setting&#8217;s in WHM &#8211; Home \/ Server Configuration \/ Tweak Settings.<\/p>\n\n\n\n<p>Search for jail and enable the following:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-53-57.png\"><img decoding=\"async\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-53-57-1024x446.png\" alt=\"\" class=\"wp-image-8782\"\/><\/a><\/figure>\n\n\n\n<p>Clik &#8220;Save&#8221; at the bottom.<\/p>\n\n\n\n<p>Now go to <\/p>\n\n\n\n<p>Home \/ Account Functions \/ Manage Shell Access and enable &#8220;Jailed Shell.&#8221; Click &#8220;Apply to All.&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-58-07.png\"><img decoding=\"async\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2023\/03\/2023-03-31-07-58-07.png\" alt=\"\" class=\"wp-image-8784\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>When running the Security Advisor in cPanel at Home \/ Security Center \/ Security Advisor, I received this error: Apache vhosts are not segmented or chroot()ed. Enable \u201cmod_ruid2\u201d in the \u201cEasyApache 4\u201d area, enable \u201cJail Apache\u201d in the \u201cTweak Settings\u201d area, and change users to jailshell in the \u201cManage Shell Access\u201d area. Consider a more &#8230; <a title=\"Apache vhosts are not segmented or chroot()ed. Enable \u201cmod_ruid2\u201d in the \u201cEasyApache 4\u201d area\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2023\/03\/31\/apache-vhosts-are-not-segmented-or-chrooted-enable-mod_ruid2-in-the-easyapache-4-area\/\" aria-label=\"Read more about Apache vhosts are not segmented or chroot()ed. Enable \u201cmod_ruid2\u201d in the \u201cEasyApache 4\u201d area\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-8775","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/8775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=8775"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/8775\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=8775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=8775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=8775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}