NewCP20

Registered
May 22, 2020
1
0
1
ZH
cPanel Access Level
Website Owner
Hi all

I'm new using CPanel and its fantastic. I have couple of question:

- Can I automate the creation of a DB inclusive new user and permission settings?
- Can I automatically upload a file and extract it in a certain folder?

Many thanks for help.
SM
 
Last edited by a moderator:

cPRex

Well-Known Member
Staff member
Oct 19, 2014
196
27
103
cPanel Access Level
Root Administrator
Thanks for the kind words!

For the database portion of the question, you may want to look into our API calls here:


cPanel has a large API system that can provide automation for many of the funtions available in both the WHM and cPanel interfaces, so reviewing those would definitely help with any automation plans you may have.

I'm not completely sure what you mean for the second question about the file, but if you want certain files to appear in new accounts by default you can utilize the skeleton directory:


as anything placed there will show up in newly-created user accounts on the server.