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 functions API and cpanel 11

Discussion in 'General Discussion' started by 4u123, Jul 5, 2007.

  1. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Can anyone tell me if there is something specific I need to enable in cpanel 11 in order to create / delete / suspend accounts remotely ?

    We are using a third party script to connect to our servers and its been fine until I recently added 3 new servers. None of them will accept commands from the API - they just time out after about a minute.

    Curl is working fine and the correct ports are enabled so I cant figure out why the servers wont do as they are asked. Is there a log file on the canel server for this ? I cant find anything in /var/cpanel/logs. I'm running the script in debug mode but its not bringing back any information at all.

    Is there perhaps a service disabled that shoudlnt be ?

    Any help would be greatly appreciated.
     
  2. 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
    Typically a third party script will interact with a cPanel/WHM server using its remote access key. Note, that remote access keys will be different for different servers and even different accounts (partly to account for different privileges).
     
  3. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Sorry, I should have mentioned that the script does use the whm access key and on all three servers the keys are correct. There is a connection test in the script to test if the connection details are working. All three servers pass this test but nothing appears to happen when a command is actually sent.

    I should also point out that I have around 20 other servers which were originally cpanel10 servers that are also using this script and work perfectly fine. The only difference is that the new servers have always been cpanel11 - the older ones have been upgraded.
     
    #3 4u123, Jul 5, 2007
    Last edited: Jul 5, 2007
  4. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    From what I can see, the script is working as it should. It works with all our other servers, just not these three new ones.

    Could someone who understands the process on the cpanel server possibly provide an insight into what might be the problem here ? I'm pretty desperate.

    The servers are all running centos 4.4 and release build of cpanel11
     
  5. 4u123

    4u123 Well-Known Member
    PartnerNOC

    Joined:
    Jan 2, 2006
    Messages:
    765
    Likes Received:
    1
    Trophy Points:
    18
    Ok, I've worked out that the process works fine if I use a non ssl connection and port 2086 but it just times out when trying to connect to https://server/2087 - even with the firewall disabled.

    I can login to whm fine in a browser and I'm sure curl ssl is compiled properly on all servers.
     
Loading...

Share This Page