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.

Creating User Accounts through API

Discussion in 'General Discussion' started by qasim, May 2, 2009.

  1. qasim

    qasim Registered

    Joined:
    May 2, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I have a question. I am running a web hosting solution. User registers on my website to purchase web space. After they are registered on my website I want to create a CPanel user account for them. So that they can manage there web space through CPanel control panel.

    I don't want to create users account of CPanel manually. I want to automate process of user account creation in CPanel. I feel the solution would be something like this "When user registers on my website then my website calls some API of CPanel for creating a user account.

    How can I do this.

    Thanks
     
  2. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
    Yes you can create an api to do this. There is info on this in the cpanel docs. It may be easier to just use an automated billing software (like whmautopilot) which already has automatic account provisioning built in.
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you are interested in custom-coding your own solution rather than using a pre-existing solution, here's the documentation to our XML API which would handle the account creation:

    http://twiki.cpanel.net/twiki/bin/view/AllDocumentation/AutomationIntegration/XmlApi

    If you are familiar with PHP and would like a PHP 5 class that you can use as an interface to this API, check out the Developer section of these community forums.
     
Loading...

Share This Page