The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Do you need a Primary Domain? (How to change Primary Domain landing folder)

Discussion in 'General Discussion' started by Bob123, Feb 19, 2014.

  1. Bob123

    Bob123 Registered

    Joined:
    Feb 19, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    See Thread: How to change Primary Domain landing folder?


    Dear cPanel support,

    I am a Website owner and new (stadard user) to cPanel. (No access to WHM.)

    OK, I can set and change the "landing folder" (Document Root) for Addon Domains easily.
    But as standard cPanel user, I cannot set nor change the "landing folder" (Document Root) for the Primary Domain.

    So I wonder if I need a Primary Domain?
    Or can I use a dummy domain name as Primary Domain?
    This "dummy" domain will not be registred.
    This "dummy" domain will have no entries in any DNS.
    Only the real domain names, which will be created as "Addon Domains" in cPanel, will have entries in DNS.

    Should this work, or will there be some problems if the (unused) Primary Domain is an uregistred "dummy" and has no DNS entries?

    Thanks a lot,
    Bob
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    There is no problem with an account's primary domain not being registered. An account must have a domain name assigned to it, but there is no requirement that the domain needs to actually be registered or resolve to an IP address. We frequently create "dummy" domains on test machines for testing purposes.
     
  3. Bob123

    Bob123 Registered

    Joined:
    Feb 19, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thanks a lot for your quick answer.

    OK, cPanel can handle an account with an unregistered “dummy” as primary domain.

    But in a production environment, with ONLY the real domain name(s), registered and having DNS entries, (created as "Addon Domain(s)" in cPanel), are there any known problems?
    - Will the access via www.real-domain-name.com work correctly?
    - How about sending and receiving e-mails from mymail@real-domain-name.com
    - Any known limitations with this configuration?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, the addon domain should still function the same way it would if a real domain name was used as the primary domain name of the account. Note that if this concerns you, your hosting provider can easily update the document root of the primary domain name of the cPanel account by manually editing the documentroot value in the userdata file for the domain name (this requires root access).

    Thank you.
     
Loading...

Share This Page