Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Feb 2003
    Location
    brazil
    Posts
    5

    Exclamation account creation

    I ´m new in this area, and i´d like to know where i can put a account creation scripts?Could be a www directory? I have a reseller account and i´d like thay my buddy could create account too, but i ´dont want give him my password.

    Does some one could help me?

  2. #2
    Member
    Join Date
    Jun 2002
    Location
    UK
    Posts
    152

    Default

    Hi,
    This may take a bit of coding but the only thing you can do besides give him your password is to setup an account creation area,
    if you take a look at this documentation here:
    http://www.cpanel.net/manual/remoteaccess-php.html
    You could submit the variables $acctuser, $acctpass and $acctplan from a html form which would enable him to create an account with the details needed,
    only problem would be that a plan would already need to be created with the specs that suit him,
    the more features you require, the more coding it takes,
    if you spend time on it though, you can come up with a really cool system, I recently finished coding a system allowing my resellers to create reseller accounts of their own through a small separate control panel,
    works very nice

  3. #3
    Member
    Join Date
    Feb 2003
    Location
    brazil
    Posts
    5

    Default i need this !!!

    Thanks Jim, i follow the example in cpanel.net to create account, but the script doesn´t return anithing. I put this script in www directory and the plan i have ever configurated in WHM. When i run a script, after i reload my list plain from whm , but doesn´t work.

    supose this script is create.php


    PHP:--------------------------------------------------------------------------------
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
    $host = "localhost";
    $user = "user";
    $accesshash = 'ACCESSHASH';
    $usessl = "1";
    $do = createacct($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan);
    if (!eregi("wwwacct creation finished",$do)){
    echo "There has been a problem with your account creation!<br>Please contact support for help!";
    }
    else
    {
    Header("Location: success.html");
    }

    i call this manner

    www.mydomain.com/create.php

    is all right?


    see you


    Marcos

  4. #4
    Member
    Join Date
    Jun 2002
    Location
    UK
    Posts
    152

    Default

    Yes that would be the correct way to call that script,
    you should make sure that you have entered all the variables correctly, if you do not have curl for php installed change the usessl variable to 0
    i.e. $usessl = 0;
    make sure that you have entered your accesshash correctly also,
    Thanks

  5. #5
    Member
    Join Date
    Feb 2003
    Location
    brazil
    Posts
    5

    Default socket

    I tried to use a create account script but
    I ´m having problem with socket_create() function , that´s a not definied function. How can i solve this.

    Thank´s


    Marcos

  6. #6
    Member
    Join Date
    Feb 2003
    Location
    brazil
    Posts
    5

    Default thank´s so much

    My problem is socket. PHP have a problem because socket is not stable. i run phpinfo() and sockets are enable but is not truth()!!!

    I run the script from the other host and had success!

    Thank´s Jim because i didn´t have curl() but this is only necessary if you use usessl=1 .This information is very important because Cpanel.net only say that you need curl() but socket can work very well

Similar Threads & Tags
Similar threads

  1. Replies: 7
    Last Post: 07-23-2011, 08:53 PM
  2. Account Creation Limits refers to WHM account or cPanel account?
    By alphareseller in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-01-2011, 07:02 PM
  3. Cpanel Account Creation Account
    By j0sh710 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-14-2006, 05:09 PM
  4. Account Creation Complete!!! but account not created
    By dwykofka in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 02-02-2006, 06:55 AM
  5. Account not created after account creation
    By ckpeter in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-15-2002, 11:05 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube