Script or api to create user

Started by ixus, April 24, 2015, 03:24:11 PM

Previous topic - Next topic

ixus

Hi,

Do you have a way to create a new user from shell/php? I need the option to create a user, a database/dbuser and run a few commands to automate a process.

I can do it using normal shell, but it would be best to be able to have the user set up the "cwp"-way so that it is consistent and appear correctly in the interface.

Have looked through some scripts, but I got a php-message saying that I didn't have authorization or something like that, they where also encrypted. If I just could cun the add-user script with command line arguments it would be fantastic..

brijendrasial


become

API has a method for create user account

darkness

Quoteixus
Just use in the shell cURL to execute IP:2030/api/?key=KEY&api=account_new&domain=DOMAIN&username=USERNAME&password=PASSWORD&package=PACKAGE-NUMBER&email=CLIENT-EMAIL&inode=10000&nofile=100&nproc=25
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

studio4host

VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

ronisouza

I know that is a very old post, but still no api to create accounts ?

james88

Quote from: studio4host on August 25, 2017, 08:49:05 PM
more detailed instructions can be found here
http://wiki.centos-webpanel.com/cwp-account-api

Oops! That page can't be found.
It looks like nothing was found at this location. Maybe try a search above?

overseer