Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Access cPanel API (in a server without WHM) from an external server

Discussion in 'cPanel Developers' started by rashmirathi, May 21, 2014.

  1. rashmirathi

    rashmirathi Registered

    Joined:
    May 21, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello All

    Is it possible to access a cPanel via some API (API 1,2 or XML or JSON) from an external server.
    I have a shared hosting account (so no WHM support) and wish to get/create some information using a PHP script (+ cPanel XML API https://github.com/CpanelInc/xmlapi-php) I have on an external server.

    When I host the script on the same destination server, it works fine. However while trying to access server data from external script using server's IP address I get "401 Access Denied".

    I would help your kind help.

    Thank you for your time.
    Warm Regards
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,660
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    The following document includes information you should find helpful:

    Secure Remote Logins

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rashmirathi

    rashmirathi Registered

    Joined:
    May 21, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Dear Friend,

    thank you for your reply.
    Though I am not able to understand much, I still got a way to try.
    Thank you again.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice