In this blog, you'll see how to find the location of the root directory for your specific domain that's hosted by your web hosting provider.
If you're using cPanel, you may see your Home Directory under the content Stats on the sidebar, but it may not the root directory of any of your hosted domains. But it could be the containing folder of the root directory for your domain.
- To find the root directory for your addon domain or even for your main domain that's listed at the row Main Domain of the content Stats.
- When you click the “File Manager” on the cellbox Files and if you didn't mark to skip the follow up question yet.
- There you will see the popup File Manager Directory Selection.
- Select the option with the words “Document Root for:”.
- And choose the hosted domain you want to see the location of its root directory.
- And lastly, click the "Go" button below the popup area.
- In File Manager, focus on the top left area of the application interface.
- And the value of the text box including the "/" slash on its left, is the location of the root directory for the domain you chose.
- The location of the root directory for an addon domain is more easier to find.
- Remember that the value of every “Document Root” cell on the following video, is the location of the root directory for a specific additional domain.
- This is the official video tutorial to learn about creating and managing add-on domains:
On Parallels Plesk Panel
One of the popular control panels is called Parallels Plesk Panel. And here is how to find the root directory for a specific domain, with this control panel.
- On the Websites & Domains area of the home.
- Click the “Hosting Settings” of the listed website you want to see the location of its root directory, on the list of hosted domains below that area.
- And in the following area, the value of the field Document root is the root directory's location for the domain you chose.
The document root for main domain on Parallels Plesk Panel may be "/httpdocs" in default.
Location's Format in Default
Most hosting companies will make the top directory of your web document root as "/example.com" if you register a domain named "example.com". Like if you're using Hepsia Control Panel on such as the Standard host.duoservers.com .
- For example, when you add the new domain "control-panel-demo3-543974.net".
- The location of the root for that domain will be look like "/www/control-panel-demo3-543974.net".
But remember, not all the locations of the root web directories on the filesystems of all web servers are in the same format! They will vary across hosting providers and operating systems.