Would using subdomains instead of TLDs cause any errors in WHM? I've successfully used subdomains instead of TLD's but I just need to be sure. The subdomain would have access to cPanel and all of those features.

Dani AI

Generated

Short answer: yes — WHM will accept a subdomain (for example, sub.example.com) as the “Domain” when you create a new account, so what tested is supported and still a valid approach. (docs.cpanel.net)

There are two distinct workflows (as pointed out) and it’s important to pick the right one for your goals. Create the sub as a separate account in WHM when you want true isolation — a separate system user, its own quotas, FTP, mailboxes, SSL management and independent backups. Use the in-cPanel “Subdomains” or “Addon Domains” when you simply need another hostname that lives under the same account (no separate cPanel login, usually a subfolder or mapped docroot). cPanel’s domain/addon/subdomain behavior and the auto-created subdomain entries are documented. ()

Key caveats and checks before you proceed: confirm WHM’s Tweak Settings — options that allow subdomains across accounts are disabled by default because of security concerns (you may need to change them for some reseller workflows). If you want the subdomain to have its own DNS zone or be delegated to other nameservers, use subzone delegation. Also plan email and SSL up front: a standalone subdomain account won’t magically inherit MX or cert coverage for every service — create the appropriate A/MX records and ensure the name resolves to the server for AutoSSL to work. (docs.cpanel.net)

If you need automated signup, use WHM’s API or packaged scripts rather than a brittle web-scrape: whmapi1 createacct or the shipped account-creation scripts are the supported paths, and WHM also exposes account-create hooks if you need post-provisioning tasks. Finally, watch username rules (length/characters), test on a staging server, and pick the separate-account route when you want security/isolation and the in-account subdomain route when you want minimal overhead. (api.docs.cpanel.net)

Recommended Answers

All 11 Replies

Hey bluz,

I'm curious. What is WHM? and cPanel? These are specific apps you are talking about?

Thanks for clarifying.


Ed

Would using subdomains instead of TLDs cause any errors in WHM? I've successfully used subdomains instead of TLD's but I just need to be sure. The subdomain would have access to cPanel and all of those features.

WHM is web host manager and is used by resellers to create accounts with cPanel. cPanel is uh a control panel for your site. YOu can read more at http://www.cpanel.net/ :cool:

Hi Bluz, you can use sub-ds in WHM without a problem. You have 2 main choices:

1. Create the sub in WHM. It will have it's own cPanel and most of the features of a full domain account. This seems to be what you want.

2. You can also create subs in cPanel. This is more of a 'bare bones' sub, doesn't have its own cPanel etc.

Hi Bluz, you can use sub-ds in WHM without a problem. You have 2 main choices:

1. Create the sub in WHM. It will have it's own cPanel and most of the features of a full domain account. This seems to be what you want.

2. You can also create subs in cPanel. This is more of a 'bare bones' sub, doesn't have its own cPanel etc.

Thanks. :cool:

Hi Bluz, you can use sub-ds in WHM without a problem. You have 2 main choices:

1. Create the sub in WHM. It will have it's own cPanel and most of the features of a full domain account. This seems to be what you want.

2. You can also create subs in cPanel. This is more of a 'bare bones' sub, doesn't have its own cPanel etc.

Can you tell us how to Create the sub in WHM?

Can you tell us how to Create the sub in WHM?

All you have to do through WHM is instead of using a full TLD on the create account screen is to put a subdomain from yoursite that isn't already made.

All you have to do through WHM is instead of using a full TLD on the create account screen is to put a subdomain from yoursite that isn't already made.

you mean like http://sub.mydomain.com?

O my god I did not know it's posible. Now Is there anyway to have a script that can signup member without you doing all the work?
I mean like http://www.domain.com/signup.php

Now Is there anyway to have a script that can signup member without you doing all the work?

This script will create subdomain in WHM.
Just pass username for new account, password, subdomain, and plan (package).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.