1. Home
  2. Hosting Management
  3. cPanel
  4. Domains
  5. How to Find the Document Root of Your Website in cPanel

How to Find the Document Root of Your Website in cPanel

What is the Document Root Folder?

The document root is the folder where the website files for a domain name are stored. As you can host multiple domain names in cPanel (addon domains and subdomains), you need to have a unique folder for each domain.

After you create an addon domain or subdomain, you can find the document root inside cPanel by clicking on the Addon Domains or Subdomains icon.

First, we’ll demonstrate how to find the document root for your primary domain. And then, we’ll demonstrate how to find the document root for your addon domains and subdomains.

How to find your document root in cPanel

How to find your primary domain’s document root in cPanel

1) To to begin, go ahead and log into your cPanel.

2) Okay, once you’ve logged into cPanel. Go to the File Manager.

cPanel > Files > File Manager
cPanel > Files > File Manager

 

You’ll see the contents of that folder show up on the right side of the screen. This is the document root for your primary domain; it’s always the public_html folder.

Struggling with subpar support with no answers? ChemiCloud is the hosting solution designed to save you time! 🤓 Check out our web hosting plans!

 

How to find the document root for your addon domains and subdomains

AddOn Domains:

1) To begin, go ahead and log into your cPanel.

2) After logging in, go to the Addon Domains.

cPanel > Domains > Addon Domains
cPanel > Domains > Addon Domains

 

3) Next, you will find a list with all your Addon Domains and listed beside is the Document Root path for each addon domain.

Notice how we have two Addon Domains and listed beside them are their corresponding document root paths. In this example, the document root folder for “domain.com” and “example.com” are in the home directory of the account, not the public_html folder.

SubDomains:

You can find the document root path for your subdomains cPanel by going to the Domains section and clicking Subdomains.

Next, you will find a list with all your subdomains and listed to the right are the Document Root paths for each subdomain.

That’s it! Now you know how to find the document root for your primary domain, addon domains, and subdomains.

Updated on April 13, 2022

Was this article helpful?

Related Articles

🔥 Black Friday Sale!
Get 80% off hosting plans + free domain & SSL!
👉 Start Saving

Leave a Comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.