1. Home
  2. Knowledge Base
  3. Website
  4. Website Tips
  5. What Is a Document Root & how to Find It in cPanel?

What Is a Document Root & how to Find It in cPanel?

Published Date: 19 November 2026
Last Updated/Reviewed Date: 07 November 2026

Quick Answer

A document root specifies the directory used to host a website’s files. It determines which folder the web server uses to display a website.

Prerequisites 

Before proceeding, ensure that: 

Document Root for the Main Domain

The public_html directory is automatically assigned to the primary domain by cPanel.

Website files, including the homepage (index.html or index.php), should be uploaded to this folder.

Once the website files are uploaded, the website will display your content instead of the default hosting page.

Document Root for Addon Domains

cPanel creates an individual folder under public_html when an addon domain is added.

You can choose a different folder during addon domain creation.

Document Root for Subdomains

By default, cPanel assigns a separate directory under public_html to each newly created subdomain.

The folder name usually matches the subdomain name.

Example: For the subdomain blog.example.com, the default document root is public_html/blog.

Frequently Asked Questions (FAQ)

1. Where should I store my main website files?

Upload your website files to the public_html folder.

2. Can I change the document root of an addon domain?

Yes. You can choose a different folder when creating the addon domain.

3. Can multiple domains use a single document root?

No. They generally have separate folders within public_html by default.

Summary

The correct document root must be selected to ensure the website displays the intended content. The main domain uses public_html by default, while addon domains and subdomains generally use separate folders within it.

Need Assistance? 

Having trouble in checking the hidden files in the cPanel account? 

The ORYON Support Team can assist with checking the hidden files present in your account.

For further assistance, please contact our support team. 

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support