User Agents

Web browsers and everyday web tech, explained

How to Find Addon Domain Path in cPanel

· 5 min read · Extensions

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Locating the path of an addon domain in cPanel is essential for managing files, configuring scripts, or troubleshooting website issues. The document root (file path) of an addon domain differs from the main domain and is often stored in a subdirectory within the public_html folder. Knowing this path allows you to access the correct files via File Manager, FTP, or command-line tools. This guide walks you through the exact steps to find the document root of any addon domain using cPanel, highlights common pitfalls, and helps troubleshoot access issues.

What You'll Need

  • Active cPanel login credentials
  • Access to the hosting account where the addon domain is installed
  • The name of the addon domain you're looking for
  • Basic familiarity with cPanel interface

Step-by-Step

  1. Log in to cPanel. Navigate to your hosting provider's cPanel login page, enter your username and password, and sign in. The login URL is typically in the format yourdomain.com/cpanel or provided by your host.
  2. Locate the "Domains" section. Once inside cPanel, scroll to find the "Domains" category. This section includes options like "Domains," "Addon Domains," "Subdomains," and "Parked Domains."
  3. Click on "Addon Domains." This tool manages all addon domains associated with your account. It displays a list of existing addon domains, their document roots, and associated main domains.
  4. Review the "Document Root" column. In the addon domains list, each entry shows the addon domain name and its corresponding document root path. This path is the server location where the website's files are stored. For example, an addon domain shopexample.com might have a document root like public_html/shop.
  5. Note the full path. The document root shown is relative to your home directory. The complete server path typically begins with /home/username/, where "username" is your cPanel account username. So, if the document root is public_html/store, the full path is /home/username/public_html/store.
  6. Verify the path using File Manager (optional). To confirm, open "File Manager" in cPanel, navigate to public_html, and check if the folder listed in the document root exists and contains the addon domain's website files (e.g., index.html or wp-config.php).
  7. Use the path for external tools. When connecting via FTP or SFTP clients like FileZilla, use the full path to navigate directly to the addon domain's folder. This ensures you're editing the correct site files.

Common Mistakes

  • Confusing addon domains with subdomains. Subdomains use paths like public_html/sub, but addon domains are separate websites with their own document roots. Ensure you're checking the "Addon Domains" section, not "Subdomains."
  • Assuming the document root is the same as the folder name. The folder shown in the document root may not match the domain name exactly. For example, blogsite.com might use public_html/myblog. Always check the actual document root in cPanel.
  • Overlooking the home directory prefix. The path shown in cPanel is relative. For full server paths, prepend /home/username/. Failing to do so can cause errors in scripts or configuration files that require absolute paths.
  • Editing files in the wrong directory. Accidentally modifying files in public_html instead of the addon domain's folder can break the main site. Always double-check the path before making changes.

Tips

  • Use descriptive folder names. When creating addon domains, choose clear document root names (e.g., public_html/client1-site) to avoid confusion later.
  • Bookmark the addon domains page. If you manage multiple sites, save the cPanel Addon Domains URL for quick access.
  • Check file ownership and permissions. If files aren’t loading, ensure the addon domain’s folder has correct permissions (typically 755 for folders, 644 for files) and is owned by your cPanel user.
  • Use the full path in cron jobs or scripts. When setting up automated tasks, always use the absolute path (e.g., /home/username/public_html/addon-folder/script.php) to avoid execution errors.

Troubleshooting

If you can't locate the addon domain path or the site isn't working:

  • Addon domain not listed? Confirm the domain was properly added via the "Addon Domains" tool. If missing, it may have been removed or added under a different account.
  • Document root folder doesn't exist? Use File Manager to create the folder manually if it's missing, then re-add the domain or verify DNS and server settings.
  • Website shows 404 or main domain content? The document root may be misconfigured. Recheck the path in "Addon Domains" and ensure it points to the correct folder with index files.
  • Permission denied when accessing files? Contact your hosting provider to verify file ownership. Some hosts restrict direct access to certain directories for security.
  • Changes not reflecting on the site? Clear your browser cache and check if the correct files are uploaded to the documented root. Use "Synchronize" in FTP clients to ensure file consistency.

Frequently Asked Questions

Can I change the document root of an addon domain?

Yes, but you must remove the addon domain first, then re-add it with a new document root. Back up files before doing so to avoid data loss.

Is the addon domain path the same as the URL?

No. The path is the server file location (e.g., public_html/shop), while the URL is the web address (e.g., shopexample.com).

Do addon domains share the same PHP version as the main domain?

Usually, yes. Most shared hosting environments apply the same PHP version across all domains unless configured otherwise via MultiPHP Manager.

Can two addon domains use the same document root?

No. Each addon domain must have a unique document root to avoid conflicts and ensure proper routing.

Why can’t I see my addon domain in cPanel?

It may have been removed, not fully set up, or you’re logged into the wrong cPanel account. Contact your host if the domain should be active.

Does the document root affect email accounts?

No. Email accounts are managed separately and are not tied to the document root of addon domains.