Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2002
    Location
    UK
    Posts
    248

    Default Very strange API problem

    Using the php API for WHM I have it working great, however, when I try to use the php script & WHM API (Accounting.php.inc) from one of our boxes in particular, it just fails to connect. I don't get any response from the API at all, just nothing is returned.

    To ensure it's not my code, I hard coded all the information (hash etc) into a single php file and tested it on all our boxes - and it's just this one machine that it refuses to connect to the WHM API's on the other boxes from. I must add it even refuses to connect to the local machine WHM API.

    However when running from any other box, it connects to all the WHM API's, including the WHM API on the machine the script fails to work from.

    I'm totally lost as this machine is a fresh build and everything else works perfectly fine, plus it doesn't return any errors when using accounting.php.inc - just returns nothing at all.. I can only assume it's something to do with the PHP that is compiled on the machine (unless you know different?) - but what?

    Can anyone suggest anything?

    Thanks,
    Andy.

  2. #2
    Member
    Join Date
    Jan 2002
    Location
    UK
    Posts
    248

    Default

    It seems that the latest /scripts/easyapache breaks php curl support and therefore the Accounting.php.inc

    Bug submitted:
    http://web.cpanel.net/bugzilla/show_bug.cgi?id=773

    Andy

  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    124

    Default

    It does appear that curl is not installed by default (beginner choice). Just choose advanced and select options yourself. You should do this anyway.

  4. #4
    Member
    Join Date
    Jan 2002
    Location
    UK
    Posts
    248

    Default

    Doing it as I type

    If beginner gives a nice setup its a lot less time consuming to just set it going when you're doing a bunch of machines - also idiot-proof (well almost) as you don't 'miss' an option.

    Would explain why it worked on my dev box tho, as thats always done manually.

    Andy.

Similar Threads & Tags
Similar threads

  1. Very strange problem
    By NetX in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-11-2007, 04:52 PM
  2. Strange Problem, please help
    By warrence in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-23-2006, 08:25 PM
  3. Strange problem
    By megahosting in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-02-2004, 04:52 AM
  4. Strange problem
    By megahosting in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-29-2004, 02:46 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube