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.

create account function VERY SLOW

Discussion in 'General Discussion' started by Jayreis, Jul 2, 2006.

  1. Jayreis

    Jayreis Member

    Joined:
    Feb 13, 2002
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    OK I am testing a simple php based script I found on these fourms to auto create an account on one of my cpanel servers.

    My issue is the script runs really really slow. I am wondering if their is any way I can spead this up?? I dont understand why it takes a good 3 min or so (I times it) to create an account since the create accoutn file is on the same server the account it is trying to create will be on. I have
    10.8.2-RELEASE 119


    The code I am using is
    PHP:
    #!/usr/local/cpanel/3rdparty/bin/php
    <?php
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
    $host "localhost";
    $user "******";
    $accesshash 'my hash key is here';
    $usessl '1';
    $acctdomain 'www.atestsite.com';
    $acctuser 'm24ryn';
    $acctpass '1f4dde';
    $acctplan "Session_A";
    createacct ($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan);
    ?>
     
  2. qadelq

    qadelq Registered

    Joined:
    Apr 12, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello

    I have same problem
     
  3. mecak

    mecak Registered

    Joined:
    Jan 24, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    same problem

    Hello,
    I have same problem, I make bechmarks and I found that the script is very slow (~45 s) ...
    Can you please help me ?
    Thanks a lot !
    mecak.
     
Loading...

Share This Page