{"id":9047,"date":"2021-01-14T05:26:20","date_gmt":"2021-01-14T05:26:20","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=9047"},"modified":"2021-01-14T05:26:20","modified_gmt":"2021-01-14T05:26:20","slug":"public-html-folder","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/","title":{"rendered":"What is a public_html Folder?"},"content":{"rendered":"<p>The web root for your primary domain name is called as the public_html folder.<\/p>\n<p>The public_html folder comprises of all website files which you want to be displayed when someone types your main domain (the one provided while signing up for hosting).<\/p>\n<p>Or in other words, when visitors type your domain name into their browser, whatever is in the public_html folder will get displayed to them.<\/p>\n<h3>Where To Find this Folder?<\/h3>\n<p>You can find the public_html folder inside your File Manager in your cPanel.<\/p>\n<p><strong>Examples<\/strong><\/p>\n<p>For example, if the file named as index.html is present in the public_html folder, it will get displayed when your website is browsed.<\/p>\n<p>In case there isn\u2019t a default file in the public_html folder (such as index.html, default.html, etc.), then a list of files in the public_html folder will be displayed.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div><\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong> Ensure to replace example.com with the primary domain on your account ( the one that you had signed up with).<\/p>\n<\/p><\/div>\n<\/div>\n<h3>Addon Domains &amp; Subdomains<\/h3>\n<p>It is possible to create Addon domains and Subdomains and these will be stored in the folder inside public_html.<\/p>\n<p><strong>Examples<\/strong><\/p>\n<p>Suppose you create an Addon domain named as addondomain.com. It will use a subfolder same as \/public_html\/addondomain.com\/ (unless you specify any other).<\/p>\n<p>Or if create a Subdomain named as milesweb.abc.com, it will use a folder same as \/public_html\/milesweb\/ (unless you specify any other).<\/p>\n<p>Suppose milesweb.abc.com is defined as a subdomain, and addondomain.com is defined as an addon domain, then the following examples are applicable:<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div><\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong> Ensure to replace abc.com with the primary domain on your account (the one you originally signed up with and haven\u2019t changed it). Also, replace addondomain.com with the extra domain you added in the cPanel\u2019s &#8220;addon domains&#8221; section.<\/p>\n<\/p><\/div>\n<\/div>\n<p>In case you don\u2019t want the additional domains to be subfolders of public_html, then reseller, VPS or dedicated hosting is a better solution, because you can insert each domain in its own cPanel to keep it independent from other domains. With shared hosting you only get one cPanel, and therefore, all addon domains are subfolders of the public_html folder.<\/p>\n<h3>Permissions<\/h3>\n<p>It is important that public_html folder has 0750 permissions.<\/p>\n<p>Check if all files within the public_html folder have 0755 or 0644 permissions.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div><\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong> If the complete path is actually \/home\/username\/public_html\/ (where username is your cPanel username) instead of \/public_html\/ but in maximum places you will see \/public_html\/ rather than the full path, because it assumes that you know you are in your own home directory.\n<\/p>\n<\/p><\/div>\n<\/div>\n<p>Hope this article has helped you to learn about public_html folder.<\/p>\n<h3>Also Read<\/h3>\n<p><a href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/learn-to-configure-file-permissions-in-file-manager\/\" target=\"_blank\" rel=\"noopener\"><strong>Learn to configure File Permissions in File Manager<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The web root for your primary domain name is called as the public_html folder. The public_html folder comprises of all website files which you want to be displayed when someone types your main domain (the one provided while signing up for hosting). Or in other words, when visitors type your domain name into their browser, [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[152,1740,1739,1738],"class_list":["post-9047","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-cpanel-faq","tag-cpanel","tag-cpanel-folders","tag-public_html-folder","tag-what-is-public_html-folder"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is a public_html Folder?<\/title>\n<meta name=\"description\" content=\"The article explains everything about public_html folder.\" \/>\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.co.uk\/hosting-faqs\/public-html-folder\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is a public_html Folder?\" \/>\n<meta property=\"og:description\" content=\"The article explains everything about public_html folder.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-14T05:26:20+00:00\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated 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:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/\",\"name\":\"What is a public_html Folder?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2021-01-14T05:26:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"The article explains everything about public_html folder.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is a public_html Folder?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is a public_html Folder?","description":"The article explains everything about public_html folder.","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.co.uk\/hosting-faqs\/public-html-folder\/","og_locale":"en_GB","og_type":"article","og_title":"What is a public_html Folder?","og_description":"The article explains everything about public_html folder.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-01-14T05:26:20+00:00","author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/","name":"What is a public_html Folder?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2021-01-14T05:26:20+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"The article explains everything about public_html folder.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/public-html-folder\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"What is a public_html Folder?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eefc9695ea2b2c6e143c9c9919701aaa?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/pallavi\/"}]}},"views":374,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=9047"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9047\/revisions"}],"predecessor-version":[{"id":9049,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/9047\/revisions\/9049"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=9047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=9047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=9047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}