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
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