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.

Api whm function is very slow

Discussion in 'cPanel Developers' started by forzadraco, Mar 4, 2013.

  1. forzadraco

    forzadraco Member

    Joined:
    Nov 14, 2012
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    2013-03-04 16:56:28 START CREATE DB
    2013-03-04 16:57:00 START ADDUSERDB
    2013-03-04 16:57:39 FINISH DBWIZARD

    hello guys ,, i need your help ,,

    im using cpanel whm API to create database ,,

    for example :
    ...
    $xmlapi = new xmlapi($db_host);
    ...
    $createdb = $xmlapi -> api1_query($cpuser, "Mysql", "adddb", array($databasename));
    ...
    $usr = $xmlapi -> api1_query($cpuser, "Mysql", "adduser", array($databaseuser, $databasepass));


    but why its running very slow ,, average is more than 30seconds each ,,
     
  2. peterk92

    peterk92 Member

    Joined:
    Nov 14, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Are you sure it is not the actual server that is running slow? I use the api1_query regularly and haven't experienced any problems with it on my server.
     
  3. forzadraco

    forzadraco Member

    Joined:
    Nov 14, 2012
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    are you already tested created database using whm api on a cpanel account who have more than 1700 database ?
     
Loading...

Share This Page