1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Seting FTP QUOTA with

Discussion in 'Plesk for Linux - 8.x and Older' started by sdunga, May 5, 2006.

  1. sdunga

    sdunga Guest

    0
     
    Seting FTP QUOTA with Plesk rpc-api

    Hi guys,

    I'm implementing one API to create one hosting pack with a Plesk 8.0 server, and I'm having problems setting up the FTP QUOTA, all the rest goes ok, seems like I'm not being able to parse int values, all I parse I get 0 defined as result

    I get a good reply, from the server, I may be making some mistache, but for this version there is no documentation available, and I had to study the last versions and see XML schema.

    I'm sending this:

    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <packet version="$proto">
    <domain>
    <add>
    <gen_setup>
    <name>store.$domain</name>
    <client_id>1</client_id>
    <htype>vrt_hst</htype>
    <ip_address>62.193.242.204</ip_address>
    status>0</status>
    </gen_setup>
    <hosting>
    <vrt_hst>
    <ip_address>62.193.242.204</ip_address>
    <ftp_login>$login</ftp_login>
    <ftp_password>$password</ftp_password>
    <ftp_quota>500</ftp_quota>
    <ssl>1</ssl>
    <php>1</php>
    <ssi>1</ssi>
    <cgi>1</cgi>
    <mod_perl>1</mod_perl>
    <mod_python>1</mod_python>
    <asp>1</asp>
    <asp_dot_net>1</asp_dot_net>
    <coldfusion>0</coldfusion>
    <webstat>webalizer</webstat>
    <webstat_protected>1</webstat_protected>
    <errdocs>0</errdocs>
    <php_safe_mode>1</php_safe_mode>
    </vrt_hst>
    </hosting>
    </add>
    </domain>
    </packet>


    I get as result:

    <?xml version="1.0" ?>
    <packet version="1.3.5.1">
    <domain>
    <add>
    <result>
    <status>ok</status>
    <id>57</id>
    </result>
    </add>
    </domain>
    <output>set php_safe_mode</output>
    </packet>
     
  2. cfnick1

    cfnick1 Guest

    0
     
    Pass in value as bytes. Pass in 500 bytes and it'll read as 0MB. Multiply it by a million and it should work.
     
Loading...