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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,037
    Likes Received:
    1,278
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,037
    Likes Received:
    1,278
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page