• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Seting FTP QUOTA with

S

sdunga

Guest
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>
 
Pass in value as bytes. Pass in 500 bytes and it'll read as 0MB. Multiply it by a million and it should work.
 
Back
Top