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!

Copy Files From To cPanel Accounts Using API?

Discussion in 'cPanel Developers' started by manish12345, May 2, 2017.

Tags:
  1. manish12345

    manish12345 Member

    Joined:
    Mar 2, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Indore
    cPanel Access Level:
    Website Owner
    My requirement is to setup sites for clients, they provide there domain name and i create its account on my server via WHM API-1 which is describes here
    WHM API 1 Functions - createacct - Software Development Kit - cPanel Documentation

    I have a my clients site data in a zipped file (example site.zip) which is located in my main site public_html folder, for example: home/mainsite/public_html.

    i want to copy the zipped file (site.zip) in my clients home/myclient/public_html directory using API.

    I want to do this automatically using API.
    So is there any API for that?
    I tried the solution provided in this link below
    How to Copy file between account with xml-api, api2?

    but it does not work.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,955
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. manish12345

    manish12345 Member

    Joined:
    Mar 2, 2017
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Indore
    cPanel Access Level:
    Website Owner
    Thanks for the reply. i want to know can i do this using PHP and how.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,409
    Likes Received:
    1,955
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I recommend consulted with a developer or system administrator for help with custom PHP scripting. You can find a list of system administration services on the following URL:

    System Administration Services | cPanel Forums

    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