Need to reassign domain name to public_html folder if possible

petenorris

Active Member
Aug 9, 2022
30
3
8
Knoxville, Tennessee 37919 United States
cPanel Access Level
Root Administrator
Hello Forum.

My account has a cPanel Admin Cloud license. I am a newbie and am just now starting to learn server administration.

Question 1: Do I need to use i). a domain name with the WHM root account or ii). can the WHM root account be a stand alone entity without a domain name?

Question 2: If possible, how do I move the domain name currently associated with the WHM root account (i.e. mydomain01.com) to the public_html directory?

Question 3: Can I start all over or delete the Linode and deploy a new cPanel with a newly created Linode and still use my cPanel Admin Cloud license that I currently own?

I created or deployed a cPanel account using the Linode Marketplace. It automatically assigned, or I told it to assign (I can't remember), the mydomain01.com to the newly created cPanel license account.

Below is the directory in which the index page for the mydomain01.com domain resides:
\usr\local\apache\htdocs\index.html ( do I need an index page at this location?)

After creating or deploying the cPanel account using the Linode Marketplace I assigned another domain name that I own, mydomain02.com, to a hosting account. The directory in which the index page for mydomain02.com resides is:
\home\mydomain02.com\public_html\index.html

I am using mydomain01.com for the nameservers:
ns1.mydomain01.com
ns2.mydomain01.com
ns3.mydomain01.com
ns4.mydomain01.com

I would appreciate any direction that may be provided.

Thank you in advance.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
Hey there!

For question one, you'll want to pick a hostname that does resolve, but that you don't plan to use for any web traffic. A lot of people choose something like "host.domain.com" so they can easily add an A record to an existing DNS zone so the hostname resolves.

For question two, there isn't a way to do that. You'd just want to change the hostname and create a new account for that website.

For question three, yes, although if you do this too many times the license may lock due to our security checks. If that happens, just contact our Customer Service team and we can get that lock removed.

To clarify, you'll want all your web data in the /home/username/public_html directory for each unique cPanel account you create. Any other directories are not web-accessible and not designed to host websites on a cPanel server.
 

petenorris

Active Member
Aug 9, 2022
30
3
8
Knoxville, Tennessee 37919 United States
cPanel Access Level
Root Administrator
cPRex;

Thank you for responding. I appreciate the information.

Regarding question one:
a). would I need to register a domain name to use for the hostname that does resolve but I don't plan to use for web traffic?
b). would the WHM root domain name be used only for nameservers like ns1.host.domain.com, ns2 host.domain.com, etc or something else?
c). could I use host.domain.com for the WHM root account and put domain.com in the /home/username/public_html directory for web access?

I want to eventually offer web hosting to customers using the WHMCS platform. Technical support at WHMCS tells me that I need two servers, i). one server for the web hosting purchase or commerce website and ii). one server upon which the customers' websites would reside. I would like to use the host.domain.com for the nameservers and the domain.com name for the web hosting commerce site.

Question 4: Could the WHM root account discussed in this thread be used for i). or ii). above or would I need a different configuration altogether?

Thanks.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
A - Not necessarily. I can be a domain name you're already using. For example, you could have domain.com as your website, and host.domain.com as the hostname, and that is perfectly fine.

B - The nameservers can be whatever you want and aren't linked to any domain or the hostname.

C - Exactly that :D

There is no "WHM root account" - you have your root username and password for the server, which also lets you access WHM, but that isn't related to any web hosting domain.

Does that help clear things up?
 

petenorris

Active Member
Aug 9, 2022
30
3
8
Knoxville, Tennessee 37919 United States
cPanel Access Level
Root Administrator
Yes, that does clear things up. :)

Just one more question for this thread. I think I need to start all over again with a new Linode VPS.

Question 5-a). Can I just overwrite my current WHM license account with the newly created Linode VPS or do I need to first delete the account and assign the newly created Linode to the current cPanel license?

Question 5-b). If I need to delete instead of overwrite how would be the best way to delete?

Thank you for your assistance.
 

petenorris

Active Member
Aug 9, 2022
30
3
8
Knoxville, Tennessee 37919 United States
cPanel Access Level
Root Administrator
Hello Forum.

I have got myself confused again.

I deleted the previous Linode (discussed above) and established a new Linode. The new Linode has a different IP address.

The nameservers for the new Linode assigned for cPanel do not resolve. Those nameservers are:
ns1.cprapid.com
ns2.cprapid.com
ns3.cprapid.com
ns4.cprapid.com
https://dnschecker.org/#A/cprapid.com

I created a new cPanel account for the (fictitious) domain name peaches.fic (see below) using the above nameservers (i.e. ns1.cprapid.com, ns2.cprapid.com, ns3.cprapid.com, ns4.cprapid.com). The browser can't find the index page using the domain name peaches.fic My browsers say that there is a problem with the DNS or nameservers.

(Note: For security reasons the domain names below using the *.fic suffix are all fictitious.)

I want to use this domain to eventually sell web hosing services or managed WordPress websites to local customers:
onions.fic (primary domain name used to sell products)

The below domain names I want to use as personal or small business websites for myself:
peaches.fic
pears.fic
strawberry.fic
lemon.fic


I need cPanel accounts for each or for all of the fictitious domain names listed above.

Question 6-a). Do I need to change the above nameservers, ns1.cprapid.com, etc. to different nameservers?

Question 6-b). Should or could I use the Basic Webhost Manager Setup to change the nameservers to onions.fic for my nameservers (i.e. ns1.onions.fic, ns2.onions.fic, ns3.onions.fic, ns4.onions.fic) or do I need to use a different method to change the nameservers?

Thank you in advance.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,470
2,843
363
cPanel Access Level
Root Administrator
6a - yes, the cprapid nameservers are just placeholders so your temporary hostname resolves. They won't do anything for actual domain names.

6b - you should change them there as well so the proper entries get added to future DNS zones you create, but remember that nameservers are created and handled at the registrar level too.