Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Script to Park new domain on existing cpanel account

Discussion in 'General Discussion' started by djblamire, Jun 27, 2014.

  1. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    253
    Likes Received:
    1
    Trophy Points:
    168
    Is their a command line script available that does what can be done using the cPanel park domain command ?

    We have many existing accounts which have a website in the format www.website-name.co.uk

    We are registering a domain name with the new .uk extension - eg. www.website-name.uk

    We want the .uk domain to be parked onto the existing .co.uk account.

    Rather than manually do this via cPanel, we would like to run a command line script to do this for one or more accounts.

    Is this possible ?

    Thanks
    Daniel
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,129
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You could develop a script that utilizes our API to park the domain names. There is a thread on this here:

    Domain Parking API

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    253
    Likes Received:
    1
    Trophy Points:
    168
    Thanks for your reply.

    There isn't already a command line script already that can be used eg /scripts/park domain1.com domain2.com ?

    Thanks
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,129
    Likes Received:
    1,932
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    The "/scripts/park" utility is deprecated and is not recommended because it's only going to create the DNS entries. Using our API is the only supported method if you prefer to use the command line.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice