Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    14

    Default Remote access returning zip

    Hi,

    I've browsed the forums for about an hour now trying to locate posts by people having a problem similar to mine. Suprisingly, I've found none, so I'm making my own post.

    I'm trying out the remote access feature for the first time and have copied some code (PHP) from the manual at http://www.cpanel.net/manual/remoteaccess-php.html. However, the functions aren't returning any values, meaning that the resulting page is blank.

    I've tried to remove parameters and altering the remote access key to get some response at all, and that does of course return various error msgs. However, when I run the following script, nothing is printed out. And before anyone asks: yes, there does exist packages on the server.

    [script]
    <?php
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
    $host = "localhost";
    $user = "root";
    $accesshash = 'removed for security reasons';

    $pkgs = listpkgs($host,$user,$accesshash, 0);
    print_r($pkgs);

    ?>
    [/script]

    Does anyone have any idea as to what the problem could be?

    Thanks in advance !


    Sincerely,

    Eirik Johansen

  2. #2
    Member
    Join Date
    Jun 2002
    Location
    UK
    Posts
    152

    Default

    Hi,
    Make sure that you have entered the accesshash correctly,
    also make sure that your php installation has been compiled with the socket functions, and curl with ssl if you are using ssl to connect to your server,
    Thanks

  3. #3
    gic
    gic is offline
    Member
    Join Date
    Jun 2002
    Posts
    69

    Default

    Also, search for my most recent post. The string you have there should not return anything on the screen. You have to echo your variable.

    Other than that, you just need the root access hash and if usessl = 0 does not work, try it with one. That would mean that you need cURL on if it is 1.

    Let me know if you need anymore help.

  4. #4
    Member
    Join Date
    Jun 2002
    Location
    UK
    Posts
    152

    Default

    Originally posted by gic
    Also, search for my most recent post. The string you have there should not return anything on the screen. You have to echo your variable.

    Other than that, you just need the root access hash and if usessl = 0 does not work, try it with one. That would mean that you need cURL on if it is 1.

    Let me know if you need anymore help.
    Look at the code he posted,
    he is trying to list the packages so he should be getting output from the script

  5. #5
    gic
    gic is offline
    Member
    Join Date
    Jun 2002
    Posts
    69

    Default

    Oops, sorry missed that. Okay, then take my other comments in.

    Do you have a reseller account or are you ROOT?

  6. #6
    Member
    Join Date
    Feb 2003
    Posts
    14

    Default

    I'm root, so it really makes no sense.

Similar Threads & Tags
Similar threads

  1. not able to connect remote MySQL : Remote Database Access Hosts
    By crazyaboutlinux in forum Database Discussions
    Replies: 4
    Last Post: 10-05-2011, 03:55 PM
  2. How To Zip Large Amount of Files Into Multiple 'zip' Files?
    By Doug E in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-07-2010, 05:47 AM
  3. Remote access returning blank variables..
    By listenmirndt in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-07-2007, 05:35 PM
  4. MySQL database remote access (Access Host)
    By akot2 in forum Database Discussions
    Replies: 4
    Last Post: 12-21-2006, 09:45 AM
  5. Help with Remote access ??
    By demian in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 08-27-2003, 07:28 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube