Get Web Hosting

Web Hosting

Managing subdomains and addon domains in cPanel is essential for effectively organizing your web hosting environment. Whether you're setting up a subdomain for a blog or adding a new domain to your account, understanding how to manage files, emails, and DNS settings for these domains is crucial. This guide provides advanced information on managing these aspects in cPanel, ensuring you can confidently handle all the necessary configurations.

Understanding Subdomains and Addon Domains

Subdomains

A subdomain is an extension of your main domain, allowing you to create separate sections of your website. For example, if your main domain is example.com, you might create a subdomain like blog.example.com. Subdomains are useful for organizing content or hosting different services under one domain.

Addon Domains

An addon domain is a completely separate domain hosted on the same cPanel account. It functions independently of your primary domain, with its own content, email accounts, and DNS settings. Addon domains allow you to host multiple websites on a single hosting account.

Managing Files for Subdomains and Addon Domains

Step 1: Access the File Manager

To manage files for subdomains and addon domains, you first need to access the File Manager in cPanel:

  • Log in to your cPanel account.
  • In the cPanel dashboard, locate the Files section and click on File Manager.

Step 2: Navigate to the Domain's Root Directory

Each subdomain and addon domain has its own root directory where its files are stored:

  • For subdomains, the root directory is typically located within the public_html folder, named after the subdomain (e.g., public_html/blog).
  • For addon domains, the root directory is usually at the same level as public_html but named after the addon domain (e.g., addonexample.com).

Step 3: Manage Files

Once you are in the correct directory, you can manage the files for your subdomain or addon domain:

  • Upload files using the Upload button.
  • Edit files directly using the Edit option.
  • Create new folders or files as needed.
  • Delete unnecessary files to keep your directory organized.

Managing Emails for Subdomains and Addon Domains

Step 1: Access the Email Accounts Section

To create and manage email accounts for your subdomains and addon domains:

  • Log in to your cPanel account.
  • In the cPanel dashboard, locate the Email section and click on Email Accounts.

Step 2: Create Email Accounts

You can create email accounts for both subdomains and addon domains by following these steps:

  • Click on + Create to add a new email account.
  • In the Email field, enter the desired email address (e.g., user@subdomain.example.com).
  • Select the appropriate domain from the dropdown menu.
  • Set a strong password and click Create to finalize the account setup.

Step 3: Manage Existing Email Accounts

To manage existing email accounts:

  • In the Email Accounts section, locate the account you want to manage.
  • Use the Manage button to change the password, quota, or access settings.
  • You can also delete an email account if it is no longer needed.

Managing DNS Settings for Subdomains and Addon Domains

Step 1: Access the Zone Editor

To manage DNS records for subdomains and addon domains:

  • Log in to your cPanel account.
  • In the cPanel dashboard, locate the Domains section and click on Zone Editor.

Step 2: Manage DNS Records

In the Zone Editor, you can manage various DNS records for your subdomains and addon domains:

  • To add a new DNS record, click on + Add Record and choose the type of record (A, CNAME, MX, etc.).
  • Enter the necessary information, such as the name, TTL, and record value.
  • Click Add Record to save the changes.

Step 3: Edit or Delete DNS Records

You can also edit or delete existing DNS records:

  • In the Zone Editor, locate the record you want to edit or delete.
  • Click the Edit button to make changes or the Delete button to remove the record.
  • Confirm any changes or deletions as needed.

Troubleshooting Common Issues

Subdomain or Addon Domain Not Resolving

If your subdomain or addon domain is not resolving, check the following:

  • Ensure that the DNS records are correctly configured in the Zone Editor.
  • Verify that the root directory contains the necessary files for the website to function.
  • Check the domain’s propagation status, as DNS changes can take up to 48 hours to fully propagate.

Email Delivery Issues

If you encounter issues with email delivery for your subdomains or addon domains, consider the following:

  • Ensure that the MX records are correctly configured to point to the mail server.
  • Check if the email account has exceeded its quota and adjust it if necessary.
  • Verify the email client settings and ensure they match the server’s configuration.

File Access Problems

If you experience issues accessing files on your subdomains or addon domains:

  • Ensure the correct permissions are set on the files and directories.
  • Verify that the files are in the correct root directory for the domain.
  • Check for any .htaccess rules that might be restricting access.

By following this guide, you should be able to effectively manage files, emails, and DNS settings for your subdomains and addon domains in cPanel. Understanding these processes ensures that your hosting environment remains well-organized and functional, supporting the smooth operation of your websites and services.

Was this answer helpful? 0 Users Found This Useful (0 Votes)

Search the Knowledge Base

Share