Copy Files From To cPanel Accounts Using API?
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.
-
Hello, I recommend simply setting up a custom bash script that copies the file to the location of your preference, and then setup a post Accounts::Create hook that automatically runs the custom bash script after the account creation process: Guide to Standardized Hooks - Software Development Kit - cPanel Documentation Guide to Standardized Hooks - Whostmgr Functions - Software Development Kit - cPanel Documentation Thank you. 0 -
Thanks for the reply. i want to know can i do this using PHP and how. 0 -
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. 0
Please sign in to leave a comment.
Comments
3 comments