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!

To use API I have to have PHP and Curl installed?

Discussion in 'cPanel Developers' started by glenn0, Sep 4, 2013.

  1. glenn0

    glenn0 Well-Known Member

    Joined:
    Jul 23, 2012
    Messages:
    53
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Website Owner
    I have had a app made for me so I can add/remove lists of subdomains from my desktop. The developer has completed it for me (in Java) but said I need to install PHP and Curl for it to work. Is there no way around this? Is there no way a simple desktop app can create subdomains without using PHP and Curl (I have winXP)?

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    It's possible to use other programming languages (e.g. Perl) if you prefer to avoid using PHP. This would have to be considered during the development of the application. General documentation on creating software that interacts with cPanel/WHM is available at:

    cPanel & WHM's Software Development Kit

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

    glenn0 Well-Known Member

    Joined:
    Jul 23, 2012
    Messages:
    53
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Website Owner
    Thanks for the reply and link.
     
  4. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    68
    Location:
    San Francisco, CA
    cPanel Access Level:
    Root Administrator
    The cPanel/WHM API is not tied to a specific programming language. All calls can be accessed via POST requests to URLs in ANY programming language. For example, adding a subdomain is just calling this URL with some variables (denoted by $):

    https://yourhostname.com:2087/json-api/cpanel?user=$username&cpanel_jsonapi_module= SubDomain&cpanel_jsonapi_func=addsubdomain&cpanel_jsonapi_version=2&domain=$sub&rootdomain=$domain

    If the code is written in Java, you should not have to install PHP and Curl on your desktop. If your developer is requesting installation of PHP and Curl, the code is likely written in PHP, not Java.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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