Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 18
  1. #1
    Member
    Join Date
    Apr 2004
    Posts
    15

    Default Automaticly create webhosting accounts

    Hey is there a script that can automaticly create webhosting accounts for my clients?

    Lets say client1 buy's webhosting pakage 1, the system has to make an account for him and e-mail his loggin stuff. It also has to inform me ofcourse

    Is there such an script?

  2. #2
    Member
    Join Date
    Sep 2003
    Posts
    14

    Default Re: Automaticly create webhosting accounts

    Originally posted by r3n3gad3
    Hey is there a script that can automaticly create webhosting accounts for my clients?

    Lets say client1 buy's webhosting pakage 1, the system has to make an account for him and e-mail his loggin stuff. It also has to inform me ofcourse

    Is there such an script?

    its possible to do although not advisable at a guess.
    I did it using the docs from this site and the remote access hash thing - all in php

    once somebody finds the path to the create routines, you are wide open to spammers and anyone after a free account.

    Ry

  3. #3
    Member
    Join Date
    Apr 2004
    Posts
    15

    Default Re: Re: Automaticly create webhosting accounts

    Originally posted by justahost
    its possible to do although not advisable at a guess.
    I did it using the docs from this site and the remote access hash thing - all in php

    once somebody finds the path to the create routines, you are wide open to spammers and anyone after a free account.

    Ry
    I still want to push the button that will activate his account

  4. #4
    Member
    Join Date
    Sep 2003
    Posts
    14

    Default

    in that case, look at the accounting.inc files, use a front end form to set up the variables and away you go. I will have a dig about and see if I have the script on me drive somewhere!

    ry

  5. #5
    Member
    Join Date
    Apr 2004
    Posts
    15

    Default

    Originally posted by justahost
    in that case, look at the accounting.inc files, use a front end form to set up the variables and away you go. I will have a dig about and see if I have the script on me drive somewhere!

    ry
    a thnx

  6. #6
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default Re: Automaticly create webhosting accounts

    Originally posted by r3n3gad3
    Hey is there a script that can automaticly create webhosting accounts for my clients?

    Lets say client1 buy's webhosting pakage 1, the system has to make an account for him and e-mail his loggin stuff. It also has to inform me ofcourse

    Is there such an script?
    Modern Bill and WHM AutoPilot can do what you are looking for. Of course they are both commercial applications.

  7. #7
    Member
    Join Date
    Mar 2004
    Location
    Thunder Bay, ON
    Posts
    20

    Default

    check out

    http://forums.cpanel.net/showthread....threadid=22446

    it is what you are looking for. a demo will be online very soon

  8. #8
    Member
    Join Date
    Apr 2004
    Posts
    23

    Default

    I can't believe that this is not a feature that cPanel has built in... it seems to me this would be the first thing any webmaster looks for!?!?!

    Maybe I made a mistake going with cPanel, ugh...

  9. #9
    Member
    Join Date
    Jan 2003
    Posts
    23

    Default

    Cpanel is a control panel not a all in one like Billing system. Many webmasters wouldnt like this either

    Dan

    Originally posted by trumpetx
    I can't believe that this is not a feature that cPanel has built in... it seems to me this would be the first thing any webmaster looks for!?!?!

    Maybe I made a mistake going with cPanel, ugh...

  10. #10
    Member
    Join Date
    Apr 2004
    Posts
    23

    Default

    i dont believe the poster wanted a billing system, i think they just wanted a way to automate the creation of an account... i.e. program a custom billing system, pay for one, it is irelivent -- rather use a command line tool (to be called by Perl, Python, or PHP) to create a user. cPanel uses scripts for everything, I'm sure there is a command line way to create a user, but it is just undocumented. i URGE cPanel to document this. As of now I'm working on a hack to allow this, when i get done, i'll freely distribute it.

    soemthing like

    $> cP-createaccount Username Password Email Package


    I mean, it's not brain surgery - I'm just shocked it has not been provided yet.

  11. #11
    Member
    Join Date
    Apr 2004
    Posts
    15

    Default

    Originally posted by trumpetx
    i dont believe the poster wanted a billing system, i think they just wanted a way to automate the creation of an account... i.e. program a custom billing system, pay for one, it is irelivent -- rather use a command line tool (to be called by Perl, Python, or PHP) to create a user. cPanel uses scripts for everything, I'm sure there is a command line way to create a user, but it is just undocumented. i URGE cPanel to document this. As of now I'm working on a hack to allow this, when i get done, i'll freely distribute it.

    soemthing like

    $> cP-createaccount Username Password Email Package


    I mean, it's not brain surgery - I'm just shocked it has not been provided yet.
    I have found something like that today

    #!/usr/local/cpanel/3rdparty/bin/php

    <?php
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
    $host = "localhost";
    $user = "<USERNAME HERE>";
    $accesshash = '<REMOTE ACCESS KEY HERE>';

    $accts = listaccts($host,$user,$accesshash,0);
    print_r($accts);
    $pkgs = listpkgs($host,$user,$accesshash,0);
    print_r($pkgs);

    ?>


    All explaned right here
    http://www.cpanel.net/docs/whm/Using...gPhpModule.htm

  12. #12
    Member
    Join Date
    Apr 2004
    Posts
    23

    Default

    you are a true stud... i was getting tired of figuring out wich ARGV[X] was which

    I'll take a look when i get done with Job #1
    --------------
    Edit:
    --------------
    ok - it works great! However you can't add the contact email address to it, anyone figured out how to add that w/out the control panel? if that's the only thing that it doesnt do, i'm not worried, but would be nice to completely automate it.
    Last edited by trumpetx; 04-07-2004 at 11:02 AM.

  13. #13
    Member
    Join Date
    Mar 2004
    Location
    Thunder Bay, ON
    Posts
    20

    Default

    I now have the demo online http://www.torks.net/wham/

    username: demo
    password: demo

    Tell me what you think or some possible improvements.

    Steve

  14. #14
    Member
    Join Date
    Apr 2004
    Posts
    15

    Default

    Originally posted by storkkel
    I now have the demo online http://www.torks.net/wham/

    username: demo
    password: demo

    Tell me what you think or some possible improvements.

    Steve
    Cool! I got a couple of javascript errors but who cares.

    Could you build in a domain system to, maybe handy its already nice tough

    Is it freeware if it is were can I download it?

  15. #15
    Member
    Join Date
    Mar 2004
    Location
    Thunder Bay, ON
    Posts
    20

    Default

    I havent decided if im going to make it freeware or charge for support or instalation of the script. as for the domain system i plan to include it in the next update along with a trouble ticket system.

    Steve

Similar Threads & Tags
Similar threads

  1. OK to create accounts in WHM as root, or should I create a reseller?
    By Metro2 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-17-2007, 02:16 PM
  2. Unable to create or remove accounts / New accounts not in list accounts
    By yoseman in forum cPanel and WHM Discussions
    Replies: 26
    Last Post: 10-18-2007, 12:18 PM
  3. can't add webhosting accounts to cpanel.why? :(
    By alecs in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-23-2007, 12:04 PM
  4. automaticly change all dns zonefiles in accounts
    By Ley in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-14-2004, 03:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube