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.

SOLVED Renaming domain through cPanel API or WHM API?

Discussion in 'cPanel Developers' started by Killy123, Dec 22, 2016.

Tags:
  1. Killy123

    Killy123 Member

    Joined:
    Oct 28, 2016
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    Is there any way of renaming domain through cPanel API or WHM API, no matter if it is primary or addon domain?
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    542
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The WHM API 1 function referenced in the previous post will allow you to rename the primary domain name associated with an account. It's not possible to rename an addon domain name. You'd have to add a new addon domain name and configure it with the same document root, and then remove the old one.

    Thank you.
     
  4. Killy123

    Killy123 Member

    Joined:
    Oct 28, 2016
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    Thank you, for your replies helped me a lot !
     
    cPanelMichael likes this.
Loading...

Share This Page