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.

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:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  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