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.

Parking 10s of domains quick way

Discussion in 'Database Discussions' started by camuca, Apr 28, 2008.

  1. camuca

    camuca Registered

    Joined:
    Apr 28, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    We have several hundred domain names that we want to park to one domain name. It is time consuming to use the park domain feature and submitting one by one using WHM park domain console? e.g.

    domainA.com to be parket over domainFinal.com
    domainB.com to be parket over domainFinal.com
    domainC.com to be parket over domainFinal.com
    domainD.com to be parket over domainFinal.com

    I want to update that list in the database directly. What is the name of database? Table? that we can update the whole park domain list at once? How can we access that table via WHM?

    Any thoughts?

    tx - J
     
  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
    It is not a database. Remember, each parked domain has its own entry in Apache configuration files and other configuration files on the server.

    However, if you desire to script such activity, you can call the following API1 function via the XML-API if you desire:

    Code:
    <cpanel Park="park(DOMAIN.COM)">
    Where DOMAIN.COM is the domain you wish to park.
     
  3. scottc

    scottc Well-Known Member

    Joined:
    Apr 21, 2002
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Could you give an example of the full URL for this? I logged in to WHM with the root password and then tried this:

    https://myserver.com:2087/xml-api/cpanel?user=hosting&xmlin=<cpanelaction><module>Park</module><func>park</func><args><domain>test382827.com</domain></args></cpanelaction>

    The error message I got was:
    XML Parsing Error: no element found
    Location: https://myserver.com:2087/xml-api/c...test382827.com</domain></args></cpanelaction>
    Line Number 1, Column 1:

    I even tried the examples given in the xmlapi docs at http://www.cpanel.net/plugins/xmlapi/cpanel.html and got similar results.

    I can use /xml-api/listaccts?searchtype=user&search=host without any trouble.

    Thank you.
     
  4. camuca

    camuca Registered

    Joined:
    Apr 28, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    tx for the info. But... I still am not sure what will the full xml url to use to be able to write a script.

    can u give the exact xml url example assuminng domainb will be parked on domaina

    tx
     

Share This Page