{"id":399,"date":"2012-10-19T15:14:59","date_gmt":"2012-10-19T15:14:59","guid":{"rendered":"http:\/\/www.milesweb.com\/hosting-faqs\/?p=399"},"modified":"2023-02-11T16:03:30","modified_gmt":"2023-02-11T10:33:30","slug":"document-root-outside-public-html-for-addonsub-domains","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/","title":{"rendered":"How to Set Document Root outside public_html for Addon Domain OR Sub Domain?"},"content":{"rendered":"<p><strong>Watch this video for a step by step process on how to set document root outside public_html for addon domain or sub domain<\/strong><\/p>\n<div class=\"youtube-video\" style=\"border: 1px solid #ddd;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/GQ-KnDTrJhk\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p>When adding an Addon OR Subdomain, the default DocumentRoot on cPanel servers is \/home\/user\/public_html\/addon.com. What if you want to set the DocumentRoot outside public_html? You can when adding the Addon OR subdomain. But, the system won&#8217;t allow it. To enable this feature, you need to contact your <a title=\"milesweb\" href=\"https:\/\/www.milesweb.in\/\" target=\"_blank\" rel=\"noopener\"><strong>web hosting provider<\/strong><\/a>. Not all web hosts provide this feature. If you have a <a href=\"https:\/\/www.milesweb.in\/hosting\/vps-hosting\/\"><strong>VPS hosting<\/strong><\/a> OR <a href=\"https:\/\/www.milesweb.in\/hosting\/dedicated-servers\/\"><strong>dedicated server<\/strong><\/a>, then<\/p>\n<ul>\n<li>Log in to <strong>WHM<\/strong> as <strong>root. <\/strong><\/li>\n<li>Click on<strong> Server Configuration.<\/strong><\/li>\n<li>Go to<strong> Tweak Settings. <\/strong><\/li>\n<li>Now, in the<strong> Find <\/strong>textbox type <strong>public_html<\/strong>.<\/li>\n<li>By default <strong>Restrict document roots to public_html <\/strong>option is <strong>On.<\/strong> Set it to <strong>Off. <\/strong><\/li>\n<li>When set to <strong>On<\/strong> it prevents users from creating subdomains outside of their public_html directory.<\/li>\n<li>Click on <strong>Save. <\/strong><\/li>\n<\/ul>\n<p>This will allow you to set document root outside public_html for the Addon Domain or Subdomain.<\/p>\n<p>This feature is available with our <a title=\"cPanel\" href=\"https:\/\/www.milesweb.in\/hosting\/cpanel-hosting\" target=\"_blank\" rel=\"noopener\">cPanel shared hosting<\/a> plans.<\/p>\n<p><span style=\"border-radius: 2px; text-indent: 20px; width: auto; padding: 0px 4px 0px 0px; text-align: center; font: bold 11px\/20px 'Helvetica Neue',Helvetica,sans-serif; color: #ffffff; background: #bd081c no-repeat scroll 3px 50% \/ 14px 14px; position: absolute; opacity: 1; z-index: 8675309; display: none; cursor: pointer;\">Save<\/span><br \/>\n<script type=\"application\/ld+json\">{\n  \"@context\": \"http:\/\/schema.org\",\n  \"@type\": \"VideoObject\",\n  \"name\": \"How to Set Document Root outside public_html for Addon Domain OR Sub Domain? | MilesWeb\",\n  \"description\": \"Here's an in-depth guide on how to set document root outside public_html for addon domain or sub domain: https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public_html-for-addonsub-domains\/  Give a thumbs up \ud83d\udc4d if you liked this video. Subscribe to our channel and get notified for all the latest videos. To know more about web hosting visit our website - https:\/\/www.milesweb.in\",\n  \"thumbnailUrl\": \"https:\/\/i.ytimg.com\/vi\/GQ-KnDTrJhk\/default.jpg\",\n  \"uploadDate\": \"2020-10-13T11:57:38Z\",\n  \"duration\": \"PT1M10S\",\n  \"embedUrl\": \"https:\/\/www.youtube.com\/embed\/GQ-KnDTrJhk\",\n  \"interactionCount\": \"5\"\n}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Watch this video for a step by step process on how to set document root outside public_html for addon domain or sub domain When adding an Addon OR Subdomain, the default DocumentRoot on cPanel servers is \/home\/user\/public_html\/addon.com. What if you want to set the DocumentRoot outside public_html? You can when adding the Addon OR subdomain. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[229],"tags":[],"class_list":["post-399","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-whm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Set Document Root outside public_html for Addon Domain OR Sub Domain?<\/title>\n<meta name=\"description\" content=\"Here is a step-by-step guide on how to set the document root for an addon domain or subdomain outside of public_html.\" \/>\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.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Document Root outside public_html for Addon Domain OR Sub Domain?\" \/>\n<meta property=\"og:description\" content=\"Here is a step-by-step guide on how to set the document root for an addon domain or subdomain outside of public_html.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2012-10-19T15:14:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-11T10:33:30+00:00\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/document-root-outside-public-html-for-addonsub-domains\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/document-root-outside-public-html-for-addonsub-domains\\\/\"},\"author\":{\"name\":\"Admin\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"headline\":\"How to Set Document Root outside public_html for Addon Domain OR Sub Domain?\",\"datePublished\":\"2012-10-19T15:14:59+00:00\",\"dateModified\":\"2023-02-11T10:33:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/document-root-outside-public-html-for-addonsub-domains\\\/\"},\"wordCount\":196,\"commentCount\":0,\"articleSection\":[\"Web Host Manager\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/document-root-outside-public-html-for-addonsub-domains\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/document-root-outside-public-html-for-addonsub-domains\\\/\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/document-root-outside-public-html-for-addonsub-domains\\\/\",\"name\":\"How to Set Document Root outside public_html for Addon Domain OR Sub Domain?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#website\"},\"datePublished\":\"2012-10-19T15:14:59+00:00\",\"dateModified\":\"2023-02-11T10:33:30+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"description\":\"Here is a step-by-step guide on how to set the document root for an addon domain or subdomain outside of public_html.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/document-root-outside-public-html-for-addonsub-domains\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/document-root-outside-public-html-for-addonsub-domains\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/document-root-outside-public-html-for-addonsub-domains\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set Document Root outside public_html for Addon Domain OR Sub Domain?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#website\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/#\\\/schema\\\/person\\\/90143c7d8df4b4de36b3dbb0bb272f69\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"contentUrl\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/MilesWeb-Logo-150x150.png\",\"caption\":\"Admin\"},\"description\":\"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.\",\"url\":\"https:\\\/\\\/www.milesweb.in\\\/hosting-faqs\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Document Root outside public_html for Addon Domain OR Sub Domain?","description":"Here is a step-by-step guide on how to set the document root for an addon domain or subdomain outside of public_html.","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.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Document Root outside public_html for Addon Domain OR Sub Domain?","og_description":"Here is a step-by-step guide on how to set the document root for an addon domain or subdomain outside of public_html.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2012-10-19T15:14:59+00:00","article_modified_time":"2023-02-11T10:33:30+00:00","author":"Admin","twitter_misc":{"Written by":"Admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/"},"author":{"name":"Admin","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"headline":"How to Set Document Root outside public_html for Addon Domain OR Sub Domain?","datePublished":"2012-10-19T15:14:59+00:00","dateModified":"2023-02-11T10:33:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/"},"wordCount":196,"commentCount":0,"articleSection":["Web Host Manager"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/","name":"How to Set Document Root outside public_html for Addon Domain OR Sub Domain?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2012-10-19T15:14:59+00:00","dateModified":"2023-02-11T10:33:30+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"description":"Here is a step-by-step guide on how to set the document root for an addon domain or subdomain outside of public_html.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/document-root-outside-public-html-for-addonsub-domains\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Set Document Root outside public_html for Addon Domain OR Sub Domain?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","caption":"Admin"},"description":"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":21,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":17438,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/399\/revisions\/17438"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}