• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Plesk API Create Subdomain Errors and Missing Nodes

runtim23

Basic Pleskian
I'm trying to create a subdomain using API but get this as the response:

[result] => Array
(
[status] => error
[errcode] => 1002
[errtext] => ProtDir_Apache::update() failed: Unable to create user protection directory:Service node is unknown for sysuser with id=0
)

What am I doing wrong?
Here is my request:
<subdomain>
<add>
<parent>configuredDomain.com</parent>
<name>business</name>
<property>
<name>www_root</name>
<value>/subdomains/business/httpdocs</value>
</property>
<property>
<name>ssl</name>
<value>true</value>
</property>
<property>
<name>php</name>
<value>true</value>
</property>
<property>
<name>php_handler_type</name>
<value>fastcgi</value>
</property>
<property>
<name>cgi</name>
<value>true</value>
</property>
<property>
<name>fastcgi</name>
<value>true</value>
</property>
</add>
</subdomain>

Also, how do you set the hosting type for the subdomain?! I don't see this in the docs.

Thanks.
 
Back
Top