• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

API for subdomains

JuanCar

Regular Pleskian
My system is plesk 10.1 on Linux
I've try to create a subdomain following API RPC references and...
1. Script can't creae an FTP for user who own this subdomain
2. Script can create folder on subdomains/<nameofsubdomain>/hpttpdocs using www-root property

What I want is to create a subdomain, the root of this subdomain must be in <domain</subdomains/<nameofsubdomain>httpdocs and there must be an FTP account to access this folder (and only this folder)
I can make this in Plesk Panel but I want to create usin API (unatended)

Is there any fix to those errors?

Ah, my XML
<?xml version='1.0' encoding='utf-8'?>
<packet version='1.6.2.0'>
<subdomain>
<add>
<parent>".$dominio."</parent>
<name>".$sitio."</name>
<property>
<name>ftp_login</name>
<value>".$sitio."</value>
</property>
<property>
<name>ftp_password</name>
<value>".$passSitio."</value>
</property>
<property>
<name>asp</name>
<value>false</value>
</property>
<property>
<name>ssi</name>
<value>false</value>
</property>
<property>
<name>php</name>
<value>false</value>
</property>
<property>
<name>cgi</name>
<value>false</value>
</property>
<property>
<name>perl</name>
<value>false</value>
</property>
<property>
<name>python</name>
<value>false</value>
</property>
<property>
<name>coldfusion</name>
<value>false</value>
</property>
<property>
<name>fastcgi</name>
<value>false</value>
</property>
<property>
<name>miva</name>
<value>false</value>
</property>
<property>
<name>ssl</name>
<value>false</value>
</property>
<property>
<name>same_ssl</name>
<value>false</value>
</property>
<property>
<name>www_root</name>
<value>/subdomains/".$sitio."/httpdocs</value>
</property>
</add>
</subdomain>
</packet>

($sitio, $passSito and so are variables from php and they are correct)
Thanks
 
No

This is good for Windows but I need a solution for linux.
I'll try use events. When a subdomain is created Plesk throws event 39, I link a script to create the FTP.
It's tricky, but it's the only way I found.

Thanks
 
I think you can try this call for Unix too. This feature has been originally introduced for Windows, but since 10.0 shall be available for both Unix and Windows. Let me know if the call doesn't work and meanwhile I will check with developers.

Regards
 
Api ftp

Is there any fix for that bug in 10.4.4?
I think it's not unusual to create a FTP account when a subdomain is created, so you can have a user to manage just this subdomain, and without access to other subdomains.

I wait for an answer.

Thanks

Ops, I've found that this fix is in the las update of API.

Thanks
 
Last edited:
Back
Top