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.

Account Creating Problem Via PHP

Discussion in 'cPanel Developers' started by toshost, Dec 8, 2013.

  1. toshost

    toshost Member

    Joined:
    Dec 8, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Bangladesh
    cPanel Access Level:
    Root Administrator
    I'm Trying to create account in my whm with my whm password, but while i trying to curl a url for creating account the server create the account and terminate the connection with no replay. I disabled SSL for Solve this issue but still i cant do that.
    my php code:
    PHP:
    <?php
    $whmu 
    'my whm user';//can be a reseller with WHM access
    $whmp 'my whm pass ';
    $whmh '64.237.54.41';//ip
    $udomain 'domain.com'// can be subdomain too
    $uname 'domain'//max 8 characters
    $upass '@@@YuTYUIj&&@@';
    $uemail 'user@email.com';
    $uplan 'host71_71_mini'//the plan has to exist in WHM
    $ncc "https://{$whmu}:{$whmp}@{$whmh}:2087/scripts/wwwacct";
    $add "?plan={$uplan}";
    $add .= "&domain={$udomain}";
    $add .= "&username={$uname}";
    $add .= "&password={$upass}";
    $add .= "&contactemail={$uemail}";

    $result file_get_contents($ncc.$add);
    echo 
    "<textarea>$result</textarea>";
    ?>
    Please help me to solve this issue.

    Thank you.
     
  2. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    San Francisco, CA
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page