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.

importing sub-domain index from other server

Discussion in 'cPanel Developers' started by roduni, Sep 4, 2012.

  1. roduni

    roduni Registered

    Joined:
    Sep 3, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I have joined a host that has cpanel but offers no transfer service. I have a cpanel backup from the previous host and have restored the home-dir. Is there any way of restoring just the sub-domain index from the backup?
    I have 450 sub-domains and need an excuse not to have to manually register each sub-domein.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    If you need to create subdomains under the account for these 450 subdomains, then do you have root access for SSH and WHM on the new server?

    You cannot just restore an index file and have a working subdomain unless you created a wildcard subdomain and then had DNS entries to handle each subdomain. The better option instead is to use the API to go through a list to add all these subdomains for you via a script.
     
  3. roduni

    roduni Registered

    Joined:
    Sep 3, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Yes I have root access - I have tried in thw past to do a bulk load of sub domains using a script - but it was not with a cpanel API - could you please direct me to the API doc and I will take it from there - thanks
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page