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.

Bulk unpark domains via cPanel or command line

Discussion in 'General Discussion' started by zaggs, Sep 4, 2008.

  1. zaggs

    zaggs Member

    Joined:
    Dec 5, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Is there a way to unpark domains in bulk via cPanel or via command line? I have over 2,000 domains to unpark.

    Thank you in advance :)
     
  2. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    18
    no such feature in cpanel now. You have to write some scripts, which will delete the entries from httpd.conf , /etc/userdomains, /etc/localdomains, /var/cpanel/users/USERNAME and also to remove the dns zone for that domain .
     
  3. 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
    You could also just build a script that calls API1 via our XML-API as described at:

    http://www.cpanel.net/plugins/xmlapi/

    The raw API1 code from /usr/local/cpanel/base/frontend/x3/park/dodelparked.html is:

    Code:
    <cpanel Park="unpark($FORM{'domain'})">
    Meaning this is the unpark function of the Park module that takes 1 parameter: the domain to unpark.
     
  4. zaggs

    zaggs Member

    Joined:
    Dec 5, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Do you know where I can find a pre built script as I have no idea how to build this myself?

    Thank you in advance.
     
  5. 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
    There are some frameworks users have built to make calling functions from our APIs easier. You may wish to search for phrases such as "PHP XML-API" to find these pre-built user-created scripts. Of course, I have not combed through the code myself so I am unsure how reliable those scripts are at this time.

    You're also welcome to post in the Jobs section of this forum to find someone who can build this script for you.
     
Loading...

Share This Page