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.

Deleting Subdomain does not actually delete it

Discussion in 'General Discussion' started by jeremy@dailydna, Aug 5, 2008.

  1. jeremy@dailydna

    Joined:
    May 29, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    So here is the deal, within CPanel users are able to add their own Subdomains.
    The form to create a subdomain with CPanel looks something like this:

    Subdomain:
    . example.com

    So CPanel automatically takes whatever is in the text field and appends ".example.com" to the end of it.

    The problem is the user entered this:

    Subdomain:
    . example.com

    The user ended up with a subdomain named: "exchange.example.com.example.com". This happens because of CPanels Automatic appending of the ".example.com" to the end of whatever is the text field.

    Now - when trying to delete this improperly named subdomain with both the root account and user account - CPanel will show that the subdomain has been successfully removed but nothing will change, the improper name still appears in the list.

    How can I remove this subdomain?

    I appreciate any help.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I'm sure there are more elegant solutions, but one solution I am aware of to delete the subdomain exchange.example.com.example.com is to create com.example.com and example.com.example.com then delete exchange.example.com then example.com.example.com then com.example.com.

    Are the user using the x3 theme? If not, I recommend using it as its interface for creating subdomains is a bit more intuitive to curb issues such as this.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    This issue is resolved in EDGE.
     
  4. jeremy@dailydna

    Joined:
    May 29, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Thank you for your prompt responses.

    The process mentioned worked great to delete the "exchange.example.com.example.com" subdomain. However, now the "example.com.example.com" subdomain will not delete.
    I believe this is because the original domain "example.com" is setup as an addon-domain.

    This is what CPanel tells me:
    I noticed that the document root for both domains is the same. If I could change the document root than I would be able to delete the subdomain.

    Is there any easy way to change the document root for a subdomain and delete it without messing with any addon domains?

    Thank you for your help.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Each element of "example.com.example.com" is treated as a separate part of the entire domain name. To delete one part, the other parts must exist.

    Thus, com.example.com must exist in order to delete example.com.example.com. Just as example.com.example.com had to exist to delete exchange.example.com.example.com
     
Loading...

Share This Page