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.

XMLAPI support for CPanel

Discussion in 'cPanel Developers' started by mberchtold, Apr 1, 2009.

  1. mberchtold

    mberchtold Member

    Joined:
    Oct 2, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Dear Matt

    I was wondering if you are planning to add support for XMLAPI from/within CPanel. From my understanding XMLAPI calls are currently only possible within the WHM (Reference: http://www.cpanel.net/plugins/xmlapi/XMLAPI.html).

    Thank you for your consideration.
    Regards,
    Mat
    SmartFTP
     
  2. mberchtold

    mberchtold Member

    Joined:
    Oct 2, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    In the meanwhile I figured out why the XMLAPI is not available for cPanel. I was confused by the naming conventions (API2 vs. XMLAPI), assuming that XMLAPI would deprecate older versions of the API (e.g. API2).

    Regards,
    Mat
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Actually, you can access the XML API via the cPanel ports now. Just authenticate as a cPanel user via the cPanel ports and /xml-api is available to you. You will be limited to the actions you can perform as that cPanel user when authenticated as that user, but that's still good if you want to automate tasks (e.g. automating the creation of parked domains).
     
  4. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    Looks like SmartFTP is preparing something for us :) I found this on forum changelog, but doesn't look interesting for me. Will be something else?

     
  5. mberchtold

    mberchtold Member

    Joined:
    Oct 2, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I'm sorry to hear that it didn't catch your interest. What would you be interested then?

    Regards,
    Mat
     
  6. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    I'm glad you are open to new ideas! SmartFTP is a great software.

    For basic users, maybe something that will help them upload files in public_html (for publishing their site), like a wizard.

    For advanced users, there are a some common problems:
    -cannot removed (from FTP) the files that were created by apache server because they have a different owner (nobody). But the files can be deleted from cPanel filemanager. Unfortunately, I don't think file manager has an API.

    - by default, pure-ftpd restict directory listing to 2000 files (LimitRecursion). Is it possible to interoogate the server about that limit and to display a warning?

    - security is always a big problem. There are viruses that stole FTP password from bad clients like TotalCommander and use it to alter files on server. There is a big thread here about this problem. I see 2 way to solve this: first, to limit IPs from cPanel or, better, to use certificate instead of password for authentication and disable password authentication at all. First is still as feature request on cPanel..

    Thank you,
    Daniel
     
  7. mberchtold

    mberchtold Member

    Joined:
    Oct 2, 2003
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    >basic
    We have a connect/upload tutorial at:
    http://www.smartftp.com/support/howto

    >advanced users
    I do not think it's SmartFTP responsibility to fix the problems with web hosting providers or the software they are running.

    A note regarding pure-ftpd. For a long time we have recommended against this product. There are many bugs and issues (utc time, utf8, etc) that have no been addressed for more than a year and probably never will. But if you are running cPanel you can easily switch to proftpd (1.3.2) which does not suffer from any of those problems.

    Regards,
    Mat
     
  8. d_t

    d_t Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    243
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Bucharest
    Thank you for your answer. Actually the problem with nobody user is generated by PHP when run as apache module and cPanel tried to solve it with SuPHP. I agree, is not your responsability to fix server problems.

    Interesting note about pure-ftpd. Few years ago ProFTPD was default server on cPanel.
     
Loading...

Share This Page