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.

createacct() not working

Discussion in 'General Discussion' started by testvto, Mar 6, 2009.

  1. testvto

    testvto Member

    Joined:
    Jan 28, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    I couldn't create cpanel account using createacct().Since no error messages are coming,i couldn't identify the problem.

    Cpanel version and other info's are,
    cPanel 11.24.4-R34387 - WHM 11.24.2 - X 3.9
    CENTOS 5.2 x86_64 on standard

    Please help me to solve this issue.
     
  2. norgaard

    norgaard Member

    Joined:
    Mar 17, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Try reinstalling cPanel.

    In WHM 'Upgrade to latest version'. Mark 'Force a reinstall even if the system is update to date.' or

    /scripts/upcp --force

    or maybe cPanel scripts are broken? - /scripts/wwwacct

    John
     
    #2 norgaard, Mar 6, 2009
    Last edited: Mar 6, 2009
  3. testvto

    testvto Member

    Joined:
    Jan 28, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I feel the problem is due to CURL.
    In the server php is not compiled with curl.
    In local the same account creation script works and account is created in the cpanel server.
    So it WHM might not be having any problem.
    Let us see whether installing curl will solve this issue or not.

    Thank you for your reply.:)
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Is this createacct() from our WHM Accounting API or the /xml-api/createacct function from the XML API?
     
  5. monkeymagic

    monkeymagic Registered

    Joined:
    Mar 27, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    We are having a similar problem on one particular server of ours.

    We are using WHMCS (www.whmcs.com) which uses the /xml-api/createacct function to create accounts on the remote cPanel Server.

    Creating the account on our server does not work, and on further inspection, WHMCS is definately connecting to the server, and it seems to be going through the process because we can see the domain being created in httpd.conf, etc/passwd, etc/group and more - but it does not seems to finish, and when checking for the domain in cpanel/whm, the domain account it is no where to be seen. It does not show up in 'List Accounts' nor in the DNS zones.

    As far as we know, all servers are setup the same, so why this one server is having problem is very strange.

    I contacted WHMCS Support and this is their exact response verbatim after they tried to fix the problem:

    -----------------------------------------------------
    When running the create command, a very unusual thing seems to be occuring and that is the cpanel account create API call terminating without any response. Here is the command sent and response received:

    Request: /xml-api/createacct?username=whmcss&password=NLws9QIWe6gY&domain=whmcssupport.com&plan=Plan+Two&savepkg=0&featurelist=default&quota=1000&bwlimit=30000&ip=n&cgi=y&frontpage=y&hasshell=n&contactemail=newclient%40domain.com.au&cpmod=x3&maxftp=unlimited&maxsql=unlimited&maxpop=unlimited&maxsub=unlimited&maxpark=5&maxaddon=1&reseller=0&

    Data:

    This is very unusual not having seen it before so you'll need to contact cPanel to look into it for you. Normally it should always give a success or error message response - never blank.
    -----------------------------------------------------

    Does anyone have any ideas at all how to solve this?

    Really need help on this one
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I first recommend updating to the latest cPanel builds. If that does not resolve the issue, please let our technical analysts take a look at this for you:

    http://tickets.cPanel.net/submit
     
  7. monkeymagic

    monkeymagic Registered

    Joined:
    Mar 27, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Great news - we upgraded to the very latest stable version as suggested - everything is working perfectly now.

    Cheers
     
Loading...

Share This Page